/* =============================================
   REBEL MEDIA NETWORK RADIO - STYLESHEET
   Brand: #FF6A00 (Orange), #000 (Black), #FFF (White), #BFBFBF (Grey)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --orange: #FF6A00;
    --orange-dark: #E05E00;
    --orange-light: #FF8A33;
    --black: #000000;
    --black-soft: #0A0A0A;
    --black-card: #111111;
    --black-surface: #1A1A1A;
    --white: #FFFFFF;
    --grey: #BFBFBF;
    --grey-dark: #666666;
    --grey-light: #E5E5E5;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-orange: 0 4px 30px rgba(255,106,0,0.25);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1320px;
    --header-height: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse at 20% 15%, rgba(255,106,0,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 5%, rgba(255,106,0,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 60%, rgba(255,106,0,0.03) 0%, transparent 50%),
        var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover, a:visited, a:active, a:focus { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--grey-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 16px 0; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    opacity: 0.7;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(255,106,0,0.08);
    color: var(--orange);
    border: 1px solid rgba(255,106,0,0.2);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
}
.badge-onair {
    background: rgba(239,68,68,0.08);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
    gap: 6px;
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    animation: onairPulse 2s ease-in-out infinite;
}
.onair-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EF4444;
    animation: onairBlink 1s ease-in-out infinite;
}
@keyframes onairPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50% { box-shadow: 0 0 12px 2px rgba(239,68,68,0.3); }
}
@keyframes onairBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.78rem;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    border: 1px solid var(--orange);
    box-shadow: 0 2px 12px rgba(255,106,0,0.15);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,106,0,0.25);
}
.btn-outline {
    border: 1px solid rgba(255,106,0,0.3);
    color: var(--orange);
    background: rgba(255,106,0,0.04);
}
.btn-outline:hover {
    background: rgba(255,106,0,0.10);
    border-color: var(--orange);
}
.btn-ghost {
    color: var(--grey);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-size: 0.72rem;
    padding: 6px 14px;
}
.btn-ghost:hover {
    border-color: rgba(255,106,0,0.3);
    background: rgba(255,106,0,0.06);
    color: var(--orange);
}
.btn-secondary {
    color: var(--orange);
    border: 1px solid rgba(255,106,0,0.3);
    background: rgba(255,106,0,0.06);
}
.btn-secondary:hover {
    border-color: var(--orange);
    background: rgba(255,106,0,0.15);
    color: var(--orange);
}

/* === HEADER / NAVBAR === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: var(--header-height);
    padding-top: env(safe-area-inset-top, 0px);
    transition: all var(--transition);
}
.header.scrolled {
    background: rgba(0,0,0,0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none !important;
}
.logo:hover, .logo:visited, .logo:active, .logo:focus {
    text-decoration: none !important;
}
.logo img {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: cover;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
    line-height: 1.1;
    color: var(--white);
}
.logo-text span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--grey);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}
.nav a:hover {
    color: var(--orange);
}
.nav a.active {
    color: var(--orange);
}

/* Burger Menu Button - hidden on desktop */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile menu - removed, nav always visible on desktop */

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 32px);
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.hero-left { animation: fadeInUp 0.8s ease-out; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,106,0,0.15);
    border: 1px solid rgba(255,106,0,0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 24px;
}
.hero-tag .pulse {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: heroPulse 300s ease-in-out 5s infinite;
}
.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: heroSlideIn 0.8s ease-out forwards;
}
.hero-title .line:nth-child(2) {
    animation-delay: 0.25s;
}
.hero-title .accent {
    color: var(--orange);
    animation: heroGlow 300s ease-in-out 5s infinite;
}
@keyframes heroSlideIn {
    to { opacity: 1; transform: translateY(0); }
}
/* Subtle pulse every 5 minutes on whole title */
@keyframes heroPulse {
    0% { filter: brightness(1); transform: scale(1); }
    0.3% { filter: brightness(1.15); transform: scale(1.008); }
    0.6% { filter: brightness(1); transform: scale(1); }
    0.9% { filter: brightness(1.1); transform: scale(1.005); }
    1.2% { filter: brightness(1); transform: scale(1); }
    100% { filter: brightness(1); transform: scale(1); }
}
/* Orange glow on MAINSTREAM text synced with pulse */
@keyframes heroGlow {
    0% { text-shadow: 0 0 0 transparent; }
    0.3% { text-shadow: 0 0 25px rgba(255,106,0,0.4), 0 0 50px rgba(255,106,0,0.15); }
    0.6% { text-shadow: 0 0 8px rgba(255,106,0,0.1); }
    0.9% { text-shadow: 0 0 20px rgba(255,106,0,0.3), 0 0 40px rgba(255,106,0,0.1); }
    1.2% { text-shadow: 0 0 0 transparent; }
    100% { text-shadow: 0 0 0 transparent; }
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--grey);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.7;
}

