html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.album-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff8ee 0%, #f6f8ff 100%);
  border: 1px solid #e7ebf3;
}

.album-hero--compact {
  align-items: center;
}

.album-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c05b12;
}

.album-stats {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.album-stat-card {
  min-width: 110px;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.album-stat-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.album-stat-card span {
  color: #6b7280;
  font-size: 0.9rem;
}

.album-section-grid,
.album-page-grid,
.album-slot-grid {
  display: grid;
  gap: 1rem;
}

.album-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.album-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.album-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.album-slot-form {
  margin: 0;
}

.album-inline-form {
  margin: 0;
}

.album-section-card,
.album-page-card,
.album-slot-card {
  display: block;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
}

.album-section-card:hover,
.album-page-card:hover {
  border-color: #c05b12;
  box-shadow: 0 12px 28px rgba(192, 91, 18, 0.12);
}

.album-section-card__top,
.album-page-card__header,
.album-slot-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.album-section-card h2,
.album-page-card h2,
.album-slot-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.album-section-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.95rem;
}

.album-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff1e7;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
}

.album-code-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.album-code-preview span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.8rem;
}

.album-page-card__cta {
  margin-top: 1rem;
  color: #c05b12;
  font-weight: 700;
}

.album-slot-card {
  width: 100%;
  min-height: 180px;
  text-align: left;
}

.album-slot-card__body {
  display: block;
}

.album-slot-card__title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.album-slot-card__footer {
  display: inline-block;
  margin-top: 1rem;
  color: #c05b12;
  font-size: 0.92rem;
  font-weight: 700;
}

.album-slot-card--duplicate {
  border-color: #15803d;
  background: linear-gradient(180deg, #f7fff7 0%, #dcfce7 100%);
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.12);
}

.album-slot-card--missing {
  border-color: #dc2626;
  background: linear-gradient(180deg, #fff7f7 0%, #ffe4e6 100%);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12);
}

.album-slot-card--missing .album-slot-card__footer,
.album-slot-card--missing .album-slot-card__title {
  color: #991b1b;
}

.album-slot-card--duplicate .album-slot-card__title {
  color: #166534;
}

.album-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.album-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.album-legend__swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.album-legend__swatch--missing {
  border-color: #dc2626;
  background: #fecdd3;
}

.album-legend__swatch--duplicate {
  border-color: #15803d;
  background: #bbf7d0;
}

.album-slot-card__status {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.album-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

.album-duplicate-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.album-duplicate-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
}

.album-slot-card__country {
  margin-bottom: 0.35rem;
  color: #334155;
  font-weight: 600;
}

.album-slot-card__type {
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .album-hero {
    flex-direction: column;
  }

  .album-stats {
    flex-wrap: wrap;
  }
}
