/* ============================================
   SOULFREAK RADIO — Design System
   Premium Soulful House · Dark Disco Aesthetic
   ============================================ */

:root {
    --bg-deep: #0a0612;
    --bg-card: #120a1e;
    --bg-elevated: #1a0f2e;
    --purple-dark: #2d1b4e;
    --purple-mid: #5b2d8e;
    --purple-glow: #8b5cf6;
    --orange: #f5a623;
    --orange-bright: #ff8c00;
    --gold: #ffd700;
    --pink: #e040fb;
    --text: #f0e6ff;
    --text-muted: #a89bc2;
    --text-dim: #6b5f80;
    --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 40%, #0a0612 100%);
    --gradient-accent: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    --shadow-glow: 0 0 40px rgba(245, 166, 35, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --player-height: 80px;
    --header-height: 64px;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    /* clip on html (not body) — Chrome clips position:fixed when body has overflow-x:hidden */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--player-height) + 20px);
    overflow-x: visible;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: var(--gradient-glow);
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.p1 { width: 4px; height: 4px; background: var(--orange); top: 20%; left: 10%; animation-delay: 0s; }
.p2 { width: 6px; height: 6px; background: var(--purple-glow); top: 60%; left: 80%; animation-delay: -5s; }
.p3 { width: 3px; height: 3px; background: var(--gold); top: 40%; left: 50%; animation-delay: -10s; }
.p4 { width: 5px; height: 5px; background: var(--pink); top: 80%; left: 30%; animation-delay: -7s; }
.p5 { width: 4px; height: 4px; background: var(--orange); top: 10%; left: 70%; animation-delay: -3s; }
.p6 { width: 3px; height: 3px; background: var(--purple-glow); top: 70%; left: 60%; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -40px) scale(1.2); opacity: 0.6; }
    50% { transform: translate(-20px, 20px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(40px, 30px) scale(1.1); opacity: 0.5; }
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--orange);
    color: var(--bg-deep);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 16px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo-vinyl {
    width: 36px;
    height: 36px;
    color: var(--orange);
    animation: spin-slow 8s linear infinite;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    padding: 3px;
    flex-shrink: 0;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
    background: var(--gradient-accent);
    color: var(--bg-deep);
}

.logo-vinyl svg { width: 100%; height: 100%; }

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 2px;
    display: block;
    line-height: 1;
}

.logo-text small {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ef4444;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
    transition: var(--transition);
}

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.15);
}

.nav-link.active { color: var(--orange); }

.header-now-playing {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 280px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.np-label {
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.np-track-wrap {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.np-track-scroll {
    display: inline-flex;
    white-space: nowrap;
    gap: 2rem;
}

.np-track-text {
    color: var(--text);
    white-space: nowrap;
}

.np-track-wrap.is-scrolling .np-track-scroll {
    animation: header-track-scroll 14s linear infinite;
}

@keyframes header-track-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

@media (min-width: 769px) {
    .header-now-playing {
        flex: 0 1 auto;
        max-width: 280px;
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--player-height) - 40px);
    padding: 48px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -48px -24px;
    background: url('/assets/images/hero-disco-scene.webp') center/cover no-repeat;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.hero-content { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--purple-glow);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 0.9;
    margin-bottom: 16px;
}

.title-line {
    display: block;
    font-size: clamp(4rem, 10vw, 7rem);
    letter-spacing: 4px;
}

.title-line.accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--orange);
    letter-spacing: 1px;
}

.stat span {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disco-ball {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ccc 0%, #fff 25%, #999 50%, #eee 75%, #aaa 100%);
    background-size: 20px 20px;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3), inset 0 0 30px rgba(0,0,0,0.2);
    animation: disco-spin 6s linear infinite, disco-float 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes disco-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes disco-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.hero-vinyl {
    position: absolute;
    width: 280px;
    height: 280px;
    opacity: 0.3;
    animation: spin-slow 12s linear infinite;
}

.hero-vinyl svg { width: 100%; height: 100%; }

/* Dancers */
.dancers {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 3;
}

.dancer {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dance 1s ease-in-out infinite;
}

.dancer.d1 { animation-delay: 0s; }
.dancer.d2 { animation-delay: 0.3s; animation-duration: 0.8s; }
.dancer.d3 { animation-delay: 0.6s; animation-duration: 1.2s; }

.dancer .afro {
    width: 32px;
    height: 32px;
    background: var(--bg-deep);
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--bg-deep), 0 0 0 10px var(--orange);
    margin-bottom: 4px;
}