/* ═══ HERO STATES ═══ */
/* ═══ HERO STATES — Crossfade ═══ */
.hero-left { position: relative; display: grid; }
.hero-state {
    grid-area: 1 / 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-state-default { opacity: 1; transform: translateY(0); }
.hero-state-playing { opacity: 0; transform: translateY(12px); pointer-events: none; }
.hero-state-playing .hero-title .line { opacity: 1; transform: none; animation: none; }

body.is-playing .hero-state-default { opacity: 0; transform: translateY(-12px); pointer-events: none; }
body.is-playing .hero-state-playing { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Hero play button — default state */
.btn-hero-play {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-hero-play:hover {
    background: rgba(255,106,0,0.12);
    border-color: rgba(255,106,0,0.3);
    color: var(--orange);
    transform: translateY(-1px);
}
.btn-hero-play:active {
    transform: scale(0.97);
}
.btn-hero-play svg { opacity: 0.8; }

/* Hero pause button — playing state */
.btn-hero-pause {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-hero-pause:hover {
    background: rgba(255,106,0,0.12);
    border-color: rgba(255,106,0,0.3);
    color: var(--orange);
    transform: translateY(-1px);
}
.btn-hero-pause:active {
    transform: scale(0.97);
}
.btn-hero-pause svg { opacity: 0.8; }
.hero-state-playing {
    position: relative;
    min-height: 280px;
}
.hero-mod-photo {
    position: absolute;
    left: 0;
    top: -20px;
    bottom: -40px;
    width: 320px;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to right, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
}
.hero-mod-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.hero-mod-text {
    position: relative;
    z-index: 2;
    margin-left: 200px;
    padding-top: 40px;
}
.hero-title-playing {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem) !important;
    line-height: 0.95;
    letter-spacing: 3px;
    margin-bottom: 8px !important;
    animation: none !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-mod-name {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 600;
}



/* === HERO RADIO PANEL === */
.hero-radio-panel {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    display: flex;
    flex-direction: column;
}

/* -- Zuletzt Gespielt Section -- */
.hrp-recent {
    padding: 20px 28px;
}
.hrp-recent-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-bottom: 10px;
}
.hrp-recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hrp-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), border-color 0.2s;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
}
.hrp-track:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,106,0,0.25);
}
.hrp-track-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--black-surface);
}
.hrp-track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hrp-track-info { flex: 1; min-width: 0; }
.hrp-track-song {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hrp-track-artist {
    font-size: 0.75rem;
    color: var(--grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}
.player-play-btn {
    width: 64px; height: 64px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-orange);
}
.player-play-btn:hover {
    background: var(--orange-dark);
    transform: scale(1.08);
}
.player-play-btn svg { width: 28px; height: 28px; fill: var(--white); }

.player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
}
.player-volume svg { width: 20px; height: 20px; color: var(--grey); flex-shrink: 0; }
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--black-surface);
    border-radius: 2px;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    background: var(--orange);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}
.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255,106,0,0.5);
}

