/* Radio India Live - Custom CSS - Dark Theme (Reconstructed) */

/**
 * Prevent theme flicker on load.
 * Applied to <html> by the head script and removed by custom.js
 */
.preload-no-transition,
.preload-no-transition * {
  transition: none !important;
}

/* â”€â”€ Icon System (SVG Replacement for Font Awesome) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fas,
.far,
.fab,
.fa {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  vertical-align: -0.125em;
}

.fa-lg {
  font-size: 1.33333em;
  line-height: 0.75em;
  vertical-align: -0.0667em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-fw {
  text-align: center;
  width: 1.25em;
}

.fa-play {
  mask-image: url('../appIcon/play.svg');
  -webkit-mask-image: url('../appIcon/play.svg');
}

.fa-pause {
  mask-image: url('../appIcon/pause.svg');
  -webkit-mask-image: url('../appIcon/pause.svg');
}

.fa-heart {
  mask-image: url('../appIcon/heart.svg');
  -webkit-mask-image: url('../appIcon/heart.svg');
}

.fas.fa-heart {
  mask-image: url('../appIcon/heart-solid.svg');
  -webkit-mask-image: url('../appIcon/heart-solid.svg');
}

.fa-eye {
  mask-image: url('../appIcon/eye.svg');
  -webkit-mask-image: url('../appIcon/eye.svg');
}

.fa-thumbs-up {
  mask-image: url('../appIcon/thumbs-up.svg');
  -webkit-mask-image: url('../appIcon/thumbs-up.svg');
}

.fa-share,
.fa-share-alt {
  mask-image: url('../appIcon/share.svg');
  -webkit-mask-image: url('../appIcon/share.svg');
}

.fa-bolt {
  mask-image: url('../appIcon/bolt.svg');
  -webkit-mask-image: url('../appIcon/bolt.svg');
}

.fa-search {
  mask-image: url('../appIcon/search.svg');
  -webkit-mask-image: url('../appIcon/search.svg');
}

.fa-times {
  mask-image: url('../appIcon/close.svg');
  -webkit-mask-image: url('../appIcon/close.svg');
}

.fa-volume-up {
  mask-image: url('../appIcon/volume-up.svg');
  -webkit-mask-image: url('../appIcon/volume-up.svg');
}

.fa-volume-mute {
  mask-image: url('../appIcon/volume-mute.svg');
  -webkit-mask-image: url('../appIcon/volume-mute.svg');
}

.fa-spinner {
  mask-image: url('../appIcon/spinner.svg');
  -webkit-mask-image: url('../appIcon/spinner.svg');
}

.fa-facebook-f,
.fa-facebook {
  mask-image: url('../appIcon/facebook.svg');
  -webkit-mask-image: url('../appIcon/facebook.svg');
}

.fa-twitter {
  mask-image: url('../appIcon/twitter.svg');
  -webkit-mask-image: url('../appIcon/twitter.svg');
}

.fa-whatsapp {
  mask-image: url('../appIcon/whatsapp.svg');
  -webkit-mask-image: url('../appIcon/whatsapp.svg');
}

.fa-instagram {
  mask-image: url('../appIcon/instagram.svg');
  -webkit-mask-image: url('../appIcon/instagram.svg');
}

.fa-link {
  mask-image: url('../appIcon/link.svg');
  -webkit-mask-image: url('../appIcon/link.svg');
}

.fa-list,
.fa-list-ul {
  mask-image: url('../appIcon/list.svg');
  -webkit-mask-image: url('../appIcon/list.svg');
}

.fa-chevron-down {
  mask-image: url('../appIcon/chevron-down.svg');
  -webkit-mask-image: url('../appIcon/chevron-down.svg');
}

.fa-chevron-up {
  mask-image: url('../appIcon/chevron-up.svg');
  -webkit-mask-image: url('../appIcon/chevron-up.svg');
}

.fa-redo {
  mask-image: url('../appIcon/redo.svg');
  -webkit-mask-image: url('../appIcon/redo.svg');
}

.fa-ellipsis-v {
  mask-image: url('../appIcon/ellipsis-v.svg');
  -webkit-mask-image: url('../appIcon/ellipsis-v.svg');
}

.fa-user {
  mask-image: url('../appIcon/user.svg');
  -webkit-mask-image: url('../appIcon/user.svg');
}

.fa-cog {
  mask-image: url('../appIcon/cog.svg');
  -webkit-mask-image: url('../appIcon/cog.svg');
}

.fa-thumbs-down {
  mask-image: url('../appIcon/thumbs-down.svg');
  -webkit-mask-image: url('../appIcon/thumbs-down.svg');
}

.fa-clock,
.fa-history {
  mask-image: url('../appIcon/clock.svg');
  -webkit-mask-image: url('../appIcon/clock.svg');
}

.fa-fire {
  mask-image: url('../appIcon/fire.svg');
  -webkit-mask-image: url('../appIcon/fire.svg');
}

.fa-globe {
  mask-image: url('../appIcon/globe.svg');
  -webkit-mask-image: url('../appIcon/globe.svg');
}

.fa-home {
  mask-image: url('../appIcon/home.svg');
  -webkit-mask-image: url('../appIcon/home.svg');
}

.fa-bars {
  mask-image: url('../appIcon/bars.svg');
  -webkit-mask-image: url('../appIcon/bars.svg');
}

.fa-sun {
  mask-image: url('../appIcon/sun.svg');
  -webkit-mask-image: url('../appIcon/sun.svg');
}

.fa-moon {
  mask-image: url('../appIcon/moon.svg');
  -webkit-mask-image: url('../appIcon/moon.svg');
}

.fa-music {
  mask-image: url('../appIcon/music.svg');
  -webkit-mask-image: url('../appIcon/music.svg');
}

.fa-language {
  mask-image: url('../appIcon/language.svg');
  -webkit-mask-image: url('../appIcon/language.svg');
}

.fa-headphones {
  mask-image: url('../appIcon/headphones.svg');
  -webkit-mask-image: url('../appIcon/headphones.svg');
}

.fa-map-marker-alt {
  mask-image: url('../appIcon/map-marker-alt.svg');
  -webkit-mask-image: url('../appIcon/map-marker-alt.svg');
}

.fa-city {
  mask-image: url('../appIcon/city.svg');
  -webkit-mask-image: url('../appIcon/city.svg');
}

.fa-chevron-right,
.fa-angle-right {
  mask-image: url('../appIcon/chevron-right.svg');
  -webkit-mask-image: url('../appIcon/chevron-right.svg');
}

.fa-chevron-left,
.fa-angle-left {
  mask-image: url('../appIcon/chevron-right.svg');
  -webkit-mask-image: url('../appIcon/chevron-right.svg');
  transform: rotate(180deg);
}

.fa-broadcast-tower {
  mask-image: url('../appIcon/broadcast-tower.svg');
  -webkit-mask-image: url('../appIcon/broadcast-tower.svg');
}

.fa-sign-in-alt,
.fa-sign-in {
  mask-image: url('../appIcon/sign-in.svg');
  -webkit-mask-image: url('../appIcon/sign-in.svg');
}

.fa-sign-out-alt,
.fa-sign-out {
  mask-image: url('../appIcon/sign-out.svg');
  -webkit-mask-image: url('../appIcon/sign-out.svg');
}

.fa-star {
  mask-image: url('../appIcon/star.svg');
  -webkit-mask-image: url('../appIcon/star.svg');
}

.fa-arrow-right {
  mask-image: url('../appIcon/arrow-right.svg');
  -webkit-mask-image: url('../appIcon/arrow-right.svg');
}

.fa-arrow-left {
  mask-image: url('../appIcon/arrow-right.svg');
  -webkit-mask-image: url('../appIcon/arrow-right.svg');
  transform: rotate(180deg);
}

.fa-tags {
  mask-image: url('../appIcon/tags.svg');
  -webkit-mask-image: url('../appIcon/tags.svg');
}

.fa-pencil,
.fa-pencil-alt {
  mask-image: url('../appIcon/pencil.svg');
  -webkit-mask-image: url('../appIcon/pencil.svg');
}

.fa-trash,
.fa-trash-alt {
  mask-image: url('../appIcon/trash.svg');
  -webkit-mask-image: url('../appIcon/trash.svg');
}

.fa-calendar,
.fa-calendar-alt {
  mask-image: url('../appIcon/calendar.svg');
  -webkit-mask-image: url('../appIcon/calendar.svg');
}

.fa-sort-amount-down,
.fa-sort-amount-up,
.fa-sort-amount-down-alt {
  mask-image: url('../appIcon/sort.svg');
  -webkit-mask-image: url('../appIcon/sort.svg');
}

:root {
  /* Dark Theme Color Palette */
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4cc9f0;
  --accent-color: #f72585;
  --text-primary: #f1f1f1;
  --text-secondary: #b8c1ec;
  --text-muted: #a5b4fc;
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(28, 28, 44, 0.95);
  --bg-sidebar: rgba(15, 15, 28, 0.98);
  --border-color: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --black: #0f0f23;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
  --gradient-accent: linear-gradient(90deg, #4cc9f0, #4361ee);
  --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);

  /* Transitions */
  --transition: all 0.3s ease;

  /* Typography */
  /* Typography Scale */
  --fs-h1: clamp(1.75rem, 4vw + 1rem, 2.5rem);
  --fs-h2: clamp(1.4rem, 3.5vw + 0.5rem, 2rem);
  --fs-h3: clamp(1.2rem, 3vw + 0.25rem, 1.75rem);
  --fs-h4: clamp(1.05rem, 2.5vw, 1.5rem);
  --fs-h5: 1.15rem;
  --fs-h6: 1rem;
  --fs-display-4: clamp(1.85rem, 5vw + 1rem, 3.5rem);
  --fs-body: clamp(0.9rem, 0.4vw + 0.75rem, 1rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Light theme overrides (toggle via <html data-theme="light">) */
:root[data-theme="light"] {
  --primary-color: #2f5cff;
  --primary-dark: #2347c7;
  --primary-light: #2f5cff;
  --accent-color: #d81b60;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fb;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-sidebar: rgba(245, 247, 251, 0.98);
  --border-color: rgba(15, 23, 42, 0.12);

  --white: #ffffff;
  --black: #0f172a;

  --gradient-primary: linear-gradient(135deg, #2f5cff 0%, #4cc9f0 100%);
  --gradient-accent: linear-gradient(90deg, #4cc9f0, #2f5cff);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Theme toggle button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
  flex-shrink: 0;
  outline: none;
  padding: 0;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .theme-toggle {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text-secondary, #555);
}

:root[data-theme="light"] .theme-toggle:hover {
  border-color: var(--primary-color, #4361ee);
  color: var(--primary-color, #4361ee);
  background: rgba(67, 97, 238, 0.06);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-h1);
}

.display-4 {
  font-size: var(--fs-display-4) !important;
}

.lead {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-primary {
  color: var(--primary-light) !important;
}

.text-info {
  color: var(--primary-light) !important;
}

/* Map info to primary-light */
.text-success {
  color: #2ecc71 !important;
}

.text-warning {
  color: #f1c40f !important;
}

.text-danger {
  color: #e74c3c !important;
}

/* Utilities */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow-1 {
  flex-grow: 1;
}

.gap-3 {
  gap: 1rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.me-3 {
  margin-right: 1rem;
}

.ms-2 {
  margin-left: 0.5rem;
}

.ms-3 {
  margin-left: 1rem;
}

.mt-3 {
  margin-top: 1rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.border {
  border: 1px solid var(--border-color) !important;
}

.border-top {
  border-top: 1px solid var(--border-color) !important;
}

.border-white {
  border-color: #fff !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.position-relative {
  position: relative !important;
}

.position-fixed {
  position: fixed;
}

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.bottom-0 {
  bottom: 0;
}

.start-0 {
  left: 0;
}

.end-0 {
  right: 0;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.d-none {
  display: none !important;
}

/* Pagination */
.pagination-nav {
  margin-top: 1.5rem;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pagination-link:hover {
  background: rgba(67, 97, 238, 0.15);
  border-color: var(--primary-color);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Radio page circular play buttons (icon-only) */
#play-btn-top {
  width: 64px;
  height: 64px;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: var(--gradient-primary) !important;
  box-shadow: 0 12px 30px rgba(67, 97, 238, 0.25);
  transition: var(--transition);
}

/* Special section (fresh card wrapper; theme-aware) */
.ril-special-section {
  margin: 16px 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  /* Allow injected content shadows and natural height */
  overflow: visible;
}

:root[data-theme="light"] .ril-special-section {
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.ril-special-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, .03);
}

:root[data-theme="light"] .ril-special-section__head {
  background: rgba(15, 23, 42, .03);
}

.ril-special-section__title {
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.ril-special-section__sub {
  font-size: .85rem;
  color: var(--text-muted);
}

.ril-special-section__body {
  /* Give injected content breathing room + avoid clipping */
  padding: 10px;
  max-width: 100%;
  overflow: visible;
}

@media (min-width: 992px) {
  .ril-special-section__body {
    padding: 14px;
  }
}

/* Ensure injected special content always stays within container */
.ril-special-section__body>* {
  max-width: 100%;
}

.ril-special-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 18px 10px;
}

#play-btn-top i {
  font-size: 1.6rem;
  margin: 0 !important;
}

#play-btn-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(76, 201, 240, 0.25);
  filter: saturate(1.08);
}

#play-btn-top:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(67, 97, 238, 0.22);
}

#play-btn-top:focus-visible {
  outline: 3px solid rgba(76, 201, 240, 0.35);
  outline-offset: 4px;
}

/* Slightly smaller in tight layouts */
@media (max-width: 576px) {
  #play-btn-top {
    width: 56px;
    height: 56px;
  }

  #play-btn-top i {
    font-size: 1.45rem;
  }
}

.d-lg-none {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-pill {
  border-radius: 50rem;
}

.small {
  font-size: 0.875rem;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.fs-4 {
  font-size: 1.5rem;
}

/* Layout */
#header {
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  height: 64px;
  /* Reduced height */
  transition: background 0.3s, height 0.3s;
}

:root[data-theme="light"] #header {
  background: rgba(255, 255, 255, 0.85);
}

#header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 991px) {
  #header .container {
    gap: 10px;
    padding: 0 10px;
  }

  #header .logo img {
    max-height: 30px;
  }
}

