/*
Theme Name:   Ruhunusara Child
Theme URI:    https://ruhunusara.lk
Description:  Ruhunusara.lk Broadcast Radio Platform - Child theme of Kadence (Spotify-Inspired Light Glassmorphism UI & Premium Equalizer)
Author:       Ruhunusara.lk
Author URI:   https://ruhunusara.lk
Template:     kadence
Version:      2.2.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ruhunusara-child
Tags:         buddhist, streaming, radio, sinhala, broadcast, spotify-ui, glassmorphism
*/

/* ════════════════════════════════════════
   1. GLOBAL DESIGN TOKENS (SPOTIFY LIGHT)
════════════════════════════════════════ */
:root {
  --rhn-canvas: #FFFFFF;
  --rhn-canvas-alt: #F8FAFC;
  --rhn-surface: #0F1A38;
  --rhn-navy: #0F172A;
  --rhn-navy-deep: #0A1128;
  --rhn-slate: #334155;
  --rhn-muted: #64748B;
  --rhn-border: #E2E8F0;

  --rhn-gold: #F59E0B;
  --rhn-gold-dark: #D97706;
  --rhn-gold-light: #FDE68A;
  --rhn-gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --rhn-gold-glow: 0 10px 28px rgba(245, 158, 11, 0.45);

  --rhn-emerald: #10B981;
  --rhn-emerald-dark: #059669;
  --rhn-emerald-glow: 0 0 16px rgba(16, 185, 129, 0.55);

  --rhn-font-main: 'Plus Jakarta Sans', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rhn-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════════
   2. GLOBAL RESETS & BASE
════════════════════════════════════════ */
body.rhn-homepage,
body.rhn-dark-studio {
  background-color: var(--rhn-canvas) !important;
  color: var(--rhn-navy);
  font-family: var(--rhn-font-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.rhn-homepage *,
body.rhn-dark-studio * {
  box-sizing: border-box;
}

.rhn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hide default Kadence frontpage headings */
.home .entry-header,
.home .page-title,
.home #masthead {
  display: none !important;
}

/* ════════════════════════════════════════
   3. FIXED HEADER WRAPPER (NAVBAR + TICKER)
════════════════════════════════════════ */
.rhn-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--rhn-transition);
}

.rhn-navbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rhn-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--rhn-transition);
}

/* ════════════════════════════════════════
   3.1 ANNOUNCEMENT / EVENT TICKER BAR (OPTION B)
════════════════════════════════════════ */
.rhn-ticker-bar {
  background: rgba(255, 253, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  padding: 8px 0;
  position: relative;
  z-index: 999;
}

.rhn-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rhn-ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.rhn-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--rhn-gold-gradient);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
  flex-shrink: 0;
}

.rhn-ticker-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  animation: rhnPulse 1.8s infinite;
}

.rhn-ticker-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rhn-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.rhn-ticker-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rhn-gold-dark);
  text-decoration: none;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.08);
  transition: var(--rhn-transition);
}

.rhn-ticker-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.rhn-ticker-link:hover {
  color: #FFFFFF;
  background: var(--rhn-gold-gradient);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.rhn-ticker-link:hover svg {
  transform: translateX(3px);
}

.rhn-ticker-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rhn-ticker-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--rhn-muted);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: var(--rhn-transition);
}

.rhn-ticker-dismiss svg {
  width: 14px;
  height: 14px;
}

.rhn-ticker-dismiss:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--rhn-navy);
  transform: scale(1.08);
}

.rhn-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rhn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rhn-navy);
}

.rhn-brand-logo-img {
  max-height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.rhn-brand-logo-img:hover {
  transform: scale(1.02);
}

.rhn-brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rhn-gold-dark);
  flex-shrink: 0;
}

.rhn-brand-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.rhn-brand-text {
  display: flex;
  flex-direction: column;
}

.rhn-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rhn-navy);
}

.rhn-brand-title span {
  color: var(--rhn-gold-dark);
}

.rhn-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rhn-muted);
}

.rhn-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Social Icon Buttons */
.rhn-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rhn-slate);
  text-decoration: none;
  transition: var(--rhn-transition);
}

.rhn-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.rhn-social-link:hover {
  color: var(--rhn-gold-dark);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.20);
}

/* Live Header Button */
.rhn-header-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(245, 158, 11, 0.10);
  border: 1.5px solid var(--rhn-gold);
  border-radius: 999px;
  color: var(--rhn-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
  transition: var(--rhn-transition);
}