/* === NOW PLAYING BAR (Sticky Bottom) === */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.35s ease, border-color var(--transition);
}
.now-playing-bar.visible { border-top-color: rgba(255,106,0,0.2); }
.now-playing-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.np-art {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--black-surface);
    position: relative;
    cursor: pointer;
}
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.np-art:hover::after { opacity: 1; }
.np-art .np-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
    pointer-events: none;
}
.np-art:hover .np-play-icon { opacity: 1; }
.np-art .np-play-icon svg { width: 20px; height: 20px; fill: var(--white); filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.np-art .np-play-icon .icon-pause { display: none; }
.is-playing .np-art .np-play-icon .icon-play { display: none; }
.is-playing .np-art .np-play-icon .icon-pause { display: block; }
.np-info { flex: 1; min-width: 0; }
.np-song {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-artist {
    font-size: 0.8rem;
    color: var(--grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-controls { display: flex; align-items: center; gap: 12px; }
.np-play-btn {
    width: 40px; height: 40px;
    background: var(--orange);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.np-play-btn:hover { background: var(--orange-dark); }
.np-play-btn svg { width: 18px; height: 18px; fill: var(--white); }
.np-airplay-btn {
    display: none; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.06); color: var(--grey);
    transition: all 0.2s;
}
.np-airplay-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.np-airplay-btn.active { color: var(--orange); background: rgba(255,106,0,0.12); }

/* ── Player Tool Buttons (Sleep, EQ, Cast) ── */
.np-tool-wrap { position: relative; }
.np-tool-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.06); color: var(--grey);
    border: none; cursor: pointer; transition: all 0.2s; position: relative;
}
.np-tool-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.np-tool-btn.active { color: var(--orange); background: rgba(255,106,0,0.12); }
.np-tool-btn svg { width: 18px; height: 18px; }
.np-tool-badge {
    position: absolute; top: -2px; right: -2px;
    font-size: 0.6rem; font-weight: 700; color: var(--white);
    background: var(--orange); border-radius: 8px; padding: 1px 4px;
    line-height: 1.1; min-width: 14px; text-align: center;
}
.np-tool-badge:empty { display: none; }

/* Dropdown Menus */
.np-dropdown {
    display: none; position: absolute; bottom: calc(100% + 8px); right: 0;
    background: rgba(18,18,22,0.97); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 8px 0; min-width: 160px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 100;
    animation: npDropIn 0.15s ease-out;
}
.np-dropdown.open { display: block; }
@keyframes npDropIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.np-dropdown-title {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
    color: var(--grey); padding: 4px 16px 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}
.np-dropdown-item {
    display: block; width: 100%; padding: 8px 16px; border: none;
    background: transparent; color: rgba(255,255,255,0.8); font-size: 0.85rem;
    text-align: left; cursor: pointer; transition: all 0.15s;
}
.np-dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.np-dropdown-item.active { color: var(--orange); font-weight: 600; }
.np-dropdown-off { color: #ef5350; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; }

/* Sleep Timer Countdown Toast */
.sleep-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(18,18,22,0.95); color: var(--orange); font-size: 0.85rem;
    font-weight: 600; padding: 8px 20px; border-radius: 20px;
    border: 1px solid rgba(255,106,0,0.3);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 9999; animation: toastIn 0.3s ease-out;
    pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Song History Spotify/Apple Links ── */
.hrp-track-links {
    display: flex; align-items: center; gap: 6px;
    flex-shrink: 0; padding-left: 8px;
}
.hrp-svc-link {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    transition: all 0.2s; text-decoration: none;
}
.hrp-svc-link svg { fill: currentColor; width: 16px; height: 16px; }
.hrp-svc-link:hover { transform: scale(1.15); }
.hrp-spotify { color: #1DB954; background: rgba(29,185,84,0.15); }
.hrp-spotify:hover { background: rgba(29,185,84,0.3); }
.hrp-apple { color: #FA243C; background: rgba(250,36,60,0.12); }
.hrp-apple:hover { background: rgba(250,36,60,0.25); }
.hrp-youtube { color: #FF0000; background: rgba(255,0,0,0.12); }
.hrp-youtube:hover { background: rgba(255,0,0,0.25); }

/* Song Vote Buttons (Like / Dislike) */
.np-rate {
    display: flex;
    align-items: center;
    gap: 4px;
}
.np-vote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: var(--grey);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.np-vote-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.np-vote-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.np-vote-btn:active svg { transform: scale(1.2); }
.np-vote-btn.active:first-child {
    color: #4CAF50; background: rgba(76,175,80,0.12); border-color: rgba(76,175,80,0.25);
}
.np-vote-btn.active:first-child svg { fill: #4CAF50; stroke: #4CAF50; }
.np-vote-btn.active:last-child {
    color: #ef5350; background: rgba(239,83,80,0.12); border-color: rgba(239,83,80,0.25);
}
.np-vote-btn.active:last-child svg { fill: #ef5350; stroke: #ef5350; }
.np-vote-count { font-size: 0.72rem; font-weight: 600; }
.np-vote-count:empty { display: none; }
.np-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}
.np-volume svg { width: 18px; height: 18px; color: var(--grey); }
.np-volume .volume-slider { width: 100px; }

/* === NEWS / ARTICLES === */
.news-section { position: relative; z-index: 3; }
/* === NEWS HERO === */
.news-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}
.news-hero:hover {
    border-color: rgba(255,106,0,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.04);
}
.news-hero-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--black-surface);
}
.news-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.news-hero:hover .news-hero-img img { transform: scale(1.05); }
.news-hero-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}
.news-hero-excerpt {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-hero-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.news-hero:hover .news-hero-link { color: var(--orange-dark); }

/* === EVENT HERO === */
.event-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}
.event-hero:hover {
    border-color: rgba(255,106,0,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.04);
}
.event-hero-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--black-surface);
    position: relative;
}
.event-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.event-hero:hover .event-hero-img img { transform: scale(1.05); }
.event-hero-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.event-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}
.event-hero-excerpt {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SUB GRID (3 cards below hero) === */
.news-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.news-grid .news-card:first-child {
    grid-column: 1 / -1;
}
.news-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}
.news-card:hover {
    border-color: rgba(255,106,0,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.04);
}
.news-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--black-surface);
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 16px 18px; }
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: var(--grey-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    font-size: 0.82rem;
    color: var(--grey);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SCHEDULE === */

.schedule-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.schedule-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--grey);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: all var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    min-height: 34px;
}
.schedule-tab:hover { color: var(--white); background: rgba(255,255,255,0.05); border-color: rgba(255,106,0,0.25); }
.schedule-tab.active { background: rgba(255,106,0,0.1); color: var(--orange); border-color: var(--orange); font-weight: 700; }