/* Header icon buttons (mobile) */
.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

:root[data-theme="light"] .header-icon-btn {
  background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .header-icon-btn:hover {
  background: rgba(15, 23, 42, 0.08);
}

.page-layout {
  display: flex;
  margin-top: 70px;
  /* Match header height */
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1020;
  padding: 1.5rem 0;
  transition: transform 0.3s ease;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  width: calc(100% - 280px);
  padding-bottom: 80px;
  /* Space for player bar */
}

/* Sidebar Components */
.sidebar-section {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.category-list,
.favorites-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item,
.favorite-item {
  margin-bottom: 0.25rem;
}

.category-item a,
.favorite-item a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition);
}

.category-item a:hover,
.favorite-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-light);
  transform: translateX(4px);
}

.category-item.active a {
  background: rgba(67, 97, 238, 0.15);
  color: var(--primary-light);
  border-left: 3px solid var(--primary-color);
}

.category-item i {
  width: 24px;
  margin-right: 0.5rem;
  text-align: center;
}

/* Sidebar cities dropdown (details/summary) */
.sidebar-details {
  margin: 0;
}

.sidebar-details-summary {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}

.sidebar-details-summary::-webkit-details-marker {
  display: none;
}

.sidebar-details-summary::before {
  content: '\f0d7';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.sidebar-details[open] .sidebar-details-summary::before {
  transform: rotate(180deg);
}

.sidebar-details-summary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-light);
}