.rhn-header-live-btn:hover {
  background: var(--rhn-gold-gradient);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.rhn-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rhn-emerald);
  box-shadow: var(--rhn-emerald-glow);
  position: relative;
}

.rhn-beacon-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--rhn-emerald);
  animation: rhnPulse 1.8s infinite;
  opacity: 0.8;
}

@keyframes rhnPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ════════════════════════════════════════
   4. HERO SECTION (SERENE LIGHT)
════════════════════════════════════════ */
.rhn-hero-section {
  position: relative;
  min-height: 85vh;
  padding-top: 145px;
  padding-bottom: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #FFFBEB 0%, #FEF3C7 25%, #F8FAFC 60%, #EEF2F6 100%);
  overflow: hidden;
  transition: padding-top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rhn-hero-section.has-ticker {
  padding-top: 145px;
}

.rhn-hero-section.no-ticker {
  padding-top: 108px;
}

/* Subtle atmospheric perspective grid */
.rhn-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 25%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* ════════════════════════════════════════
   FLOATING AMBIENT LIGHT ORBS (TIMEY INSPIRED · RUHUNUSARA PALETTE)
════════════════════════════════════════ */
.rhn-orb-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.rhn-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* Warm Sunlight Gold Orb (Top-Right) */
.rhn-orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(253, 230, 138, 0.10) 50%, transparent 75%);
  filter: blur(80px);
  top: -80px;
  right: -60px;
  animation: rhnOrbFloat1 18s ease-in-out infinite;
}

/* Tranquil Mint / Emerald Jade Orb (Bottom-Left) */
.rhn-orb-emerald {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.07) 50%, transparent 75%);
  filter: blur(85px);
  bottom: -80px;
  left: -60px;
  animation: rhnOrbFloat2 22s ease-in-out infinite reverse;
}

/* Champagne Radiant Core (Center Breathing) */
.rhn-orb-champagne {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.40) 0%, rgba(245, 158, 11, 0.10) 55%, transparent 75%);
  filter: blur(75px);
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rhnOrbPulse 12s ease-in-out infinite;
}

@keyframes rhnOrbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(45px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 35px) scale(0.92);
  }
}

@keyframes rhnOrbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-40px, -45px) scale(1.08);
  }

  66% {
    transform: translate(35px, 25px) scale(0.94);
  }
}

@keyframes rhnOrbPulse {

  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

.rhn-stupa-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  opacity: 0.035;
  color: var(--rhn-gold-dark);
  pointer-events: none;
  z-index: 2;
}

.rhn-stupa-bg svg {
  width: 100%;
  height: 100%;
}

.rhn-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Live Badge Pill */
.rhn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rhn-navy);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.rhn-badge-wave {
  width: 14px;
  height: 14px;
  color: var(--rhn-emerald-dark);
}

.rhn-hero-headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
  color: var(--rhn-navy);
}

.rhn-hero-headline span {
  color: var(--rhn-gold-dark);
}

.rhn-hero-subtext {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--rhn-slate);
  max-width: 560px;
  margin: 0 auto 38px auto;
}

/* ════════════════════════════════════════
   5. SPOTIFY LIGHT GLASSMORPHIC CONSOLE
════════════════════════════════════════ */
.rhn-console-wrapper {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

/* Ambient Aura Glow Behind Frosted Glass */
.rhn-console-glow {
  position: absolute;
  top: 15%;
  left: 8%;
  right: 8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(16, 185, 129, 0.10) 45%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.is-playing .rhn-console-glow,
.rhn-console-wrapper.is-playing .rhn-console-glow {
  opacity: 1;
  animation: rhnAuraPulse 3s infinite alternate ease-in-out;
}

@keyframes rhnAuraPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Radiant Floor Underglow beneath Console (Timey Style) */
.rhn-console-floor-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.38) 0%, rgba(16, 185, 129, 0.15) 50%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: rhnFloorGlowPulse 4s ease-in-out infinite;
}

.is-playing .rhn-console-floor-glow,
.rhn-console-wrapper.is-playing .rhn-console-floor-glow {
  opacity: 1;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.55) 0%, rgba(16, 185, 129, 0.25) 50%, transparent 75%);
  filter: blur(40px);
}

@keyframes rhnFloorGlowPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.55;
  }

  50% {
    transform: translateX(-50%) scale(1.04);
    opacity: 0.85;
  }
}