.schedule-list { display: flex; flex-direction: column; gap: 6px; }
.schedule-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    align-items: center;
    transition: all var(--transition);
}
.schedule-item:hover {
    border-color: rgba(255,106,0,0.2);
    background: rgba(255,255,255,0.04);
}
.schedule-item.is-live {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.04);
}
.schedule-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--orange);
}
.schedule-show-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.schedule-show-host {
    font-size: 0.78rem;
    color: var(--grey);
}

/* === EVENTS === */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.event-card:hover {
    border-color: rgba(255,106,0,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.04);
}
.event-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--black-surface);
    position: relative;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,106,0,0.08);
    color: var(--orange);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,106,0,0.2);
    text-align: center;
    line-height: 1.1;
    backdrop-filter: blur(8px);
}
.event-date-badge .day {
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: block;
}
.event-date-badge .month {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.event-card-body { padding: 16px 18px; }
.event-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}
.event-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--grey);
}
.event-card-location svg { width: 16px; height: 16px; color: var(--orange); }

/* === SONG REQUEST === */
.request-section {
    background: linear-gradient(135deg, rgba(255,106,0,0.08) 0%, var(--black) 50%, rgba(255,106,0,0.05) 100%);
    position: relative;
}
.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}
.request-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 2px;
    margin-bottom: 10px;
    line-height: 1;
}
.request-text h2 span { color: var(--orange); }
.request-text p { color: var(--grey); font-size: 0.92rem; line-height: 1.6; }