.sidebar-details .category-list {
  margin-top: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
}

/* Sidebar states with nested cities - Slide submenu style */
.sidebar-state-item {
  position: relative;
  margin-bottom: 0.35rem;
}

/* State row = clear parent header (always visible, distinct from cities) */
.sidebar-state-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0 0.25rem 0 0;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(67, 97, 238, 0.4);
  transition: var(--transition);
  flex-wrap: nowrap;
}

.sidebar-state-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--primary-color);
}

.sidebar-state-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  min-width: 0;
}

.sidebar-state-link:hover {
  color: var(--primary-light);
}

.sidebar-state-link i {
  width: 24px;
  margin-right: 0.5rem;
  text-align: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.sidebar-submenu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
}

.sidebar-submenu-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.sidebar-state-item.submenu-open .sidebar-submenu-toggle {
  background: rgba(67, 97, 238, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-light);
}

.sidebar-state-item.submenu-open .sidebar-submenu-toggle i {
  transform: rotate(90deg);
}

/* Cities list: indented under state, only visible when open */
.sidebar-cities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1.5rem;
  border-left: 2px solid rgba(67, 97, 238, 0.2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.sidebar-state-item.submenu-open .sidebar-cities-list {
  max-height: 500px;
  opacity: 1;
  margin: 0.2rem 0 0.2rem 1.5rem;
}

/* City rows: smaller, muted, clearly children */
.sidebar-city-item {
  margin-bottom: 0.08rem;
}

.sidebar-city-item a {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar-city-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-light);
  transform: translateX(4px);
}

.sidebar-city-item.active a {
  color: var(--primary-light);
  background: rgba(67, 97, 238, 0.15);
  font-weight: 600;
}

.sidebar-city-item a i {
  width: 16px;
  margin-right: 0.35rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-city-item.active a i {
  color: var(--primary-light);
}

/* Active state styling */
.sidebar-state-item.active .sidebar-state-link {
  color: var(--primary-light);
}

.sidebar-state-item.active .sidebar-state-wrapper {
  border-left-color: var(--primary-color);
  background: rgba(67, 97, 238, 0.12);
}

.favorite-info h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-primary);
}

.favorite-info p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* Header Components */
.logo img {
  max-height: 40px;
}

/* Light theme: improve logo contrast on light header */
:root[data-theme="light"] .logo img {
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.35));
}

.search-form {
  position: relative !important;
  max-width: 400px;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-form .form-control {
  padding-right: 50px !important;
  border-radius: 12px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
  transition: all 0.2s ease;
}

.search-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15) !important;
}

.search-form .btn {
  position: absolute !important;
  right: 5px !important;
  top: 4px !important;
  height: 36px !important;
  width: 36px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  /* Matches pill shape */
  background: var(--primary-color) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  transition: all 0.2s ease;
  z-index: 5;
}

.search-close-mobile {
  display: none !important;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
}

.search-form .btn:hover {
  background: var(--primary-dark) !important;
}

.search-form .btn i {
  font-size: 14px;
}

/* Mobile header search dropdown */
@media (max-width: 991px) {
  #header .container {
    position: relative;
  }

  /* Make logo fit better */
  #header .logo img {
    max-height: 32px;
  }

  /* Hide inline search on mobile; open via button */
  #header .search-form {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
    padding: 0 1rem;
    background: var(--bg-secondary) !important;
    z-index: 2000 !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  #header .search-form .form-control {
    flex: 1;
    max-width: 500px;
    height: 44px !important;
    border-radius: 22px !important;
    /* pill shape */
    padding-left: 20px !important;
    padding-right: 50px !important;
  }

  body.search-open #header .search-form {
    display: flex !important;
    visibility: visible !important;
    animation: fadeIn 0.2s ease-out;
  }

  body.search-open .search-close-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  body.search-open #header .logo,
  body.search-open #header .menu-toggle,
  body.search-open #header .hdr-user-wrap,
  body.search-open #header #searchToggle {
    display: none !important;
  }
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  width: 100%;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-form .btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
}

