:root {
  --uw-primary: #111214;
  --uw-accent: #caa86a;
  --uw-muted: #6c757d;
}

/* Card wrapper so CSS grid controls layout cleanly */
.track-card {
  display: flex;
}

.track-card .card {
  width: 100%;
}

/* Square cover images for compact grids */
.track-card .card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Hide lyrics panes by default inside cards */
.track-card .lyrics {
  display: none;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* NEW MUSIC: 1→2→3→4 columns */
.grid-new {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-new {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-new {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* BROWSE ALL: compact 7-column grid on desktop, responsive down */
.grid-7 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* phones */
}

@media (min-width: 576px) {
  .grid-7 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-7 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-7 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-7 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1400px) {
  .grid-7 {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* Mini button height consistency */
.track-card .btn,
#radio-mini .btn {
  min-height: 44px;
}

/* Badge styling */
.badge-tag {
  background: rgba(202, 168, 106, 0.15);
  color: #caa86a;
  border: 1px solid rgba(202, 168, 106, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero section */
#hero-bg {
  transition: background 0.5s ease;
}

/* Section padding */
.section-pad {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 3rem 0;
  }
}

/* Band Cards Strip */
.band-cards-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.band-card {
  flex: 0 0 200px;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.band-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--uw-accent);
  transform: translateY(-2px);
}

.band-card.active {
  border-color: var(--uw-accent);
  background: rgba(202, 168, 106, 0.15);
  outline: 2px solid var(--uw-accent);
  outline-offset: -2px;
}

.band-card.active {
  border-color: var(--uw-accent);
  background: rgba(202, 168, 106, 0.15);
}

.band-card-img {
  width: 100%;
  height: 125px;
  object-fit: cover;
}

.band-card-body {
  padding: 0.75rem;
}

.band-card-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.band-card-tagline {
  font-size: 0.75rem;
  color: var(--uw-muted);
  line-height: 1.3;
}

/* Last Played List */
.last-played-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.last-played-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  cursor: pointer;
}

.last-played-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.last-played-cover {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.last-played-info {
  flex: 1;
  min-width: 0;
}

.last-played-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.last-played-brand {
  font-size: 0.875rem;
  color: var(--uw-muted);
}

.last-played-play {
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .band-card {
    flex: 0 0 160px;
  }

  .band-card-img {
    height: 100px;
  }

  .last-played-cover {
    width: 80px;
    height: 80px;
  }
}

/* Hero CTA button states */
#btn-start-radio[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mini-player styling */
.radio-mini {
  background-color: var(--bs-dark);
  color: var(--bs-light);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: auto;
}

.radio-mini.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mini-player button active states */
.radio-mini .btn-outline-light.active {
  color: var(--uw-accent);
  border-color: var(--uw-accent);
  background-color: transparent;
}