.request-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey);
}
.form-input {
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,106,0,0.15);
}
.form-input::placeholder { color: var(--grey-dark); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* === QUALITY INDICATOR === */
.quality-wrap { position: relative; }
.np-quality-btn {
    display: flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 10px;
    border-radius: 16px; background: rgba(255,255,255,0.06);
    color: var(--grey); transition: all 0.2s; cursor: pointer;
}
.np-quality-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.quality-dot {
    width: 7px; height: 7px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
}
.quality-dot.q-low, .qp-opt-dot.q-low { background: #f59e0b; }
.quality-dot.q-normal, .qp-opt-dot.q-normal { background: #22c55e; }
.quality-dot.q-high, .qp-opt-dot.q-high { background: #3b82f6; }
.quality-dot.q-auto, .qp-opt-dot.q-auto {
    background: conic-gradient(#f59e0b 0deg, #22c55e 120deg, #3b82f6 240deg, #f59e0b 360deg);
}
.quality-panel {
    position: absolute; bottom: 44px; right: 0;
    width: 260px; background: rgba(17,17,17,0.97);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 0;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transform: translateY(8px) scale(0.96);
    transition: all 0.2s ease; z-index: 100;
    overflow: hidden;
}
.quality-panel.open {
    opacity: 1; pointer-events: auto;
    transform: translateY(0) scale(1);
}
.qp-header {
    font-family: var(--font-display);
    font-size: 0.72rem; letter-spacing: 2.5px;
    color: var(--grey-dark); padding: 14px 16px 6px;
}
.qp-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; padding: 6px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.qp-stat { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; }
.qp-stat-label { font-size: 0.62rem; color: var(--grey-dark); letter-spacing: 0.5px; }
.qp-stat-value { font-size: 0.78rem; color: var(--white); font-weight: 500; }
.qp-options { padding: 8px; }
.qp-option {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px; border-radius: 8px;
    background: transparent; border: none; color: var(--grey);
    cursor: pointer; transition: all 0.15s; text-align: left;
}
.qp-option:hover { background: rgba(255,255,255,0.05); }
.qp-option.active { background: rgba(255,106,0,0.08); color: var(--white); }
.qp-option.active .qp-opt-dot { box-shadow: 0 0 6px currentColor; }
.qp-opt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.qp-opt-text { display: flex; flex-direction: column; }
.qp-opt-text strong { font-size: 0.8rem; font-weight: 500; color: inherit; }
.qp-opt-text small { font-size: 0.65rem; color: var(--grey-dark); }
.qp-footer {
    font-size: 0.68rem; color: var(--orange); text-align: center;
    padding: 8px 16px 12px; letter-spacing: 1px;
    font-family: var(--font-display);
}


/* === PWA INSTALL PROMPT === */
.pwa-install-banner {
    position: fixed; bottom: 80px; left: 16px; right: 16px;
    max-width: 400px; margin: 0 auto;
    background: var(--black-card); border: 1px solid rgba(255,106,0,0.2);
    border-radius: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    z-index: 8000; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pwa-install-banner .pwa-icon {
    width: 44px; height: 44px; border-radius: 10px;
    flex-shrink: 0; object-fit: cover;
}
.pwa-install-info { flex: 1; min-width: 0; }
.pwa-install-info strong { display: block; font-size: 0.88rem; color: var(--white); }
.pwa-install-info span { font-size: 0.75rem; color: var(--grey); }
.pwa-install-btn {
    font-family: var(--font-display); font-size: 0.8rem;
    letter-spacing: 1.5px; padding: 8px 18px;
    background: var(--orange); color: #fff;
    border: none; border-radius: 8px; cursor: pointer;
    transition: background 0.2s; white-space: nowrap;
}
.pwa-install-btn:hover { background: var(--orange-dark); }
.pwa-install-close {
    position: absolute; top: -6px; right: -6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--black-surface); border: 1px solid rgba(255,255,255,0.1);
    color: var(--grey); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.7rem;
}

/* === FOOTER === */
.footer {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0 24px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 80px;
    margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--grey); font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-brand-label {
    font-size: 0.78rem;
    color: var(--grey-dark);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 12px;
}
.footer-brand-name span { color: var(--orange); }
.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--orange);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: var(--grey);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-links a:hover { color: var(--orange); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--white);
}
.footer-social a:hover {
    background: var(--orange);
    transform: translateY(-2px);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--grey-dark);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ARTICLE DETAIL PAGE === */
.article-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}
.article-hero-img {
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--grey-light);
}
.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    margin: 40px 0 16px;
    letter-spacing: 1px;
}
.article-content p { margin-bottom: 20px; }
.article-content img {
    border-radius: var(--radius);
    margin: 32px 0;
}

