/* ARE Live — black theme (matches main header) */
:root {
  --live-green: #000000;
  --live-green-dark: #222222;
  --live-bg: #ececec;
  --live-red: #e23b3b;
}

/* ========== Inner page shell (matches Studio) ========== */
html.page-live-inner,
html.page-live-inner body {
  background: var(--live-bg);
  margin: 0;
}

.live-inner-shell {
  min-height: calc(100vh - 60px);
  background: var(--live-bg);
}

html.page-live-inner .breadcrumbs-area.live-inner-breadcrumb {
  padding-top: calc(72px + 44px);
  padding-bottom: 44px;
  margin-top: 0;
}

html.page-live-inner .footer-area {
  width: 100%;
  margin-top: 0 !important;
}

.live-subnav-band {
  background: linear-gradient(165deg, var(--live-green) 0%, var(--live-green-dark) 100%);
  padding: 0 16px 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.live-mode-tabs {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 5px 5px 0;
  gap: 5px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.live-mode-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 14px;
  color: #6b6b6b;
  text-decoration: none;
  transition: all .2s ease;
}

.live-mode-tab.active {
  background: linear-gradient(165deg, var(--live-green) 0%, var(--live-green-dark) 100%);
  color: #fff;
}

.live-mode-tab:hover {
  color: var(--live-green-dark);
}

.live-mode-tab.active:hover {
  color: #fff;
}

.live-inner-body {
  padding: 28px 0 60px;
  position: relative;
  z-index: 1;
}

html.page-live-inner .live-inner-container,
html.page-live-inner .container.live-inner-container {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 992px) {
  html.page-live-inner .live-inner-container,
  html.page-live-inner .container.live-inner-container {
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
  }

  .live-mode-tabs {
    max-width: 560px;
  }

  html.page-live-inner .live-inner-body:not(:has(.live-shell)) {
    padding: 12px 0 64px;
  }
}

@media (min-width: 1200px) {
  html.page-live-inner .live-inner-container,
  html.page-live-inner .container.live-inner-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1600px) {
  html.page-live-inner .live-inner-container,
  html.page-live-inner .container.live-inner-container {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ========== Radio card ========== */
.live-shell {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.live-ambient {
  display: none;
}

.live-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}

.live-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #2b2f36 0%, #16181c 70%);
  border-radius: 22px;
  padding: 22px 22px 30px;
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  text-align: center;
  overflow: visible;
}

.live-card-main {
  display: block;
}

.live-card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.live-art-ring {
  display: none;
}

/* Mobile / tablet: keep vertical stack, richer stage */
@media (max-width: 991px) {
  html.page-live-inner:has(.live-shell),
  html.page-live-inner:has(.live-shell) body,
  html.page-live-inner:has(.live-shell) .live-inner-shell {
    background: #0c0a0b;
  }

  html.page-live-inner .live-inner-body:has(.live-shell) {
    padding: 12px 0 28px;
    background: #0c0a0b;
  }

  html.page-live-inner .live-inner-body:has(.live-shell) > .live-inner-container {
    max-width: 100%;
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  html.page-live-inner:has(.live-shell) .footer-area {
    background: #0c0a0b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .live-shell {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 8px 0 20px;
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: #0c0a0b;
    position: relative;
  }

  .live-ambient {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .live-ambient-blur {
    position: absolute;
    inset: -20%;
    background-image: url('../images/logo-black.png');
    background-size: cover;
    background-position: center;
    filter: blur(36px) saturate(1.4) brightness(0.5);
    transform: scale(1.2);
    opacity: 0.5;
    transition: background-image 0.6s ease, opacity 0.45s ease;
  }

  .live-ambient-wash {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 45% at 50% 0%, rgba(232, 93, 74, 0.32) 0%, transparent 55%),
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(201, 149, 74, 0.2) 0%, transparent 50%),
      linear-gradient(180deg, rgba(12, 10, 11, 0.25) 0%, rgba(12, 10, 11, 0.88) 100%);
  }

  .live-ambient-beam {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 320px;
    max-height: 320px;
    border-radius: 50%;
    filter: blur(6px);
    animation: liveOrbFloat 12s ease-in-out infinite;
  }

  .live-ambient-beam--a {
    left: -20%;
    top: 8%;
    background: radial-gradient(circle, rgba(255, 120, 90, 0.4) 0%, transparent 68%);
  }

  .live-ambient-beam--b {
    right: -18%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(230, 180, 90, 0.32) 0%, transparent 68%);
    animation-delay: -5s;
  }

  .live-ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 72%);
    opacity: 0.4;
  }

  .live-stage {
    width: min(420px, 100%);
    position: relative;
    z-index: 2;
  }

  .live-card {
    padding: 18px 18px 26px;
    border-radius: 24px;
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(22, 18, 20, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible;
  }

  .live-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 40%, transparent 70%, rgba(232, 93, 74, 0.1));
  }

  .live-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .live-card-side {
    width: 100%;
    align-items: center;
  }

  .live-art-wrap {
    position: relative;
    margin: 18px auto 10px;
    width: min(220px, 62vw);
    height: min(220px, 62vw);
    max-width: min(220px, 62vw);
    max-height: min(220px, 62vw);
    overflow: hidden;
    flex: 0 0 auto;
  }

  .live-art-ring {
    display: block;
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 190, 140, 0.4);
    box-shadow: 0 0 28px rgba(232, 93, 74, 0.22);
    opacity: 0.65;
    animation: liveRingPulse 3.2s ease-in-out infinite;
  }

  .live-card[data-state="playing"] .live-art-ring,
  .live-card[data-state="live"] .live-art-ring {
    opacity: 1;
    box-shadow:
      0 0 0 1px rgba(232, 93, 74, 0.35),
      0 0 36px rgba(232, 93, 74, 0.4);
  }

  .live-art {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  }

  .live-card[data-state="playing"] .live-art:not(.live-thumb-default) img {
    animation: liveArtGlow 6s ease-in-out infinite;
  }

  .live-station-name {
    color: #f0c9a0;
    letter-spacing: 0.03em;
  }

  .live-track-name {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff 0%, #ffe2c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .live-status-msg {
    color: #d2c4b8;
  }

  .live-volume {
    max-width: 280px;
    width: 100%;
    margin: 20px auto 8px;
  }

  .live-volume input[type="range"] {
    background: linear-gradient(90deg, rgba(232, 93, 74, 0.55), rgba(201, 149, 74, 0.55));
    height: 6px;
  }

  .live-volume input[type="range"]::-webkit-slider-thumb {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.35), 0 3px 10px rgba(0, 0, 0, 0.35);
  }

  .live-volume input[type="range"]::-moz-range-thumb {
    background: #fff;
  }

  .live-power-btn {
    width: 82px;
    height: 82px;
    font-size: 32px;
    box-shadow:
      0 10px 26px rgba(198, 40, 40, 0.55),
      0 0 0 7px rgba(232, 93, 74, 0.14),
      inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  }

  .live-card[data-state="playing"] .live-power-btn {
    animation: livePowerBreath 2.4s ease-in-out infinite;
  }

  .live-power-label {
    color: #e8d5c4;
  }

  .live-manage-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 190, 140, 0.28);
    color: #f0e0d2;
  }

  .live-manage-link:hover {
    background: rgba(232, 93, 74, 0.22);
    color: #fff;
  }

  .live-cat-nav-btn {
    border-color: rgba(255, 190, 140, 0.35);
  }

  .live-badge {
    background: rgba(226, 59, 59, 0.22);
  }

  .live-listeners {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Desktop: immersive broadcast stage */
@media (min-width: 992px) {
  html.page-live-inner:has(.live-shell),
  html.page-live-inner:has(.live-shell) body,
  html.page-live-inner:has(.live-shell) .live-inner-shell {
    background: #0c0a0b;
  }

  html.page-live-inner .live-inner-body:has(.live-shell) {
    padding: 0;
    background: #0c0a0b;
  }

  html.page-live-inner .live-inner-body:has(.live-shell) > .live-inner-container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  html.page-live-inner:has(.live-shell) .footer-area {
    background: #0c0a0b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .live-shell {
    max-width: none;
    width: 100%;
    min-height: calc(100vh - 240px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px 40px;
    position: relative;
    overflow: visible;
    background: #0c0a0b;
  }

  .live-ambient {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .live-ambient-blur {
    position: absolute;
    inset: -18%;
    background-image: url('../images/logo-black.png');
    background-size: cover;
    background-position: center;
    filter: blur(56px) saturate(1.4) brightness(0.62);
    transform: scale(1.2);
    opacity: 0.7;
    transition: background-image 0.7s ease, opacity 0.5s ease;
  }

  .live-ambient-wash {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 52% 48% at 20% 28%, rgba(232, 93, 74, 0.22) 0%, transparent 60%),
      radial-gradient(ellipse 48% 42% at 82% 70%, rgba(201, 149, 74, 0.16) 0%, transparent 58%),
      radial-gradient(ellipse 36% 30% at 50% 100%, rgba(180, 60, 80, 0.14) 0%, transparent 62%),
      linear-gradient(180deg, rgba(8, 6, 8, 0.72) 0%, rgba(8, 6, 8, 0.8) 45%, rgba(8, 6, 8, 0.88) 100%);
  }

  .live-ambient-beam {
    position: absolute;
    width: 38vw;
    height: 38vw;
    max-width: 480px;
    max-height: 480px;
    border-radius: 50%;
    filter: blur(10px);
    animation: liveOrbFloat 16s ease-in-out infinite;
  }

  .live-ambient-beam--a {
    left: -6%;
    top: 14%;
    background: radial-gradient(circle, rgba(255, 120, 90, 0.28) 0%, transparent 70%);
  }

  .live-ambient-beam--b {
    right: -4%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(230, 180, 90, 0.22) 0%, transparent 70%);
    animation-delay: -7s;
  }

  .live-ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 15%, transparent 72%);
    opacity: 0.35;
  }

  @keyframes liveOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(14px, -18px) scale(1.06); }
  }

  .live-stage {
    width: min(1080px, 100%);
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .live-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 55% 50% at 50% 48%, rgba(232, 93, 74, 0.12) 0%, transparent 68%),
      radial-gradient(ellipse 40% 36% at 50% 55%, rgba(201, 149, 74, 0.08) 0%, transparent 70%);
  }

  .live-shell .live-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 24px 28px 28px;
    border-radius: 26px;
    text-align: start;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(18, 14, 16, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.42),
      0 8px 24px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: visible;
    animation: liveCardFadeIn 0.55s ease both;
  }

  @keyframes liveCardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .live-shell .live-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 38%, transparent 68%, rgba(232, 93, 74, 0.07));
  }

  .live-shell .live-card-head {
    margin-bottom: 0;
    gap: 12px;
  }

  .live-shell .live-badge {
    padding: 6px 14px;
    background: rgba(226, 59, 59, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.45);
    box-shadow: 0 0 0 1px rgba(226, 59, 59, 0.08), 0 4px 14px rgba(226, 59, 59, 0.12);
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .live-shell .live-badge-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55);
  }

  .live-shell .live-card[data-state="live"] .live-badge-dot,
  .live-shell .live-card[data-state="playing"] .live-badge-dot {
    animation: livePulseSoft 1.8s ease-out infinite;
  }

  @keyframes livePulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); transform: scale(1); }
  }

  .live-shell .live-listeners {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f2ece6;
  }

  .live-shell .live-listeners i {
    color: #f0c9a0;
  }

  .live-shell .live-listeners-label {
    color: #c9b8a8;
  }

  .live-card-main {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-top: 14px;
  }

  html[dir="rtl"] .live-card-main {
    direction: rtl;
  }

  .live-card-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
  }

  .live-shell .live-art-wrap {
    margin: 0;
    position: relative;
    width: min(320px, 42vh, 100%);
    height: min(320px, 42vh, 100%);
    max-width: 320px;
    max-height: min(320px, 42vh);
    overflow: hidden;
    flex: 0 0 auto;
    transition: transform 0.35s ease;
  }

  .live-shell .live-art-wrap:hover {
    transform: scale(1.025);
  }

  .live-art-ring {
    display: block;
    position: absolute;
    inset: -12px;
    border-radius: 26px;
    border: 1px solid rgba(255, 190, 140, 0.32);
    box-shadow:
      0 0 0 1px rgba(232, 93, 74, 0.12),
      0 0 36px rgba(232, 93, 74, 0.16);
    opacity: 0.5;
    transition: opacity 0.35s ease, box-shadow 0.35s ease;
    animation: liveRingPulse 3.4s ease-in-out infinite;
  }

  .live-card[data-state="playing"] .live-art-ring,
  .live-card[data-state="live"] .live-art-ring {
    opacity: 1;
    box-shadow:
      0 0 0 1px rgba(232, 93, 74, 0.32),
      0 0 42px rgba(232, 93, 74, 0.3),
      0 0 80px rgba(201, 149, 74, 0.14);
  }

  @keyframes liveRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.012); opacity: 0.85; }
  }

  .live-shell .live-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
    transition: box-shadow 0.35s ease;
  }

  .live-shell .live-art img {
    transition: transform 0.45s ease, filter 0.4s ease;
  }

  .live-shell .live-art-wrap:hover .live-art:not(.live-thumb-default) img {
    transform: scale(1.03);
  }

  .live-card[data-state="playing"] .live-art:not(.live-thumb-default) img {
    animation: liveArtGlow 7s ease-in-out infinite;
  }

  @keyframes liveArtGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
  }

  .live-shell .live-meta {
    margin-top: 0;
    text-align: start;
  }

  .live-shell .live-category-switcher {
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 8px;
  }

  .live-shell .live-station-name {
    font-size: 13px;
    font-weight: 700;
    color: #f0c9a0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
  }
  .live-shell .live-station-name.is-pickable:hover {
    color: #ffe2c4;
  }

  .live-shell .live-track-name {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.2;
    margin-top: 2px;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #ffffff 0%, #ffe2c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .live-shell .live-status-msg {
    margin-top: 10px;
    text-align: start;
    font-size: 14px;
    line-height: 1.45;
    color: #d2c4b8;
    max-width: none;
  }

  .live-shell .live-volume {
    margin: 18px 0 0;
    max-width: none;
    width: 100%;
    gap: 12px;
    color: #c9b8a8;
  }

  .live-shell .live-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(232, 93, 74, 0.7), rgba(201, 149, 74, 0.55));
    outline: none;
    cursor: pointer;
    transition: height 0.2s ease, filter 0.2s ease;
  }

  .live-shell .live-volume input[type="range"]:hover {
    height: 7px;
    filter: brightness(1.08);
  }

  .live-shell .live-volume input[type="range"]:focus-visible {
    outline: 2px solid rgba(232, 93, 74, 0.55);
    outline-offset: 4px;
  }

  .live-shell .live-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow:
      0 0 0 3px rgba(232, 93, 74, 0.32),
      0 3px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .live-shell .live-volume input[type="range"]:hover::-webkit-slider-thumb,
  .live-shell .live-volume input[type="range"]:focus-visible::-webkit-slider-thumb {
    transform: scale(1.12);
    box-shadow:
      0 0 0 4px rgba(232, 93, 74, 0.4),
      0 4px 14px rgba(0, 0, 0, 0.4);
  }

  .live-shell .live-volume input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow:
      0 0 0 3px rgba(232, 93, 74, 0.32),
      0 3px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .live-shell .live-volume input[type="range"]:hover::-moz-range-thumb,
  .live-shell .live-volume input[type="range"]:focus-visible::-moz-range-thumb {
    transform: scale(1.12);
  }

  .live-shell .live-volume input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(232, 93, 74, 0.7), rgba(201, 149, 74, 0.55));
  }

  .live-shell .live-transport {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .live-shell .live-power-btn {
    width: 80px;
    height: 80px;
    font-size: 30px;
    box-shadow:
      0 12px 30px rgba(198, 40, 40, 0.5),
      0 0 0 7px rgba(232, 93, 74, 0.12),
      inset 0 -3px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
  }

  .live-shell .live-power-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
      0 16px 34px rgba(198, 40, 40, 0.55),
      0 0 0 9px rgba(232, 93, 74, 0.16),
      inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  }

  .live-shell .live-card[data-state="playing"] .live-power-btn {
    animation: livePowerBreath 2.6s ease-in-out infinite;
  }

  @keyframes livePowerBreath {
    0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 7px rgba(255, 255, 255, 0.06), inset 0 -3px 6px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6), 0 0 0 11px rgba(232, 93, 74, 0.16), inset 0 -3px 6px rgba(0, 0, 0, 0.25); }
  }

  .live-shell .live-power-label {
    text-align: start;
    margin-top: 10px;
    color: #e8d5c4;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .live-shell .live-manage-link {
    align-self: flex-start;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 190, 140, 0.28);
    color: #f0e0d2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  }

  .live-shell .live-manage-link:hover {
    background: rgba(232, 93, 74, 0.2);
    border-color: rgba(232, 93, 74, 0.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .live-shell .live-art-equalizer span {
    background: linear-gradient(180deg, #ffb080, #e85d4a);
    width: 5px;
  }

  .live-shell .live-cat-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 190, 140, 0.3);
    background: rgba(255, 255, 255, 0.07);
    color: #f5e6d8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease, color 0.22s ease;
  }

  .live-shell .live-cat-nav-btn:hover:not(:disabled) {
    background: rgba(232, 93, 74, 0.26);
    border-color: rgba(232, 93, 74, 0.5);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .live-shell .live-cat-nav-btn:active:not(:disabled) {
    transform: scale(0.96);
  }
}

@media (min-width: 1200px) {
  .live-shell {
    padding: 32px 40px 48px;
    min-height: calc(100vh - 220px);
  }

  .live-stage {
    width: min(1120px, 100%);
  }

  .live-card-main {
    gap: 40px;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .live-shell .live-art-wrap {
    max-width: 340px;
  }
}

@media (min-width: 1600px) {
  .live-shell {
    padding: 36px 56px 52px;
  }

  .live-stage {
    width: min(1160px, 100%);
  }
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(226, 59, 59, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(226, 59, 59, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
  opacity: .5;
  transition: opacity .3s ease;
}

.live-card[data-state="live"] .live-badge,
.live-card[data-state="playing"] .live-badge {
  opacity: 1;
}

.live-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5252;
}

.live-card[data-state="live"] .live-badge-dot,
.live-card[data-state="playing"] .live-badge-dot {
  animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.live-badge--static {
  background: rgba(0, 0, 0, 0.15);
  color: var(--live-green);
  border-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.live-listeners {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #e8e8e8;
}

.live-listeners i { color: var(--live-green); }
.live-listeners-label { font-weight: 500; color: #b7b7b7; font-size: 12px; }

.live-art-wrap {
  position: relative;
  margin: 20px auto 6px;
  width: 210px;
  height: 210px;
  max-width: 210px;
  max-height: 210px;
  overflow: hidden;
  flex: 0 0 auto;
}

.live-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: #000;
}

@media (max-width: 991px) {
  .live-art-wrap {
    display: block;
  }
}

.live-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
  background: #000;
}

/* Default / no cover — ARE Events logo fills the frame */
.live-art.live-thumb-default {
  background: #fff !important;
}

.live-art.live-thumb-default img {
  object-fit: cover !important;
  object-position: center;
  padding: 0;
  background: #fff !important;
  filter: none !important;
}

.live-card[data-state="playing"] .live-art:not(.live-thumb-default) img {
  filter: none;
}

.live-card[data-state="offline"] .live-art:not(.live-thumb-default) img,
.live-card[data-state="ready"] .live-art:not(.live-thumb-default) img {
  filter: grayscale(0.35) brightness(0.85);
}

.live-art-equalizer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 0 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.live-card[data-state="playing"] .live-art-equalizer { opacity: 1; }

.live-art-equalizer span {
  width: 4px;
  height: 8px;
  background: linear-gradient(180deg, #ffb080, #e85d4a);
  border-radius: 2px;
  animation: liveEq 0.9s ease-in-out infinite;
}
.live-art-equalizer span:nth-child(2) { animation-delay: .15s; }
.live-art-equalizer span:nth-child(3) { animation-delay: .3s; }
.live-art-equalizer span:nth-child(4) { animation-delay: .45s; }
.live-art-equalizer span:nth-child(5) { animation-delay: .6s; }

@keyframes liveEq {
  0%, 100% { height: 8px; }
  50% { height: 30px; }
}

.live-meta { margin-top: 14px; }

.live-station-name {
  font-size: 13px;
  color: #b7b7b7;
  font-weight: 700;
  letter-spacing: .3px;
  min-width: 0;
  text-align: center;
  margin: 0;
}

.live-track-name {
  font-size: 21px;
  font-weight: 800;
  margin: 4px 0 0;
  color: #fff;
  min-height: 26px;
}

.live-status-msg {
  margin-top: 8px;
  font-size: 13px;
  color: #a9a9a9;
  min-height: 18px;
}

.live-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 6px;
  max-width: 260px;
  color: #9a9a9a;
}

.live-volume input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: #3a3d44;
  outline: none;
}

.live-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--live-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.live-volume input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--live-green);
  cursor: pointer;
}

.live-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 16px;
}