.rhn-console-card {
  position: relative;
  z-index: 2;
  background: #0B1124;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 38px 42px;
  box-shadow:
    0 25px 65px -10px rgba(0, 0, 0, 0.65),
    0 10px 30px -10px rgba(245, 158, 11, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: var(--rhn-transition);
  overflow: hidden;
}

/* Timey-style Hairline Gradient Accent along Top Rim */
.rhn-console-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 5%, var(--rhn-gold) 35%, var(--rhn-emerald) 70%, transparent 95%);
  opacity: 0.90;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.rhn-console-card:hover::after {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
}

/* Shimmer highlight sweep */
.rhn-console-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.10) 45%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.10) 55%,
      transparent 80%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rhn-console-card:hover::before {
  opacity: 1;
  animation: rhnShimmer 1.6s ease forwards;
}

@keyframes rhnShimmer {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.rhn-console-card:hover {
  background: #0E1630;
  border-color: rgba(245, 158, 11, 0.40);
  box-shadow:
    0 32px 75px -10px rgba(0, 0, 0, 0.75),
    0 14px 40px -10px rgba(245, 158, 11, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.is-playing .rhn-console-card,
.rhn-console-wrapper.is-playing .rhn-console-card {
  background: #0B1124;
  border-color: rgba(245, 158, 11, 0.50);
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.80),
    0 0 50px rgba(245, 158, 11, 0.30),
    0 0 95px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rhn-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rhn-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rhn-emerald);
}

.rhn-quality-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Master Play Control Area */
.rhn-console-body {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  text-align: left;
}

.rhn-master-playbtn {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rhn-gold-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow:
    0 10px 24px rgba(217, 119, 6, 0.45),
    0 0 20px rgba(245, 158, 11, 0.25),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.45);
  transition: var(--rhn-transition);
  position: relative;
}

.rhn-master-playbtn:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 32px rgba(217, 119, 6, 0.55),
    0 0 28px rgba(245, 158, 11, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55);
}

.rhn-master-playbtn:active {
  transform: scale(0.97);
}

.rhn-master-playbtn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  transition: transform 0.2s ease;
}

.is-playing .rhn-master-playbtn::after,
.rhn-console-wrapper.is-playing .rhn-master-playbtn::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--rhn-gold);
  animation: rhnButtonRipple 2s infinite ease-out;
  pointer-events: none;
}

@keyframes rhnButtonRipple {
  0% {
    transform: scale(0.98);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* Track Metadata Info */
.rhn-metadata-wrap {
  flex-grow: 1;
  min-width: 0;
}

.rhn-np-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rhn-gold);
  margin-bottom: 4px;
}

.rhn-track-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhn-artist-name {
  font-size: 14px;
  font-weight: 600;
  color: #94A3B8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════
   6. PREMIUM DYNAMIC EQUALIZER (20 BARS IN FROSTED BAY)
════════════════════════════════════════ */
.rhn-eq-bay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: var(--rhn-transition);
}

.is-playing .rhn-eq-bay,
.rhn-console-wrapper.is-playing .rhn-eq-bay {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(245, 158, 11, 0.40);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.10),
    0 0 25px rgba(245, 158, 11, 0.22);
}

.rhn-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  flex-shrink: 0;
}

.rhn-eq-bar {
  width: 4px;
  background: linear-gradient(to top, #D97706 0%, #F59E0B 65%, #FDE68A 100%);
  border-radius: 4px;
  height: 6px;
  opacity: 0.45;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25);
  transition: height 0.15s ease, opacity 0.3s ease;
  transform-origin: bottom center;
}

/* Equalizer active glow */
.is-playing .rhn-eq-bar,
.rhn-console-wrapper.is-playing .rhn-eq-bar,
.rhn-equalizer.is-playing .rhn-eq-bar {
  opacity: 1;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

/* Console Bottom Controls */
.rhn-console-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Premium Volume Control ── */
.rhn-volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--rhn-transition);
}

.rhn-volume-wrap:hover {
  background: rgba(0, 0, 0, 0.50);
  border-color: rgba(245, 158, 11, 0.40);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 20px rgba(245, 158, 11, 0.22);
}

.rhn-mute-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--rhn-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.2s ease;
}

.rhn-mute-btn:hover {
  color: var(--rhn-gold-dark);
  transform: scale(1.1);
}