/* === CONTACT PAGE === */
.contact-section { padding-top: calc(var(--header-height) + 60px); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: all var(--transition);
}
.contact-info-card:hover {
    border-color: rgba(255,106,0,0.2);
    background: rgba(255,255,255,0.05);
}
.contact-info-icon {
    width: 48px; height: 48px;
    background: rgba(255,106,0,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; color: var(--orange); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 24px; }
    .hero-mod-photo { width: 260px; }
    .hero-mod-text { margin-left: 160px; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-grid .news-card:first-child { grid-column: 1 / -1; }
    .news-sub-grid { grid-template-columns: 1fr 1fr; }
    .news-sub-grid .news-card:last-child:nth-child(3) { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand p { max-width: 100%; }
    .footer-social { justify-content: center; }
    .footer-links { align-items: center; }
    .request-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --header-height: 64px; }
    .header-inner { flex-wrap: nowrap; gap: 0; }
    .section { padding: 12px 0; }

    /* Burger Button - min 44px touch target */
    .burger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile Nav - Slide from right */
    .nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(80px + env(safe-area-inset-top, 0px)) 0 calc(32px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    }
    .nav.open { right: 0; }
    .nav a {
        font-size: 0.95rem;
        padding: 16px 28px;
        min-height: 48px;
        display: flex;
        align-items: center;
        white-space: nowrap;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav a.active {
        color: var(--orange);
    }

    /* Overlay */
    .nav-overlay.open { display: block; }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 0;
    }
    .hero-content { gap: 20px; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 4rem); }
    .hero-subtitle { font-size: 1rem; margin-bottom: 20px; }
    .hero-radio-panel { margin-top: 0; }
    .hrp-recent { padding: 16px 20px; }

    /* News & Events grids */
    .news-grid { grid-template-columns: 1fr; }
    .news-sub-grid { grid-template-columns: 1fr; }
    .news-hero { grid-template-columns: 1fr; }
    .news-hero-body { padding: 24px; }
    .news-hero-title { font-size: 1.4rem; }
    .event-hero { grid-template-columns: 1fr; }
    .event-hero-body { padding: 24px; }
    .event-hero-title { font-size: 1.4rem; }

    .events-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand p { max-width: 100%; }
    .footer-social { justify-content: center; }
    .footer-links { align-items: center; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* Schedule */
    .schedule-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
    .schedule-tabs::-webkit-scrollbar { display: none; }
    .schedule-item { grid-template-columns: 90px 1fr; gap: 12px; }
    .schedule-item > *:last-child { display: none; }

    /* Now Playing Bar */
    .now-playing-bar-inner { padding: 10px 16px; gap: 12px; }
    .np-art { width: 40px; height: 40px; }
    .np-song { font-size: 0.85rem; }
    .np-artist { font-size: 0.75rem; }
    .np-volume { display: none; }
    .np-vote-btn { padding: 5px 8px; gap: 3px; }
    .np-vote-btn svg { width: 14px; height: 14px; }
    .np-vote-count { font-size: 0.68rem; }
    .np-tool-btn { width: 28px; height: 28px; }
    .np-tool-btn svg { width: 15px; height: 15px; }
    .np-controls { gap: 8px; }
    .hrp-svc-link { width: 28px; height: 28px; }
    .hrp-svc-link svg { width: 14px; height: 14px; }

    /* Scroll to top */
    .scroll-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 44px;
        height: 44px;
    }

    /* Article detail */
    .article-content { font-size: 1rem; }

    /* Track cards */
    .hrp-recent { padding: 16px 20px; }
    .hrp-track { padding: 10px 12px; }
    .hrp-track-art { width: 40px; height: 40px; }
}

/* ==  Small phones (iPhone SE, Galaxy S, etc.) === */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 10px 0; }
    .hero { padding-top: calc(var(--header-height) + 24px); padding-bottom: 0; }
    .hero-content { gap: 16px; }
    .btn-hero-play { justify-content: center; }
    .hero-tag { font-size: 0.68rem; padding: 5px 12px; }
    .hero-subtitle { font-size: 0.92rem; }

    .section-title { font-size: 1.6rem; }

    /* Now Playing Bar compact */
    .now-playing-bar-inner { padding: 8px 12px; gap: 10px; }
    .np-art { width: 36px; height: 36px; }
    .np-song { font-size: 0.8rem; }
    .np-artist { font-size: 0.7rem; }
    .np-vote-count { display: none; }
    .np-vote-btn { padding: 6px; border-radius: 50%; }
    .np-controls { gap: 6px; }
    .hrp-track-links { gap: 4px; }
    .np-dropdown { right: -8px; min-width: 140px; }

    /* Footer compact */
    .footer { padding: 40px 0 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
    .footer-grid { gap: 24px; }
    .footer-title { font-size: 1rem; margin-bottom: 14px; }
    .footer-links a { font-size: 0.85rem; }
    .footer-social a { width: 36px; height: 36px; }
    .footer-social a svg { width: 16px; height: 16px; }
    .footer-bottom { font-size: 0.72rem; }

    /* Buttons touch-friendly */
    .btn { min-height: 44px; padding: 12px 24px; font-size: 0.85rem; }
    .btn-ghost { min-height: 36px; }

    /* Cookie banner */
    .cookie-consent { padding: 16px; }
}