.dancer .body {
    width: 16px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple-glow), var(--purple-dark));
    border-radius: 8px 8px 4px 4px;
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg { width: 20px; height: 20px; }

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 8px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.genre-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    cursor: default;
}

.genre-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}

.genre-icon { font-size: 2rem; margin-bottom: 12px; }

.genre-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--orange);
}

.genre-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 28px;
}

.highlight-card {
    border-color: rgba(245, 166, 35, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 166, 35, 0.05) 100%);
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--purple-glow);
    margin-bottom: 12px;
}

.featured-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.link-arrow {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover { text-decoration: underline; }

/* CTA */
.cta-section { padding-bottom: 32px; }

.cta-box {
    text-align: center;
    background: var(--gradient-hero);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
    padding: 64px 32px;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.cta-box p { color: var(--text-muted); margin-bottom: 24px; }

/* Page Hero */
.page-hero {
    text-align: center;
    padding: 64px 0 32px;
}

.page-hero.compact { padding: 48px 0 24px; }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Prose / Content */
.content-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--orange);
    margin: 32px 0 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--purple-glow);
}

.prose p { color: var(--text-muted); margin-bottom: 16px; }

.prose.wide { max-width: 800px; margin: 0 auto; }

.quote-block {
    border-left: 3px solid var(--orange);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(245, 166, 35, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-block blockquote {
    font-style: italic;
    color: var(--text);
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 16px 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.feature-list li strong { color: var(--text); }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-glow);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.sidebar-card h3 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--orange);
}

.sidebar-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }

.sidebar-card hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 16px 0;
}

.sidebar-links { list-style: none; }

.sidebar-links a {
    display: block;
    color: var(--purple-glow);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.875rem;
}

.sidebar-links a:hover { color: var(--orange); }

/* Timeline */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), var(--purple-glow));
}

.timeline-item {
    position: relative;
    padding: 16px 0 16px 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 50%;
    border: 2px solid var(--bg-deep);
}

.timeline-item .year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--orange);
    letter-spacing: 1px;
}

.timeline-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* Deep Dive Section */
.deep-dive-section {
    padding-top: 32px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.deep-dive-header { margin-bottom: 48px; }

.deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.deep-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.deep-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
}

.deep-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--orange);
    opacity: 0.4;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.deep-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--purple-glow);
    margin-bottom: 12px;
}

.deep-content {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.deep-content strong { color: var(--text); }

@media (max-width: 768px) {
    .deep-dive-grid { grid-template-columns: 1fr; }
}

/* Legends */
.legends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.legend-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    animation: fadeUp 0.6s ease backwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.legend-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.legend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bg-deep);
}

.legend-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.legend-title {
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.legend-bio { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 12px; }

.legend-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Chat */
.chat-section { padding-top: 0; }

.chat-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    min-height: 500px;
}

.chat-info-card, .chat-gadget-mini {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.chat-info-card h3, .chat-gadget-mini h3 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 1rem;
}

.chat-info-card ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chat-info-card li { padding: 4px 0; }

.online-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 12px 12px 4px;
}

.online-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.75;
    padding: 0 12px 12px;
    margin: 0;
}

.slang-output {
    font-size: 0.85rem;
    color: var(--orange);
    margin-top: 8px;
    font-style: italic;
    min-height: 20px;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 450px;
    min-height: 350px;
}