.live-skip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}

.live-skip-btn:hover { background: rgba(255, 255, 255, 0.2); }
.live-skip-btn:active { transform: scale(0.94); }
.live-skip-btn:disabled { opacity: .35; cursor: not-allowed; }

.live-skip-hint {
  margin-top: 10px;
  font-size: 11.5px;
  color: #8f8f8f;
  max-width: 300px;
  margin-inline: auto;
  line-height: 1.4;
}

.live-power-btn {
  margin: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 50% 35%, #ff5b5b, #c62828);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease, box-shadow .2s ease, background .3s ease;
}

.live-power-btn:hover { transform: translateY(-2px); }
.live-power-btn:active { transform: scale(0.96); }

.live-card[data-state="playing"] .live-power-btn {
  background: radial-gradient(circle at 50% 35%, #333333, var(--live-green-dark));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}

.live-power-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.live-power-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #cfcfcf;
}

/* Offline state dims the card (non-default covers only; see .live-art rules) */

.live-manage-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: #cccccc;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background .2s ease;
}
.live-manage-link:hover { background: rgba(0, 0, 0, 0.28); color: #dddddd; }

/* ========== Admin panel ========== */
.live-admin-panel {
  margin-top: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.live-admin-title {
  font-weight: 800;
  font-size: 15px;
  color: #2b2f36;
  margin-bottom: 14px;
}

.live-admin-title i { color: var(--live-green); margin-inline-end: 6px; }

.live-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.live-admin-broadcast {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-admin-broadcast-label { font-weight: 700; color: #444; font-size: 14px; }
.live-admin-broadcast-state { font-weight: 700; font-size: 13px; color: #999; }
.live-admin-broadcast-state.on { color: var(--live-green); }

.live-admin-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(165deg, var(--live-green) 0%, var(--live-green-dark) 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.live-admin-manage-btn:hover { color: #fff; opacity: .92; }

/* Toggle switch */
.live-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.live-switch input { opacity: 0; width: 0; height: 0; }
.live-switch-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.live-switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}
.live-switch input:checked + .live-switch-slider { background: var(--live-green); }
.live-switch input:checked + .live-switch-slider::before { transform: translateX(22px); }
html[dir="rtl"] .live-switch input:checked + .live-switch-slider::before { transform: translateX(-22px); }

/* ========== Manage page ========== */
.live-manage-shell {
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.live-manage-hero {
  background: linear-gradient(165deg, var(--live-green) 0%, var(--live-green-dark) 100%);
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
  margin-bottom: 18px;
}

.live-manage-hero .live-badge--static {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.live-manage-hero-desc { margin: 10px 0 0; opacity: .92; font-size: 14px; }

.live-manage-body {
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .live-manage-hero {
    padding: 24px 32px;
  }

  .live-manage-body {
    padding: 24px 32px 36px;
  }
}

@media (min-width: 1400px) {
  .live-manage-body {
    padding: 28px 40px 44px;
  }
}

.live-manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.live-manage-toolbar-title { font-size: 18px; font-weight: 800; color: #2b2f36; margin: 0; }

.live-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(165deg, var(--live-green) 0%, var(--live-green-dark) 100%);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.live-add-btn:hover { opacity: .92; }

.live-manage-order-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a7f86;
  font-weight: 600;
}
.live-order-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 36px;
}
.live-order-index {
  font-size: 11px;
  font-weight: 800;
  color: #8a9098;
  line-height: 1;
}
.live-order-btn {
  width: 28px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: #f1f1f1;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 11px;
}
.live-order-btn:hover:not(:disabled) { background: #e4e7ec; color: #111; }
.live-order-btn:disabled { opacity: .35; cursor: default; }
.live-manage-track-row { cursor: grab; }
.live-manage-track-row.is-dragging {
  opacity: .55;
  cursor: grabbing;
}
.live-manage-track-row.is-drag-over {
  box-shadow: 0 0 0 2px rgba(46, 160, 90, 0.45);
}

.live-manage-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.live-manage-thumb-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: #0e0f12;
}

.live-manage-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.live-manage-thumb-wrap.live-thumb-default {
  background: #fff !important;
}
.live-manage-thumb-wrap.live-thumb-default img {
  object-fit: cover !important;
  object-position: center;
  padding: 0;
  background: #fff !important;
  filter: none;
}

.live-manage-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: opacity .2s ease;
}
.live-manage-thumb-wrap:hover .live-manage-thumb-play,
.live-manage-thumb-wrap.playing .live-manage-thumb-play { opacity: 1; }

.live-manage-track-row .title {
  flex: 1;
  font-weight: 700;
  color: #2b2f36;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-manage-track-row .dur { font-size: 12px; color: #999; margin-inline-end: 6px; }

.live-manage-track-row .actions { display: flex; gap: 6px; }

.live-manage-track-row .actions button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: #f1f1f1;
  color: #555;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.live-manage-track-row .actions button:hover { background: #e6e6e6; }
.live-manage-track-row .actions .btn-del-track:hover { background: #fdecec; color: var(--live-red); }

/* Manage categories grid */
.live-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

@media (min-width: 992px) {
  .live-manage-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .live-manage-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1400px) {
  .live-manage-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
  }
}
.live-manage-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.live-manage-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.live-manage-card-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: #f7f7f7;
}
.live-manage-card-link.live-thumb-default {
  background: #fff;
}
.live-manage-card-link.live-thumb-default img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #fff;
}
.live-manage-cat-name {
  display: block;
  padding: 10px 10px 2px;
  font-weight: 800;
  font-size: 14px;
  color: #222;
  text-align: center;
}
.live-manage-cat-count {
  display: block;
  padding: 0 10px 12px;
  font-size: 12px;
  color: #999;
  text-align: center;
}
.live-manage-card-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0 10px 12px;
}
.live-manage-card-actions button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  color: #fff;
  cursor: pointer;
}
.live-manage-card-actions .btn-edit { background: #000; }
.live-manage-card-actions .btn-del { background: #dc3545; }

.live-category-hero-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-manage-hero-text {
  flex: 1;
  min-width: 0;
}
.live-category-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.live-category-back:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
.live-category-back .fa-arrow-left,
html[dir="rtl"] .live-category-back .fa-arrow-left {
  display: inline-block;
  transform: none !important;
}
.live-category-title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

/* Player category switcher */
.live-category-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 8px;
  position: relative;
}
.live-station-pick {
  position: relative;
  flex: 1;
  min-width: 0;
}
.live-station-name {
  font-size: 13px;
  color: #b7b7b7;
  font-weight: 700;
  letter-spacing: .3px;
  min-width: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
}
.live-station-name.is-pickable {
  cursor: pointer;
}
.live-station-name.is-pickable:hover {
  color: #fff;
}
.live-station-name .fa {
  font-size: 12px;
  opacity: .7;
  flex-shrink: 0;
}
.live-station-name:not(.is-pickable) .fa {
  display: none;
}
.live-station-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-cat-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  right: auto;
  width: max-content;
  min-width: 8.5rem;
  max-width: min(14rem, 78vw);
  transform: translateX(-50%);
  z-index: 40;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 10px;
  background: rgba(28, 18, 14, 0.96);
  border: 1px solid rgba(255, 190, 140, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.live-cat-option {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: #f5e6d8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.live-cat-option:hover,
.live-cat-option:focus {
  background: rgba(232, 93, 74, 0.22);
  color: #fff;
  outline: none;
}
.live-cat-option.is-active {
  background: rgba(232, 93, 74, 0.32);
  color: #fff;
}
.live-cat-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, opacity .2s ease;
}
.live-cat-nav-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.live-cat-nav-btn:disabled { opacity: .35; cursor: default; }

.live-empty {
  text-align: center;
  padding: 50px 20px;
  color: #9a9a9a;
}
.live-empty i { font-size: 42px; opacity: .5; }
.live-empty p { margin-top: 12px; font-size: 15px; }

@media (max-width: 991px) {
  .live-track-name {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.25;
    background: linear-gradient(90deg, #ffffff 0%, #ffe2c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .live-status-msg {
    color: #d2c4b8;
  }

  .live-station-name {
    color: #f0c9a0;
  }

  .live-volume {
    max-width: 280px;
    width: 100%;
    margin: 20px auto 8px;
  }

  .live-volume input[type="range"] {
    background: linear-gradient(90deg, rgba(232, 93, 74, 0.55), rgba(201, 149, 74, 0.55));
    height: 6px;
  }

  .live-volume input[type="range"]::-webkit-slider-thumb {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.35), 0 3px 10px rgba(0, 0, 0, 0.35);
  }

  .live-power-btn {
    width: 82px;
    height: 82px;
    font-size: 32px;
    box-shadow:
      0 10px 26px rgba(198, 40, 40, 0.55),
      0 0 0 7px rgba(232, 93, 74, 0.14),
      inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  }

  .live-card[data-state="playing"] .live-power-btn {
    animation: livePowerBreath 2.4s ease-in-out infinite;
  }
}

@media (max-width: 520px) {
  .live-shell {
    min-height: calc(100vh - 230px);
    padding: 4px 0 16px;
  }

  .live-art-wrap {
    width: min(190px, 58vw);
    height: min(190px, 58vw);
    max-width: min(190px, 58vw);
    max-height: min(190px, 58vw);
    margin: 14px auto 8px;
  }

  .live-art-ring {
    inset: -8px;
    border-radius: 20px;
  }

  .live-track-name {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .live-power-btn {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }

  .live-card {
    padding: 16px 14px 22px;
    border-radius: 20px;
  }

  .live-volume {
    max-width: 100%;
    margin-top: 16px;
  }

  .live-topbar {
    gap: 8px;
  }

  .live-admin-row { flex-direction: column; align-items: stretch; }
  .live-admin-manage-btn { justify-content: center; }
}

/* ========== Global mini player (all pages except live.php full UI & reels) ========== */
:root {
  --live-global-bar-h: 68px;
}

.live-global-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--live-global-bar-h);
  background: #1a1c20;
  border-top: 2px solid var(--live-green);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 10050;
  display: none;
  align-items: center;
  padding: 8px 14px;
  gap: 10px;
  overflow: visible;
}

.live-global-bar.visible {
  display: flex;
}

body.live-global-bar-on {
  padding-bottom: var(--live-global-bar-h);
}

.live-global-bar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.live-global-bar-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #ff6b6b;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.live-global-bar img {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.live-global-bar-info {
  min-width: 0;
  flex: 1;
}

.live-global-bar-info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.live-global-bar-info #liveGlobalListeners {
  font-size: 11px;
  color: #aaa;
}

.live-global-bar-info #liveGlobalListeners i {
  color: var(--live-green);
}

.live-global-bar-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(226, 59, 59, 0.2);
  color: #ff6b6b;
  font-size: 18px;
  cursor: pointer;
}