/* ==  Very small phones (iPhone SE 1st gen, 320px) === */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-mod-photo { width: 180px; opacity: 0.35; }
    .hero-mod-text { margin-left: 100px; padding-top: 20px; }
    .hero-title-playing { font-size: 2.2rem !important; }
    .hero-state-playing { min-height: 200px; }
    .logo-text { font-size: 1rem; }
    .logo img { height: 38px; width: 38px; }
    .section-title { font-size: 1.4rem; }
    .footer-grid { gap: 20px; }
    .hrp-recent { padding: 12px 14px; }
    .hrp-track { padding: 8px 10px; gap: 10px; }
    .hrp-track-art { width: 36px; height: 36px; }
    .hrp-track-song { font-size: 0.8rem; }
    .hrp-track-artist { font-size: 0.7rem; }
}

/* ==  Landscape phones === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding-top: calc(var(--header-height) + 20px); padding-bottom: 0; min-height: auto; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 16px; }
    .section { padding: 6px 0; }
    .nav { padding-top: calc(60px + env(safe-area-inset-top, 0px)); }
    .nav a { padding: 10px 28px; min-height: 40px; }
}

/* ==  Touch-device optimizations === */
@media (hover: none) and (pointer: coarse) {
    .news-card:hover { transform: none; }
    .news-card:active { transform: scale(0.98); border-color: rgba(255,106,0,0.25); }
    .hrp-track:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); }
    .hrp-track:active { background: rgba(255,255,255,0.06); border-color: rgba(255,106,0,0.25); }
    .btn:hover { transform: none; }
    .btn:active { transform: scale(0.97); }
    .footer-social a:hover { transform: none; }
    .footer-social a:active { background: var(--orange); transform: scale(0.95); }
    .scroll-top:hover { transform: none; }
    .scroll-top:active { transform: scale(0.92); }
}

/* ==  Prefers reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .hero-title .line { opacity: 1; transform: none; }
}


/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 998;
    width: 48px;
    height: 48px;
    background: rgba(255,106,0,0.1);
    color: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    backdrop-filter: blur(8px);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: rgba(255,106,0,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,106,0,0.25);
}
.scroll-top:active {
    transform: translateY(0) scale(0.95);
}

/* === ADMIN STYLES === */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--black-card);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px;
    overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 24px; margin-bottom: 32px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    color: var(--grey);
    transition: all var(--transition);
}
.admin-nav a:hover { color: var(--orange); }
.admin-nav a.active { color: var(--orange); background: rgba(255,106,0,0.08); border-right: 3px solid var(--orange); }
.admin-nav a svg { width: 20px; height: 20px; }

.admin-main {
    margin-left: 260px;
    padding: 32px;
    background: var(--black-soft);
    min-height: 100vh;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.admin-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
}

.admin-card {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--orange);
    letter-spacing: 1px;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .actions {
    display: flex;
    gap: 8px;
}
.admin-table .actions a, .admin-table .actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}
.action-edit { background: rgba(255,106,0,0.12); color: var(--orange); }
.action-edit:hover { background: var(--orange); color: var(--white); }
.action-delete { background: rgba(255,60,60,0.12); color: #FF3C3C; }
.action-delete:hover { background: #FF3C3C; color: var(--white); }

/* Admin Form */
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form .form-full { grid-column: 1 / -1; }

/* Toast Notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInRight 0.4s ease-out;
    box-shadow: var(--shadow);
}
.toast-success { background: #1a8b4e; color: white; }
.toast-error { background: #c53030; color: white; }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==  COOKIE CONSENT BANNER === */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 106, 0, 0.25);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cookie-consent.visible {
    display: block;
    animation: slideUpConsent 0.4s ease-out;
}
@keyframes slideUpConsent {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-consent-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
}
.cookie-consent-text h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--orange);
}
.cookie-consent-text p {
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 4px;
}
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.cookie-consent-actions .btn {
    flex: 1;
    min-width: 130px;
    justify-content: center;
    font-size: 0.84rem;
    padding: 10px 14px;
}
.cookie-settings-detail {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-option {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--white);
    font-size: 0.88rem;
}
.cookie-option input[type="checkbox"] {
    accent-color: var(--orange);
    width: 17px;
    height: 17px;
}
@media (max-width: 640px) {
    .cookie-consent-actions { flex-direction: column; }
    .cookie-consent-actions .btn { min-width: auto; }
}