.chat-welcome {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.chat-welcome p:first-child { font-size: 1.2rem; color: var(--orange); margin-bottom: 8px; }

.chat-bubble {
    margin-bottom: 12px;
    animation: fadeUp 0.3s ease;
}

.chat-bubble .bubble-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-bubble .nickname {
    font-weight: 600;
    color: var(--purple-glow);
    font-size: 0.85rem;
}

.chat-bubble .time {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.chat-bubble .bubble-text {
    background: var(--bg-elevated);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.9rem;
    color: var(--text);
    display: inline-block;
    max-width: 80%;
}

.chat-bubble.own .bubble-text {
    background: rgba(245, 166, 35, 0.15);
    border-radius: 16px 4px 16px 16px;
}

.chat-form {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-row input:focus {
    border-color: var(--purple-glow);
}

.chat-input-row input:first-child { flex: 0 0 140px; }

/* Gadgets */
.gadgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gadget-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.gadget-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 8px;
}

.gadget-card > p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Mood Meter */
.mood-meter { position: relative; }

.mood-dancers {
    display: flex;
    justify-content: center;
    gap: 24px;
    height: 100px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.mood-dancer {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dance 1s ease-in-out infinite;
}

.mood-dancer .afro {
    width: 24px;
    height: 24px;
    background: var(--bg-deep);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-deep), 0 0 0 8px var(--orange);
}

.mood-dancer .body {
    width: 12px;
    height: 30px;
    background: linear-gradient(to bottom, var(--purple-glow), var(--purple-dark));
    border-radius: 6px;
}

.mood-control label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mood-control input[type="range"] {
    width: 100%;
    accent-color: var(--orange);
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.mood-glow {
    height: 4px;
    border-radius: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--purple-dark), var(--orange), var(--pink));
    transition: opacity 0.3s, box-shadow 0.3s;
    opacity: 0.5;
}

.mood-glow.active {
    opacity: 1;
    box-shadow: 0 0 20px var(--orange);
}

/* Slang */
.slang-display {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 16px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slang-display p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
}

/* Vinyl Roulette */
.vinyl-roulette {
    margin-bottom: 16px;
}

.roulette-vinyl {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--orange);
    transition: transform 0.1s;
}

.roulette-vinyl.spinning {
    animation: spin-fast 0.1s linear infinite;
}

@keyframes spin-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.roulette-result {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    min-height: 24px;
}

/* Share Preview */
.share-preview {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.5;
}

/* Groove Clock */
.groove-clock {
    padding: 20px;
}

.clock-time {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--orange);
    display: block;
    letter-spacing: 2px;
}

.clock-temp {
    display: block;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 4px 0 8px;
    letter-spacing: 0.5px;
    min-height: 1.4em;
}

.clock-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* BPM Tapper */
.bpm-tapper { padding: 16px 0; }

.bpm-tap-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.bpm-tap-btn:active { transform: scale(0.95); }

.bpm-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--orange);
}

.bpm-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bpm-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* About */
.about-highlight {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.warning-box {
    background: rgba(224, 64, 251, 0.08);
    border: 1px solid rgba(224, 64, 251, 0.25);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 16px 0;
}

.warning-box p { margin-bottom: 8px; }
.warning-box p:last-child { margin-bottom: 0; }

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.info-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
}

.info-table td:first-child {
    color: var(--text-muted);
    width: 140px;
}

.info-table a { color: var(--purple-glow); }

.station-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.station-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.station-card:hover { border-color: var(--orange); }

.station-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.station-card span { font-size: 0.8rem; color: var(--text-muted); }

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding: 32px 24px;
    margin-top: 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.footer-brand p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--orange); }

.footer-ecosystem {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.footer-ecosystem a { color: var(--purple-glow); text-decoration: none; }
.footer-ecosystem .sep { margin: 0 8px; }

.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* Radio Player (Sticky Footer) */
.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 6, 18, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 166, 35, 0.2);
    min-height: var(--player-height);
    height: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
    /* own layer — avoids Chrome subpixel clip at bottom:0 with DPR ≠ 1 */
    transform: translate3d(0, 0, 0);
}

.player-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: var(--player-height);
    height: var(--player-height);
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#equalizerCanvas {
    border-radius: 4px;
}

.vinyl-spin {
    width: 40px;
    height: 40px;
    color: var(--orange);
    transition: var(--transition);
}

.vinyl-spin svg { width: 100%; height: 100%; }

.vinyl-spin.playing { animation: spin-slow 3s linear infinite; }

.player-info { flex: 1; min-width: 0; }

.player-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 1px;
}