.live-global-bar-controls button:hover {
  background: rgba(226, 59, 59, 0.35);
}

.live-global-bar-cat {
  position: relative;
  flex: 0 1 auto;
  max-width: min(42vw, 180px);
  min-width: 0;
  overflow: visible;
  z-index: 10061;
}

.live-global-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: default;
}

.live-global-cat-btn.is-pickable {
  cursor: pointer;
}

.live-global-cat-btn.is-pickable:hover {
  background: rgba(255, 255, 255, 0.16);
}

.live-global-cat-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.live-global-cat-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-global-cat-btn .fa {
  font-size: 11px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Global mini-player category menu — open upward from the bar button. */
.live-global-bar .live-global-cat-menu.live-cat-menu,
.live-global-bar .live-global-cat-menu {
  position: absolute;
  top: auto !important;
  bottom: calc(100% + 10px);
  left: 0;
  right: auto;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: max-content;
  min-width: 8.5rem;
  max-width: min(14rem, 72vw);
  max-height: min(42vh, 220px);
  margin: 0;
  transform: none;
  z-index: 10062;
  display: block;
}

.live-global-bar .live-global-cat-menu[hidden] {
  display: none !important;
}

/* JS fixed anchor (avoids parent overflow / transform traps). */
.live-global-bar .live-global-cat-menu.is-anchored {
  position: fixed !important;
  top: auto !important;
  bottom: auto;
  left: auto;
  right: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
}

html[dir="rtl"] .live-global-bar .live-global-cat-menu.live-cat-menu:not(.is-anchored),
html[dir="rtl"] .live-global-bar .live-global-cat-menu:not(.is-anchored) {
  left: auto;
  right: 0;
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.live-global-bar-cat.is-menu-open .live-global-cat-btn {
  background: rgba(232, 93, 74, 0.28);
  border-color: rgba(232, 93, 74, 0.45);
}

@media (max-width: 480px) {
  .live-global-bar {
    gap: 8px;
    padding: 8px 10px;
  }

  .live-global-bar-cat {
    max-width: min(38vw, 140px);
  }

  .live-global-cat-btn {
    padding: 7px 10px;
    font-size: 11px;
  }
}

html.page-live-inner .live-global-bar {
  display: none !important;
}

html.page-live-inner body.live-global-bar-on {
  padding-bottom: 0;
}

html.page-reels .live-global-bar,
html.page-reels-inner .live-global-bar {
  display: none !important;
}

html.page-reels body.live-global-bar-on,
html.page-reels-inner body.live-global-bar-on {
  padding-bottom: 0;
}

.live-ad-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  background: #e74c3c;
  color: #fff;
}
.live-card.is-ad {
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2;
}

.live-card.is-ad .live-art-ring {
  box-shadow: 0 0 0 2px rgba(231, 76, 60, .45);
}

/* Ad covers are often huge banners. Never let them size the card. */
.live-shell .live-art-wrap {
  overflow: hidden !important;
  flex-shrink: 0;
}
.live-shell .live-art,
.live-shell .live-art img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
.live-shell .live-art img {
  object-fit: cover !important;
}
.live-card.is-ad .live-art-wrap {
  width: min(220px, 62vw) !important;
  height: min(220px, 62vw) !important;
  max-width: 220px !important;
  max-height: 220px !important;
}
@media (min-width: 992px) {
  .live-card.is-ad .live-art-wrap {
    width: min(320px, 42vh, 100%) !important;
    height: min(320px, 42vh, 100%) !important;
    max-width: 320px !important;
    max-height: min(320px, 42vh) !important;
  }
}

.media-ad-panel {
  margin-top: 28px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.media-ad-panel-head h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-ad-panel-head p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
}
.media-ad-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.media-ad-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.media-ad-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.media-ad-field input[type=text],
.media-ad-field input[type=number],
.media-ad-field input[type=file] {
  width: 100%;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.media-ad-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}
.media-ad-preview {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.media-ad-error {
  margin-top: 10px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}
.media-ad-save {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 700px) {
  .media-ad-panel-grid { grid-template-columns: 1fr; }
}