.search-form .btn:hover {
  color: var(--primary-light);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.4);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-light);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-light);
  padding: 0;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.bg-secondary {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.bg-theme {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Light theme: make all badges readable on light surfaces */
:root[data-theme="light"] .badge {
  color: var(--text-primary);
}

:root[data-theme="light"] .bg-secondary {
  background-color: rgba(15, 23, 42, 0.10) !important;
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .bg-theme {
  background-color: rgba(67, 97, 238, 0.15) !important;
  color: var(--primary-color) !important;
}

/* Tag count badges inside pill buttons â€” override text-white in light mode */
:root[data-theme="light"] .btn-outline-primary .badge,
:root[data-theme="light"] .btn-outline-primary .bg-secondary,
:root[data-theme="light"] .rounded-pill .badge {
  background-color: rgba(67, 97, 238, 0.12) !important;
  color: var(--primary-color, #4361ee) !important;
}

/* Sidebar "Popular Tags" pills */
.sidebar .badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
}

:root[data-theme="light"] .sidebar .badge {
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.sidebar .badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

:root[data-theme="light"] .sidebar .badge:hover {
  background: rgba(15, 23, 42, 0.12);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
}

/* Home Page Sections */
.hero-section {
  background: var(--gradient-primary);
  border-radius: 15px;
  padding: 3rem 2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.display-4 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Grids */
.radio-grid,
.category-grid,
.genre-grid,
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Mobile-optimized Listing: Grid to List on small screens */
@media (max-width: 576px) {
  .radio-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    /* Reduced gaping */
  }

  .radio-grid .radio-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 8px 12px !important;
    padding-right: 54px !important;
    height: auto !important;
    background: var(--bg-card) !important;
    border-radius: 12px !important;
    position: relative !important;
  }

  .radio-grid .radio-header {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  .radio-grid .radio-bg {
    width: 54px !important;
    height: 54px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .radio-grid .radio-header::after,
  .radio-grid .radio-views-badge {
    display: none !important;
  }

  .radio-grid .radio-content {
    padding: 0 0 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .radio-grid .radio-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    display: block !important;
  }

  .radio-grid .radio-footer {
    display: none !important;
  }

  .radio-grid .card-fav-btn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    background: transparent !important;
    color: #6c757d !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    font-size: 1.2rem !important;
  }

  .radio-grid .card-fav-btn.is-fav {
    color: #ef476f !important;
  }
}

.category-grid,
.genre-grid,
.language-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Radio Cards */
.radio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.radio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.radio-header {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.radio-views-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.radio-views-badge i {
  font-size: 0.75rem;
  opacity: 0.95;
}

.radio-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.radio-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.radio-card:hover .radio-bg {
  transform: scale(1.1);
}

.radio-logo {
  position: absolute;
  bottom: -20px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 3px solid var(--bg-card);
  z-index: 2;
  background: var(--bg-card);
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.radio-content {
  padding: 30px 15px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1.1rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.radio-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.radio-title a:hover {
  color: var(--primary-light);
}

.radio-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-size: clamp(0.8125rem, 1vw + 0.4rem, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.card-play-btn:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Stretched link to make whole card clickable */
.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  /* Stretches over the card */
  pointer-events: auto;
}

/* Ensure buttons and other interactive items stay on top of the stretched link */
/* We only apply z-index here. Do NOT override the 'position' (absolute/static) */
.card-fav-btn,
.card-play-btn,
.row-play-btn {
  z-index: 5;
}

.radio-card:hover .radio-bg {
  transform: scale(1.1);
}

/* Styled Cards for Categories/Languages */
.category-card,
.genre-card,
.language-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.category-card:hover,
.genre-card:hover,
.language-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(40, 40, 60, 0.9);
}

.category-link,
.genre-link,
.language-link {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  color: var(--text-primary);
  gap: 1rem;
}

.category-icon,
.genre-icon,
.language-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 97, 238, 0.15);
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.category-card:hover .category-icon,
.language-card:hover .language-icon,
.genre-card:hover .genre-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.category-info,
.genre-info,
.language-info {
  flex: 1;
  overflow: hidden;
}

.category-name,
.genre-name,
.language-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-count,
.genre-count,
.language-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.category-arrow,
.language-arrow {
  color: var(--text-muted);
  transition: var(--transition);
}

.category-card:hover .category-arrow,
.language-card:hover .language-arrow {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* Radio Info Card (Single Page) */
.radio-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.radio-info-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.radio-info-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
}

.radio-info-title i {
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.radio-info-body {
  padding: 2rem;
}

.radio-info-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.radio-info-image {
  flex: 0 0 auto;
  text-align: center;
}

.radio-info-image img {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.radio-info-stats {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.radio-info-actions {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.radio-info-description {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.radio-info-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Template: Minimal */
.radio-info-minimal {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radio-info-minimal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.radio-info-minimal h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.radio-info-minimal .rounded-circle {
  border-radius: 50% !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.radio-info-minimal .text-secondary {
  color: var(--text-secondary) !important;
}

.radio-info-minimal #play-btn-top {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-info-minimal #play-btn-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.6) !important;
}

.bg-dark-subtle {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

:root[data-theme="light"] .bg-dark-subtle {
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
}

/* Make plain .table readable in dark mode (when we remove .table-dark in templates) */
:root:not([data-theme="light"]) .table {
  color: var(--text-secondary);
}

:root:not([data-theme="light"]) .table td {
  color: var(--text-secondary);
}

/* Template: Modern */
.radio-info-modern {
  background: var(--bg-card);
  border: none;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.radio-info-modern-desc {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.radio-info-modern .badge {
  padding: 0.5em 1em;
  font-size: 0.85em;
  font-weight: 600;
}

.radio-info-modern .display-4 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Tabs Template - Material Style */
.radio-info-tabbed {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.radio-info-card.radio-info-tabbed {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.display-5 {
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: -0.4px;
}

.radio-info-tabbed .radio-hero {
  padding: 1.5rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    var(--hero-image) center / cover no-repeat;
  color: var(--text-primary);
}

.radio-info-tabbed .radio-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.radio-info-tabbed .radio-hero-media {
  flex: 0 0 auto;
}

.radio-info-tabbed .radio-hero-main {
  flex: 1 1 auto;
  min-width: 0;
}

.radio-info-tabbed .radio-hero-below {
  display: none;
  border-top: 1px solid var(--border-color);
  padding: 0.9rem 1rem;
}

.radio-info-tabbed .radio-hero-below-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.radio-info-tabbed .radio-hero-img-below {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.radio-info-tabbed .radio-hero-title {
  word-break: break-word;
}

/* Share button + popup: top-right overlay on hero background image */
.radio-hero-share-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  padding: 0.5rem;
}

.radio-hero-share-btn {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.radio-hero-share-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.radio-hero-share-btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

.radio-hero-share-popup {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.radio-hero-share-popup[hidden] {
  display: none !important;
}

.share-popup-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.share-popup-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-light);
}

.share-popup-item:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.share-popup-item i {
  width: 20px;
  text-align: center;
  opacity: 0.9;
}

.radio-hero-share-status {
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Light theme: share button + popup */
:root[data-theme="light"] .radio-hero-share-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.15);
}

:root[data-theme="light"] .radio-hero-share-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--primary-color);
  border-color: var(--border-color);
}

:root[data-theme="light"] .radio-hero-share-btn[aria-expanded="true"] {
  background: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

:root[data-theme="light"] .share-popup-item:hover {
  background: rgba(67, 97, 238, 0.08);
  color: var(--primary-color);
}

/* Light theme: use a bright scrim (no dark hero) */
:root[data-theme="light"] .radio-info-tabbed .radio-hero {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.70) 45%,
      rgba(255, 255, 255, 0.18) 100%),
    var(--hero-image) center / cover no-repeat;
  color: var(--text-primary);
}

:root[data-theme="light"] .radio-info-tabbed .radio-hero-img {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

:root[data-theme="light"] .radio-info-tabbed .radio-hero-stats--in-hero {
  color: var(--text-secondary);
}

.radio-info-tabbed .radio-hero-actions #play-btn-top {
  /* Force circle for the hero play button */
  width: 64px !important;
  height: 64px !important;
  min-width: 0 !important;
  border-radius: 9999px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.radio-tabs-container {
  background: var(--bg-card);
  padding: 0;
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.radio-tabs-container .nav-tabs {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.radio-tabs-container .nav-link {
  color: var(--text-secondary);
  border: 1px solid transparent !important;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.3px;
  background: transparent !important;
  position: relative;
  font-size: 0.95rem;
  border-radius: 10px 10px 0 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.radio-tabs-container .nav-link:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--border-color) !important;
}

.radio-tabs-container .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  /* match tab content */
  border-color: var(--border-color) var(--border-color) transparent !important;
  /* â€œconnectâ€ to content */
  margin-bottom: -1px;
  /* overlap nav-tabs bottom border */
  box-shadow: inset 0 3px 0 0 var(--primary-color);
}

/* Remove underline effect for connected tabs */
.radio-tabs-container .nav-link::after {
  display: none;
}

.radio-tabs-container .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.18);
}

/* Better spacing + readability for tab content */
.tab-content>.tab-pane {
  display: none;
}

.tab-content>.tab-pane.active {
  display: block;
}

/* Tab Entrance Animation */
@keyframes tabFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-anim-enter {
  animation: tabFadeInUp 0.25s ease forwards;
}

.radio-info-tabbed .tab-content {
  background: var(--bg-card);
}

.radio-info-tabbed #radioTabsContent {
  padding: 1.25rem !important;
}

.radio-info-tabbed .tab-pane {
  min-height: 180px;
}

/* Tab content animation */
.radio-info-tabbed .tab-pane[hidden] {
  display: none !important;
}

.radio-info-tabbed .tab-pane {
  will-change: opacity, transform;
}

.radio-info-tabbed .tab-pane.tab-anim-enter {
  animation: tabFadeSlideIn 220ms ease both;
}

@keyframes tabFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .radio-info-card.radio-info-tabbed {
    max-width: 100%;
  }

  .radio-tabs-container .nav-tabs {
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 0.5rem;
    flex-wrap: nowrap;
  }

  .radio-tabs-container .nav-link {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .radio-tabs-container .nav-link::after {
    display: none;
  }

  .radio-info-tabbed #radioTabsContent {
    padding: 0.9rem !important;
  }
}

/* Tab content specific overrides */
.table-dark {
  background-color: transparent;
  --bs-table-bg: transparent;
}

.table-dark td {
  color: var(--text-secondary);
}

/* Utilities for templates */
.bg-dark {
  background-color: #212529 !important;
}

.text-white {
  color: #fff !important;
}

.text-dark {
  color: #212529 !important;
}

.bg-white {
  background-color: #fff !important;
}

.bg-info {
  background-color: #0dcaf0 !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.border-0 {
  border: 0 !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.p-md-5 {
  padding: 3rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.w-auto {
  width: auto !important;
}


/* Player Bar */
.player-bar {
  background: rgba(20, 20, 35, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1040;
}

/* Light theme: footer player should not stay dark */
:root[data-theme="light"] .player-bar {
  background: rgba(245, 247, 251, 0.98);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 10px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .player-bar.text-white {
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .player-bar .btn-link {
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .player-bar .btn-link:hover {
  color: var(--primary-color) !important;
}

#expandPlayerBtn {
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#expandPlayerBtn:active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.player-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 1rem;
}

.player-status-indicator.offline {
  background: #e74c3c;
  box-shadow: 0 0 5px #e74c3c;
}

.player-status-indicator.live {
  background: #2ecc71;
  box-shadow: 0 0 5px #2ecc71;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* Footer */
#footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: auto;
  color: var(--text-secondary);
  /* Prevent footer from sitting under fixed sidebar */
  margin-left: 280px;
  width: calc(100% - 280px);
}

#footer h5 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

#footer ul {
  padding-left: 0;
  list-style: none;
}

#footer ul li {
  margin-bottom: 0.75rem;
}

#footer a {
  color: var(--text-secondary);
}

#footer a:hover {
  color: var(--primary-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Row/Col Grid System (Simple) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Grid System - Responsive */
.col-md-3,
.col-md-4,
.col-md-9 {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 2rem;
  /* Spacing for stacked layout */
}

@media (min-width: 992px) {
  .col-md-3 {
    width: 25%;
    margin-bottom: 0;
  }

  .col-md-4 {
    width: 33.333%;
    margin-bottom: 0;
  }

  .col-md-9 {
    width: 75%;
    margin-bottom: 0;
  }
}

.fw-bold {
  font-weight: 700 !important;
}

.text-light {
  color: #f8f9fa !important;
}

.bg-danger {
  background-color: #dc3545 !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-success {
  background-color: #198754;
  color: #fff;
  border: none;
}

.btn-success:hover {
  background-color: #157347;
  color: #fff;
}

.btn-outline-light {
  border: 1px solid #f8f9fa;
  color: #f8f9fa;
  background: transparent;
}

.text-center {
  text-align: center !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.small {
  font-size: 0.875rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

.btn-outline-light:hover {
  background: #f8f9fa;
  color: #000;
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .justify-content-md-start {
    justify-content: flex-start !important;
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {

  /* Mobile header tightening */
  #header .container {
    gap: 0.75rem;
  }

  .search-form {
    max-width: 260px;
  }

  .sidebar {
    width: min(320px, 86vw);
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  #footer {
    margin-left: 0;
    width: 100%;
    text-align: left;
    padding: 2rem 1rem 1rem;
  }

  .d-lg-none {
    display: block !important;
  }

  /* Sidebar toggle button styling (applies up to 992px) */
  #sidebarToggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0;
    margin-right: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
}

/* â”€â”€â”€ Tabs Radio Hero: Flattened Side-by-Side â”€â”€â”€ */
.radio-info-tabbed .radio-hero {
  padding: 15px 20px !important;
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.radio-info-tabbed .radio-hero-inner {
  display: flex !important;
  align-items: center !important;
  /* Center content vertically relative to image */
  gap: 20px !important;
  max-width: 1000px;
  margin: 0 auto;
}

/* Logo Sizing - Large to match content height */
.radio-info-tabbed .radio-hero-img {
  width: 110px !important;
  height: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #fff;
}

/* Main Content Column (Title + Buttons + Badges) */
.radio-info-tabbed .radio-hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex: 1;
  min-width: 0;
}

.radio-info-tabbed .radio-hero-title {
  font-size: 1.15rem !important;
  margin: 0 0 6px 0 !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
  line-height: 1.2 !important;
  word-wrap: break-word;
}

.radio-info-tabbed .radio-hero-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

/* Play Button */
.radio-info-tabbed #play-btn-top {
  width: 38px !important;
  height: 38px !important;
  background: rgba(128, 128, 128, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease;
  flex-shrink: 0 !important;
}

.radio-info-tabbed #play-btn-top i {
  font-size: 0.85rem !important;
  color: var(--primary-color) !important;
}

/* Desktop Version: Inside Content Column */
.radio-info-tabbed .radio-hero-bottom-info.hero-stats-desktop {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Centered for desktop as requested */
  width: 100% !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 5px !important;
}

/* Mobile Version: At the Bottom */
.radio-info-tabbed .radio-hero-bottom-info.hero-stats-mobile {
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  /* Spread items to fit row */
  width: 100% !important;
  flex-wrap: nowrap !important;
  /* Force single row */
  gap: 5px !important;
  margin-top: 15px !important;
}

/* Mobile Badge Optimizations to fit row */
@media (max-width: 480px) {
  .hero-stats-mobile .badge {
    padding: 4px 6px !important;
    font-size: 0.62rem !important;
    gap: 4px !important;
  }

  .hero-stats-mobile .radio-hero-share-btn {
    padding: 4px 8px !important;
    font-size: 0.62rem !important;
  }
}

/* Modern Glassmorphic Badges */
.radio-info-tabbed .radio-hero-stats .badge {
  padding: 6px 12px !important;
  font-size: 0.72rem !important;
  background: rgba(128, 128, 128, 0.05) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease;
}

.radio-info-tabbed .radio-hero-stats .badge:hover {
  background: rgba(128, 128, 128, 0.1) !important;
  transform: translateY(-1px);
}

/* Icon Colors for Modern Feel */
.stat-visits i {
  color: #6c757d;
}

.stat-likes i {
  color: var(--primary-color);
}

.stat-shares i {
  color: #0dcaf0;
}

.stat-live i {
  color: #dc3545;
}

.radio-info-tabbed .radio-views-badge {
  display: none !important;
}

/* Share Button & Popup */
.radio-hero-share-wrap-bottom {
  position: relative !important;
}

.radio-hero-share-btn {
  padding: 6px 14px !important;
  font-size: 0.72rem !important;
  background: rgba(var(--primary-rgb, 67, 97, 238), 0.1) !important;
  border: 1px solid rgba(var(--primary-rgb, 67, 97, 238), 0.2) !important;
  border-radius: 8px !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.radio-hero-share-btn:hover {
  background: var(--bg-card) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-1px);
}

.radio-hero-share-popup {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  z-index: 1000 !important;
  min-width: 180px;
  padding: 8px !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-hero-share-popup[hidden] {
  display: none !important;
}

.share-popup-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  color: var(--text-primary) !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.share-popup-item:hover {
  background: rgba(128, 128, 128, 0.08) !important;
  color: var(--primary-color) !important;
}

.share-popup-item i {
  width: 16px;
  text-align: center;
}

/* Mobile Overrides */
@media (max-width: 768px) {
  .radio-info-tabbed .radio-hero-bottom-info.hero-stats-desktop {
    display: none !important;
  }

  .radio-info-tabbed .radio-hero-bottom-info.hero-stats-mobile {
    display: flex !important;
  }

  .radio-info-tabbed .radio-hero-img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
  }

  .radio-info-tabbed .radio-hero-title {
    font-size: 1rem !important;
  }
}

/* End of Hero Styles */

/* Mobile sidebar backdrop */
.sidebar-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  /* header height */
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open {
  overflow: hidden;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(67, 97, 238, 0.15);
  color: var(--primary-light);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-collapse {
  display: none;
  padding: 1rem;
  color: var(--text-secondary);
}

.accordion-collapse.show {
  display: block;
}

/* AdSense Placeholder Stability */
.ad-header-wrapper, 
.ad-slot-wrapper {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center;
  background: transparent; /* Parent is auto and clean */
  position: relative;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0px !important;
}

/* Hardened Heights for the INS Tag Classes */
.ad-unit-top { min-height: 90px !important; width: 100% !important; }
.ad-unit-mid { min-height: 250px !important; }
.ad-unit-radio { min-height: 250px !important; }
.ad-unit-sticky { min-height: 90px !important; }

@media (max-width: 767px) {
  .ad-header-wrapper,
  .ad-slot-wrapper {
    margin: 5px auto !important;
  }
  
  .ad-unit-top { min-height: 250px !important; } /* Forces 320x250 space on INS tag */
  .ad-unit-mid { min-height: 280px !important; }
  .ad-unit-radio,
  .ad-unit-radio-mobile {
    min-height: 250px !important;
  }
  .ad-unit-sticky { min-height: 50px !important; }
}

.d-md-none {
  @media (min-width: 768px) {
    display: none !important;
  }
}

.ad-slot-wrapper::before {
  content: "ADVERTISEMENT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted, #888);
  letter-spacing: 2.5px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .ad-slot-wrapper {
  background: rgba(255, 255, 255, 0.02);
}

.radio-info-tabbed .radio-hero-bottom-info.hero-stats-desktop {
  display: none !important;
}

.radio-info-tabbed .radio-hero-bottom-info.hero-stats-mobile {
  display: flex !important;
}

.radio-info-tabbed .radio-hero-img {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
}

.radio-info-tabbed .radio-hero-title {
  font-size: 1rem !important;
}


/* End of Hero Styles */

/* Mobile sidebar backdrop */
.sidebar-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: 70px;
  /* header height */
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open {
  overflow: hidden;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(67, 97, 238, 0.15);
  color: var(--primary-light);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-collapse {
  display: none;
  padding: 1rem;
  color: var(--text-secondary);
}

.accordion-collapse.show {
  display: block;
}

/* â”€â”€ Google Ad Manager Placeholders for CLS Optimization â”€â”€ */
.ad-slot-wrapper {
  display: block;
  width: 100%;
  margin: 24px auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ad-slot-wrapper::before {
  content: "ADVERTISEMENT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted, #888);
  letter-spacing: 2.5px;
  opacity: 0.4;
  pointer-events: none;
}

/* Common Height Reservations (Adjust based on your ad inventory) */
.ad-header-top {
  min-height: 90px;
  max-width: 970px;
  /* Accommodate Large Leaderboard */
}

.ad-in-content {
  min-height: 280px;
  /* Accommodate Large Rectangle */
  max-width: 728px;
}

.ad-radio-page {
  min-height: 250px;
  /* Accommodate Medium Rectangle */
  max-width: 728px;
}

[data-theme="dark"] .ad-slot-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .ad-slot-wrapper {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.05);
}

/* â”€â”€â”€ Immersive Full-Screen Mobile Player: Extreme Robustness â”€â”€â”€ */
#immersivePlayer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  color: #ffffff !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
  transform: translateY(100%) !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

#immersivePlayer.active {
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#immersivePlayer.active .immersive-player-content {
  animation: immersiveContentPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes immersiveContentPop {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.immersive-player-bg {
  position: absolute !important;
  inset: -20px !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(40px) brightness(0.5) !important;
  z-index: 1 !important;
  display: block !important;
}

.immersive-player-edge-light {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 60px rgba(67, 97, 238, 0.4),
    inset 0 0 120px rgba(67, 97, 238, 0.2) !important;
  animation: edgeLightPulse 4s ease-in-out infinite !important;
}

.immersive-player-edge-light::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border: 2px solid transparent !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%) border-box !important;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) !important;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  animation: borderBeam 6s linear infinite !important;
  opacity: 0.6 !important;
}

@keyframes borderBeam {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes edgeLightPulse {
  0% {
    box-shadow: inset 0 0 40px rgba(67, 97, 238, 0.3), inset 0 0 80px rgba(67, 97, 238, 0.1);
  }

  50% {
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.3), inset 0 0 150px rgba(67, 97, 238, 0.4);
  }

  100% {
    box-shadow: inset 0 0 40px rgba(67, 97, 238, 0.3), inset 0 0 80px rgba(67, 97, 238, 0.1);
  }
}

/* Optional: Adding more vibrant corners */
.immersive-player-edge-light::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 200px !important;
  background: radial-gradient(circle at bottom, rgba(67, 97, 238, 0.6) 0%, transparent 70%) !important;
  opacity: 0.8 !important;
  animation: bottomLightPulse 5s ease-in-out infinite !important;
}

@keyframes bottomLightPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.8);
  }

  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}

.immersive-player-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.8) 100%) !important;
  z-index: 2 !important;
  display: block !important;
}

.immersive-player-content {
  position: relative !important;
  z-index: 10 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 20px) !important;
  background: transparent !important;
  overflow: hidden !important;
}

/* Glass Sweep Shine Effect */
.immersive-player-content::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -150% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%) !important;
  transform: skewX(-25deg) !important;
  animation: glassSweep 8s infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

@keyframes glassSweep {
  0% {
    left: -150%;
  }

  20% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.immersive-player-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  flex-shrink: 0 !important;
}

.immersive-btn-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.immersive-header-info {
  text-align: center !important;
  color: #ffffff !important;
}

.immersive-label {
  font-size: 0.65rem !important;
  letter-spacing: 2px !important;
  opacity: 0.8 !important;
  font-weight: 700 !important;
  display: block !important;
  color: #ffffff !important;
}

.immersive-station-name {
  font-size: 0.9rem !important;
  margin: 0 !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  max-width: 200px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Body / Visualizer */
.immersive-player-body {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px !important;
}

.vinyl-container {
  width: 280px !important;
  height: 280px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vinyl-record {
  width: 100% !important;
  height: 100% !important;
  background: #0a0a0a !important;
  border-radius: 50% !important;
  position: relative !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 10px #111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 4px solid #222 !important;
  overflow: hidden !important;
}

/* Realistic Vinyl Shine: Stays fixed while record spins */
.vinyl-record::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.05) 45deg,
      transparent 90deg,
      rgba(255, 255, 255, 0.05) 135deg,
      transparent 180deg,
      rgba(255, 255, 255, 0.05) 225deg,
      transparent 270deg,
      rgba(255, 255, 255, 0.05) 315deg,
      transparent 360deg) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

/* Glowing Pulse Rings */
.vinyl-container::before,
.vinyl-container::after {
  content: '' !important;
  position: absolute !important;
  inset: -15px !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  animation: ringPulseImmersive 3s ease-out infinite !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.vinyl-container::after {
  animation-delay: 1.5s !important;
  inset: -30px !important;
  opacity: 0.5 !important;
}

@keyframes ringPulseImmersive {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
    border-color: var(--primary-color, #4361ee);
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.vinyl-record::before {
  content: '' !important;
  position: absolute !important;
  inset: 8px !important;
  border-radius: 50% !important;
  background: repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px) !important;
  z-index: 2 !important;
}

.vinyl-logo {
  width: 115px !important;
  height: 115px !important;
  border-radius: 50% !important;
  z-index: 5 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(255, 255, 255, 0.05) !important;
  object-fit: cover !important;
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.vinyl-record.playing {
  animation: spinVinyl 8s linear infinite !important;
}

/* Footer Controls */
.immersive-player-footer {
  padding-bottom: 30px !important;
  flex-shrink: 0 !important;
}

.immersive-meta {
  text-align: center !important;
  margin-bottom: 25px !important;
}

.immersive-title {
  font-size: 1.5rem !important;
  margin: 0 0 5px 0 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.immersive-subtitle {
  font-size: 0.9rem !important;
  opacity: 0.7 !important;
  color: #ffffff !important;
}

.immersive-progress-wrap {
  margin-bottom: 25px !important;
}

.immersive-progress-track {
  height: 4px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 2px !important;
  position: relative !important;
  overflow: hidden !important;
}

.immersive-progress-wave {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 200% !important;
  background: linear-gradient(90deg,
      var(--gradient-primary, #4361ee) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      var(--gradient-primary, #4361ee) 100%) !important;
  opacity: 0.8 !important;
  animation: waveMoveImmersive 3s ease-in-out infinite !important;
  box-shadow: 0 0 15px var(--primary-color, #4361ee);
}

@keyframes waveMoveImmersive {
  0% {
    transform: translateX(-50%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.immersive-time-labels {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  margin-top: 10px !important;
  opacity: 0.8 !important;
  color: #ffffff !important;
}

.immersive-controls {
  display: flex !important;
  justify-content: space-between !important;
  gap: 15px !important;
  align-items: center !important;
  margin-bottom: 35px !important;
  padding: 0 15px !important;
}

.immersive-btn-primary {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer !important;
}

#immersivePlayer.active .immersive-btn-primary {
  animation: playBtnPulse 2s infinite;
}

@keyframes playBtnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
  }
}

.immersive-btn-secondary {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  opacity: 0.8 !important;
  padding: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.2s, opacity 0.2s !important;
}

.immersive-btn-secondary:hover {
  opacity: 1 !important;
  transform: scale(1.15) !important;
}

#prevStationBtn i,
#nextStationBtn i {
  font-size: 1.4rem !important;
}

.immersive-btn-primary:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4) !important;
}

.immersive-btn-icon,
.immersive-btn-small {
  cursor: pointer !important;
  transition: transform 0.2s, opacity 0.2s !important;
}

.immersive-btn-icon:hover,
.immersive-btn-small:hover {
  transform: scale(1.1) !important;
  opacity: 1 !important;
}

.immersive-extra-actions {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 15px !important;
}

.immersive-btn-small {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  opacity: 0.7 !important;
  font-size: 1.05rem !important;
}

/* Small Device Adjustments */
@media (max-height: 700px) {
  .vinyl-container {
    width: 200px !important;
    height: 200px !important;
  }

  .vinyl-logo {
    width: 85px !important;
    height: 85px !important;
  }

  .immersive-title {
    font-size: 1.25rem !important;
  }

  .immersive-meta {
    margin-bottom: 12px !important;
  }

  .immersive-controls {
    margin-bottom: 15px !important;
  }

  .immersive-btn-primary {
    width: 62px !important;
    height: 62px !important;
  }
}

#header,
#header * {
  box-sizing: border-box !important;
}

.menu-toggle,
.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.menu-toggle:hover,
.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .menu-toggle,
:root[data-theme="light"] .header-icon-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.logo {
  display: inline-block;
}

.search-form {
  position: relative !important;
  display: none;
  align-items: center !important;
}

body.search-open .search-form {
  display: flex !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000 !important;
  background: var(--bg-secondary) !important;
  padding: 0 1rem !important;
}

.search-form .btn {
  position: absolute !important;
  right: 6px !important;
  /* Desktop default */
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--primary-color) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  transition: background 0.2s ease !important;
}

@media (max-width: 991px) {
  .search-form .btn {
    right: 20px !important;
    /* Mobile adjustment */
  }
}

.search-form .btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-50%) !important;
}

.search-form .form-control {
  border-radius: 24px !important;
  padding-right: 56px !important;
  height: 44px !important;
  font-size: 16px !important;
  /* Prevents iOS auto-zoom */
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .search-form .form-control {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #000 !important;
}

@media (min-width: 992px) {
  .search-form {
    display: flex !important;
    flex: 1;
    max-width: 450px;
    margin: 0 auto !important;
  }
}

@media (max-width: 991px) {
  #header .container {
    gap: 12px !important;
    padding: 0 16px !important;
  }

  .hdr-right-group {
    gap: 12px !important;
  }

  .logo img {
    max-width: 140px;
    height: auto;
  }
}

@media (max-width: 576px) {
  .logo img {
    max-width: 120px;
  }
}

.hdr-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.15));
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  outline: none;
  color: var(--text-primary);
}

.hdr-user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hdr-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hdr-avatar-initials {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hdr-user-wrap {
  position: relative;
}

/* Dropdown panel */
.hdr-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 260px !important;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 8px !important;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .2s ease;
}

.hdr-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hdr-user-info {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  margin-bottom: 4px;
}

.hdr-user-info__label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary, #888);
}

.hdr-user-info__name {
  display: block;
  font-size: var(--fs-body, 14px);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.hdr-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: var(--fs-body, 14px);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all .2s ease;
  border-radius: 8px;
  margin: 0;
  width: 100%;
}

.hdr-user-item:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.hdr-user-item:hover i {
  color: #fff !important;
}

.hdr-user-item span {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hdr-user-item:active {
  opacity: 0.8;
}

.hdr-user-item i {
  width: 16px;
  text-align: center;
  color: var(--text-secondary, #888);
  font-size: 13px;
}

.hdr-user-item--danger {
  color: #e53935;
}

.hdr-user-item--danger i {
  color: #e53935;
}

.hdr-user-divider {
  height: 1px;
  background: var(--border-color, #e0e0e0);
  margin: 4px 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Login icon (not logged in) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
a.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}

a.header-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] a.header-icon-btn {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text-secondary, #555);
}

:root[data-theme="light"] a.header-icon-btn:hover {
  border-color: var(--primary-color, #4361ee);
  color: var(--primary-color, #4361ee);
  background: rgba(67, 97, 238, 0.06);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Favorite Button on Cards Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.radio-header {
  position: relative;
}

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: background .2s, transform .2s, color .2s;
  z-index: 2;
  opacity: 0;
}

.radio-card:hover .card-fav-btn,
.card-fav-btn.is-fav {
  opacity: 1;
}

.card-fav-btn:hover {
  background: rgba(229, 57, 53, .85);
  transform: scale(1.1);
}

.card-fav-btn.is-fav {
  color: #ff4d6d;
  background: rgba(229, 57, 53, .25);
}

.card-fav-btn.is-fav:hover {
  background: rgba(229, 57, 53, .85);
  color: #fff;
}

/* -- Save Search Button ------------------------- */
.search-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #888);
  font-size: 16px;
  padding: 0 8px;
  transition: color .2s, transform .15s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-save-btn:hover {
  color: var(--primary-color, #4361ee);
}

.search-save-btn.saved {
  color: var(--primary-color, #4361ee);
}

.search-save-btn.saved i {
  font-weight: 900;
}

@media (max-width: 576px) {
  .hdr-user-dropdown {
    right: -8px;
    min-width: 190px;
  }

  .card-fav-btn {
    opacity: 1;
  }
}

/* Expanded Player Favorites Modal */
.immersive-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: flex-end;
  /* Align sidebar to right */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.immersive-modal.active {
  display: flex !important;
  opacity: 1;
}

.immersive-modal-content {
  background: #1a1a2e;
  width: 85%;
  max-width: 380px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.immersive-modal.active .immersive-modal-content {
  transform: translateX(0);
}

.immersive-modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.immersive-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.fav-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
  color: #fff !important;
}

.fav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fav-item.active {
  background: rgba(67, 97, 238, 0.2);
  border: 1px solid rgba(67, 97, 238, 0.3);
}

.fav-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.fav-info {
  flex: 1;
}

.fav-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.fav-msg {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
  color: #fff;
}

/* Volume Slider in Immersive Player */
.volume-overlay {
  position: absolute;
  bottom: 100px;
  right: 20px;
  background: rgba(30, 30, 46, 0.95);
  padding: 15px;
  border-radius: 30px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  height: 180px;
}

.volume-overlay.active {
  display: flex !important;
}

.volume-range {
  writing-mode: bt-lr;
  /* IE */
  -webkit-appearance: slider-vertical;
  /* WebKit */
  width: 8px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
}

.volume-range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-left: -4px;
}