.live-badge .pulse {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.player-station {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-track {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-desktop { display: inline; }

.track-mobile { display: none; }

.player-track-wrap {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.player-track-scroll {
    display: inline-flex;
    white-space: nowrap;
    gap: 2rem;
}

.player-track-text {
    white-space: nowrap;
    color: var(--text);
}

.player-track-wrap.is-scrolling .player-track-scroll {
    animation: header-track-scroll 14s linear infinite;
}

.track-artist { color: var(--orange); font-weight: 600; flex-shrink: 0; }
.track-title { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-play.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.radio-player.is-playing {
    border-top-color: rgba(245, 166, 35, 0.45);
}

.btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    transition: var(--transition);
}

.btn-play:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }

.btn-play svg { width: 24px; height: 24px; }
.btn-play .icon-pause { display: none; }
.btn-play.playing .icon-play { display: none; }
.btn-play.playing .icon-pause { display: block; }

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-volume {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.btn-volume svg { width: 20px; height: 20px; }

#volumeSlider {
    width: 80px;
    accent-color: var(--orange);
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-share svg { width: 16px; height: 16px; }
.btn-share:hover { color: var(--text); border-color: var(--purple-glow); }

.share-toast {
    position: fixed;
    bottom: calc(var(--player-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--orange);
    color: var(--text);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.is-navigating #main-content {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

body:not(.is-navigating) #main-content {
    transition: opacity 0.2s ease;
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { height: 250px; }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .content-section { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .legends-grid { grid-template-columns: 1fr; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    :root {
        --player-height: 72px;
        --header-height: 56px;
    }

    .main-content { padding: 0 16px; }

    .header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .logo-text small { display: none; }

    .logo-text strong { font-size: 1.15rem; }

    .logo-img { width: 36px; height: 36px; }

    .nav-toggle {
        display: flex;
        order: 4;
        margin-left: 0;
    }

    .lang-switcher {
        order: 3;
        margin-left: 0;
        flex-shrink: 0;
    }

    .header-now-playing {
        order: 2;
        flex: 1;
        min-width: 0;
        max-width: none;
        gap: 4px;
    }

    .np-label {
        font-size: 0.65rem;
    }

    .logo { order: 1; min-width: 0; flex-shrink: 1; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 6, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px 16px 16px;
        border-bottom: 1px solid rgba(139, 92, 246, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        z-index: 99;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero { padding: 32px 0; min-height: auto; }

    .title-line { letter-spacing: 2px; }

    .hero-subtitle { font-size: 1rem; }

    .hero-actions { flex-direction: column; align-items: stretch; }

    .hero-actions .btn { justify-content: center; width: 100%; }

    .hero-visual { height: 180px; }

    .section { padding: 40px 0; }

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

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

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

    .chat-container { grid-template-columns: 1fr; }

    .chat-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .chat-info-card, .chat-gadget-mini { margin-bottom: 0; }

    .online-counter { grid-column: 1 / -1; }

    .chat-messages { min-height: 280px; max-height: 360px; }

    .station-links { grid-template-columns: 1fr; }

    .page-hero { padding: 32px 0 20px; }

    .page-hero h1 { letter-spacing: 1px; }

    .cta-box { padding: 40px 20px; }

    /* Player — compact mobile bar */
    .radio-player {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .player-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .player-visual { display: none; }

    .player-info { min-width: 0; }

    .player-status { display: none; }

    .player-track {
        flex-direction: row;
        gap: 0;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
    }

    .track-desktop { display: none; }

    .track-mobile {
        display: block;
        width: 100%;
    }

    .player-track-text {
        font-size: 0.8rem;
        color: var(--text);
    }

    .btn-play {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .btn-share {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .btn-share span { display: none; }

    #equalizerCanvas { display: none; }

    .volume-control { display: none; }

    body {
        padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom, 0) + 12px);
    }

    .share-toast {
        bottom: calc(var(--player-height) + env(safe-area-inset-bottom, 0) + 12px);
        left: 16px;
        right: 16px;
        transform: translateY(20px);
        text-align: center;
    }

    .share-toast.show {
        transform: translateY(0);
    }

    .footer-inner { padding: 0 8px; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 12px; align-items: center; }

    .hero-badge { font-size: 0.72rem; padding: 5px 12px; }

    .chat-sidebar { grid-template-columns: 1fr; }

    .chat-input-row { flex-wrap: wrap; }

    .chat-input-row input:first-child { flex: 1 1 100%; }

    .chat-input-row .btn { flex: 1; }

    .legend-card { flex-direction: column; text-align: center; }

    .legend-avatar { margin: 0 auto; }

    .legend-tags { justify-content: center; }

    .deep-card { padding: 20px; }

    .gadget-card { padding: 20px; }

    .player-track { font-size: 0.75rem; }
}

/* ── Touch devices ── */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .lang-btn, .btn-play, .btn-share, .btn-volume {
        min-height: 44px;
    }

    .genre-card:hover { transform: none; }

    .nav-link:active { background: rgba(139, 92, 246, 0.25); }
}