/* ==  AD CONTAINERS === */
/* ═══ AD BANNERS ═══ */
.rmn-ad { padding: 16px 0; overflow: hidden; }
.rmn-ad-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.rmn-ad-label {
    display: block;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.rmn-ad ins.adsbygoogle {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    overflow: hidden;
    min-height: 90px;
}
@media(max-width: 768px) {
    .rmn-ad { padding: 12px 0; }
    .rmn-ad-inner { padding: 0 16px; }
    .rmn-ad ins.adsbygoogle { border-radius: 8px; min-height: 50px; }
}
@media(max-width: 480px) {
    .rmn-ad-inner { padding: 0 12px; }
}

/* ==  SMOOTH SCHEDULE TABS === */
.schedule-list.is-loading { opacity: 0.3; transition: opacity 0.15s ease; }


/* ==  ARCHIVE FILTERS === */
.archive-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.archive-select {
    flex: 1;
    min-width: 160px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BFBFBF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.archive-select:focus { border-color: var(--orange); }
.archive-select option { background: var(--black-card); color: var(--white); }
.archive-select { color-scheme: dark; }

@media (max-width: 640px) {
    .archive-filters { flex-direction: column; }
    .archive-select { min-width: auto; }
}

/* ==  LEGAL CONTENT (Admin-managed pages) === */
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--orange);
}
.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--white);
}
.legal-content p { margin-bottom: 12px; }
.legal-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { opacity: 0.8; }
.legal-content strong { color: var(--white); }
.legal-content ul, .legal-content ol { margin: 12px 0 12px 24px; }
.legal-content li { margin-bottom: 6px; }

/* ==  SECTION HEADINGS === */

/* ═══ CHANNEL SYSTEM ═══ */
.nav-channel-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--grey);
    transition: all 0.2s;
    margin-left: 4px;
    flex-shrink: 0;
}
.nav-channel-toggle:hover { color: var(--orange); border-color: rgba(255,106,0,0.3); background: rgba(255,106,0,0.05); }
.channel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10003;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.channel-overlay.open { display: block; }
.channel-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 88vw;
    height: 100%;
    background: rgba(12,12,12,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 10004;
    overflow-y: auto;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-overlay.open .channel-panel { transform: translateX(0); }
.channel-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.channel-panel-header h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 1px; }
.channel-close { background: none; border: none; color: var(--grey); font-size: 1.5rem; cursor: pointer; padding: 4px 10px; border-radius: 8px; transition: all 0.2s; line-height: 1; }
.channel-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.channel-section-title { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,0.35); margin: 20px 0 10px; }
.channel-section-title:first-of-type { margin-top: 0; }
.channel-hero {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,106,0,0.08) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 12px;
}
.channel-hero-title {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1;
    color: var(--white);
}
.channel-hero-orange { color: var(--orange); }
.channel-hero-sub {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--grey);
    line-height: 1.5;
}
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.channel-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: none; border-radius: 12px; padding: 6px 4px; cursor: pointer; transition: all 0.2s; text-decoration: none; color: var(--white); }
.channel-btn:hover { background: rgba(255,255,255,0.04); transform: scale(1.05); }
.channel-btn.active { background: rgba(255,106,0,0.06); }
.channel-btn.active img { box-shadow: 0 0 0 2px var(--orange); }
.channel-btn img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.channel-btn-label { font-size: 0.68rem; font-weight: 600; text-align: center; line-height: 1.2; }

/* Homepage channels */
.channel-home-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.channel-home-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: transform 0.2s; text-decoration: none; color: var(--white); }
.channel-home-item:hover { transform: scale(1.04); }
.channel-home-item img { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; border: 2px solid rgba(255,255,255,0.06); transition: border-color 0.3s, box-shadow 0.3s; }
.channel-home-item:hover img { border-color: rgba(255,106,0,0.35); }
.channel-home-item.active img { border-color: var(--orange); box-shadow: 0 0 24px rgba(255,106,0,0.2); }
.channel-home-item span { font-size: 0.85rem; font-weight: 600; }

@media(max-width: 600px) {
    .channel-home-item img { width: 110px; height: 110px; border-radius: 12px; }
    .channel-home-item span { font-size: 0.75rem; }
    .channel-home-grid { gap: 12px; }
    .channel-btn img { width: 60px; height: 60px; }
    .channel-btn-label { font-size: 0.6rem; }
}
@media(max-width: 380px) {
    .channel-home-item img { width: 90px; height: 90px; border-radius: 10px; }
    .channel-home-grid { gap: 8px; }
    .channel-grid { gap: 6px; }
    .channel-btn img { width: 52px; height: 52px; }
    .channel-btn { padding: 4px 2px; }
}