.rhn-mute-btn:active {
  transform: scale(0.92);
}

.rhn-mute-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Premium Gradient Range Slider ── */
.rhn-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.rhn-volume-wrap:hover .rhn-vol-slider {
  height: 5px;
}

/* Webkit Thumb */
.rhn-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBBF24, #D97706);
  border: 2px solid rgba(255, 255, 255, 0.90);
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(217, 119, 6, 0.55),
    0 0 10px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.rhn-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow:
    0 4px 14px rgba(217, 119, 6, 0.70),
    0 0 16px rgba(245, 158, 11, 0.50);
}

.rhn-vol-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow:
    0 2px 8px rgba(217, 119, 6, 0.75),
    0 0 20px rgba(245, 158, 11, 0.60);
}

/* Firefox Thumb */
.rhn-vol-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.90);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBBF24, #D97706);
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(217, 119, 6, 0.55),
    0 0 10px rgba(245, 158, 11, 0.35);
}

.rhn-vol-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
  box-shadow:
    0 4px 14px rgba(217, 119, 6, 0.70),
    0 0 16px rgba(245, 158, 11, 0.50);
}

/* Firefox Track */
.rhn-vol-slider::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: none;
}

/* Filled portion (progress) via JS-set CSS variable */
.rhn-vol-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      var(--rhn-gold) 0%,
      var(--rhn-gold) var(--vol-pct, 80%),
      rgba(255, 255, 255, 0.12) var(--vol-pct, 80%));
  transition: height 0.2s ease;
}

.rhn-volume-wrap:hover .rhn-vol-slider::-webkit-slider-runnable-track {
  height: 5px;
}

/* ════════════════════════════════════════
   7. CLEAN LIGHT THEME FOOTER
════════════════════════════════════════ */
.rhn-footer-section {
  background: var(--rhn-canvas-alt);
  border-top: 1px solid var(--rhn-border);
  padding: 60px 0;
}

.rhn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.rhn-footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rhn-slate);
  max-width: 480px;
  margin-top: 16px;
}

.rhn-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--rhn-slate);
}

.rhn-footer-contact a {
  color: var(--rhn-slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}

.rhn-footer-contact a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--rhn-gold-dark);
}

.rhn-footer-contact a:hover {
  color: var(--rhn-gold-dark);
}

.rhn-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--rhn-border);
  font-size: 12px;
  color: var(--rhn-muted);
}

/* ════════════════════════════════════════
   8. RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */
@media (max-width: 768px) {
  .rhn-navbar {
    height: 68px;
  }

  .rhn-ticker-bar {
    padding: 6px 0;
  }

  .rhn-ticker-inner {
    gap: 8px;
  }

  .rhn-ticker-text {
    font-size: 11px;
    max-width: 200px;
  }

  .rhn-ticker-link {
    font-size: 11px;
    padding: 2px 6px;
  }

  .rhn-ticker-dismiss {
    width: 22px;
    height: 22px;
  }

  .rhn-ticker-dismiss svg {
    width: 12px;
    height: 12px;
  }

  .rhn-hero-section {
    padding-top: 125px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .rhn-hero-section.has-ticker {
    padding-top: 125px;
  }

  .rhn-hero-section.no-ticker {
    padding-top: 92px;
  }

  .rhn-hero-headline {
    font-size: 28px;
  }

  .rhn-hero-subtext {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .rhn-console-wrapper {
    margin-top: 24px;
  }

  .rhn-console-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .rhn-console-top {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .rhn-console-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 20px;
  }

  .rhn-master-playbtn {
    width: 68px;
    height: 68px;
  }

  .rhn-master-playbtn svg {
    width: 26px;
    height: 26px;
  }

  .rhn-track-title {
    font-size: 18px;
  }

  .rhn-artist-name {
    font-size: 13px;
  }

  .rhn-eq-bay {
    width: 100%;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .rhn-equalizer {
    height: 40px;
    justify-content: center;
    gap: 3px;
  }

  .rhn-eq-bar {
    width: 3px;
  }

  /* Show 14 dynamic bars on mobile to fit cleanly */
  .rhn-eq-bar:nth-child(n+15) {
    display: none;
  }

  .rhn-console-bottom {
    padding-top: 16px;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .rhn-volume-wrap {
    width: 100%;
    max-width: 220px;
  }

  .rhn-footer-section {
    padding: 50px 0 60px 0;
  }

  .rhn-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rhn-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}