/* Game Filter Row */
.game-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.game-divider {
  width: 100%;
  height: 2px;
  background: var(--theme-divider, #444);
  margin: 30px 0 10px 0;
  opacity: 0.5;
  border-radius: 2px;
}

.game-label {
  font-size: 1.2em;
  font-weight: bold;
  margin: 20px 0 10px 0;
  color: var(--theme-accent, #e6c200);
  text-align: center;
}
/* Carousel Styles */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  margin: 20px 0;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  padding: 20px 0;
}

.radio-carousel {
  display: flex;
  /* Transition controlled via JS for consistency */
  transition: none;
  gap: 20px;
  padding: 0 20px;
  will-change: transform;
  transform: translateZ(0); /* GPU hint */
}

.radio-card {
  flex: 0 0 200px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
  opacity: 0.8;
  position: relative; /* allow absolute-positioned badge */
}

.radio-card.active {
  opacity: 1;
}

.radio-card:hover:not(.active) {
  opacity: 0.9;
}

.radio-logo {
  width: 160px;
  height: 160px;
  object-fit: contain; /* fit entire logo, no cropping */
  object-position: center;
  border-radius: 0;
  padding: 0; /* focus purely on logo */
  background: transparent;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto; /* ensure perfect centering within card */
  /* Assets are trimmed; no extra horizontal shift */
  transform: translateX(var(--logo-manual-shift, 0px));
  transition: transform 0.2s ease;
}

/* Subtle hint for active selection: scale logo slightly */
.radio-card.active .radio-logo {
  transform: translateX(var(--logo-manual-shift, 0px)) scale(1.05);
}

/* Larger screens: slightly larger logos and wider gaps */
@media (min-width: 1024px) {
  .radio-logo {
    width: 180px;
    height: 180px;
  }
  .radio-carousel {
    gap: 24px;
  }
}

/* Mobile adjustments: show one centered card with equal peeks */
@media (max-width: 600px) {
  .carousel-wrapper {
    max-width: none; /* allow full viewport width */
    width: 100%;
    padding: 12px 0; /* tighten vertical padding */
  }

  .radio-carousel {
    gap: 14px; /* smaller gap so neighbors peek nicely */
    padding: 0 12px; /* provide side gutters, JS accounts for this */
  }

  .radio-card {
    flex: 0 0 80vw; /* ensure only one full card fits */
  }

  /* Make non-active cards dimmer to avoid ambiguity */
  .radio-card:not(.active) {
    opacity: 0.6;
  }
}

.radio-card h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--accent);
}

.radio-card .dj-name {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  display: none; /* Hide on cards, show in station info */
}

/* By default, hide the station name under cards */
.radio-card h2 {
  display: none;
}

/* If the logo is a placeholder, show the name under the card */
.radio-card .radio-logo[data-placeholder="true"] + h2 {
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  color: var(--accent);
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.carousel-arrow-left {
  left: 20px;
}

.carousel-arrow-right {
  right: 20px;
}

.carousel-arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
  box-shadow: none;
}

/* Links inside cards: theme-styled, no underline */
.radio-card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.radio-card a:visited {
  color: var(--accent);
}
.radio-card a:hover {
  color: var(--accent-2);
  text-decoration: none;
}
.radio-card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
