/* ============================================
   RRIDDL.com - Retro Vaporwave Music Portal
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0F0A1A;
    --bg-secondary: #1A0B2E;
    --gradient-start: #D946EF;
    --gradient-mid: #8B5CF6;
    --gradient-end: #06B6D4;
    --accent-warm: #FB7185;
    --accent-neon: #39FF14;
    --text-primary: #E8DEFC;
    --text-secondary: #9F8AB8;
    --surface: #2A1F3D;

    --font-display: 'Bungee Shade', cursive;
    --font-nav: 'Audiowide', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --font-mono: 'VT323', monospace;

    --panel-count: 8;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    height: 100%;
    overflow: hidden;
}

/* --- CRT Scan Lines --- */
#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1000;
}

/* --- Glitch Overlay --- */
#glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    mix-blend-mode: screen;
}

#glitch-overlay.active {
    opacity: 1;
}

/* --- Horizontal Scroll Container --- */
#horizontal-scroll {
    display: flex;
    width: calc(100vw * var(--panel-count));
    height: 100vh;
    overflow: visible;
    transition: transform 0.05s linear;
}

/* --- Panel Base --- */
.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Cassette tape grid pattern background */
.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 4px,
        transparent 4px,
        transparent 6px
    ),
    repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 6px,
        transparent 6px,
        transparent 8px
    );
    pointer-events: none;
    z-index: 0;
}

/* Panel ambient glows */
#panel-tuning { background: var(--bg-primary); }
#panel-tuning::before { background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%); }

#panel-featured { background: var(--bg-secondary); }
#panel-featured::before { background: radial-gradient(ellipse at 30% 70%, rgba(217, 70, 239, 0.12) 0%, transparent 70%); }

#panel-discover { background: var(--bg-primary); }
#panel-discover::before { background: radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 70%); }

#panel-artists { background: var(--bg-secondary); }
#panel-artists::before { background: radial-gradient(ellipse at 40% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 70%); }

#panel-mixtapes { background: var(--bg-primary); }
#panel-mixtapes::before { background: radial-gradient(ellipse at 60% 40%, rgba(251, 113, 133, 0.1) 0%, transparent 70%); }

#panel-schedule { background: var(--bg-secondary); }
#panel-schedule::before { background: radial-gradient(ellipse at 20% 80%, rgba(217, 70, 239, 0.12) 0%, transparent 70%); }

#panel-about { background: var(--bg-primary); }
#panel-about::before { background: radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 70%); }

#panel-signoff { background: var(--bg-secondary); }
#panel-signoff::before { background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 60%); }

/* --- Frequency Bar --- */
.frequency-bar {
    position: relative;
    z-index: 10;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, rgba(6, 182, 212, 0.15) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    gap: 16px;
}

.freq-label {
    font-family: var(--font-nav);
    font-size: clamp(0.875rem, 1.5vw, 1.25rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 8px currentColor;
    color: var(--text-primary);
    white-space: nowrap;
}

.freq-number {
    font-family: var(--font-mono);
    color: var(--accent-neon);
    font-size: 1.1em;
}

.waveform {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.waveform svg {
    width: 100%;
    height: 36px;
}

.waveform-bars rect {
    animation: waveformPulse 2s ease-in-out infinite;
}

@keyframes waveformPulse {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.panel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-warm);
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-warm);
}

/* --- Panel Content --- */
.panel-content {
    flex: 1;
    position: relative;
    z-index: 5;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Tuning Panel --- */
.tuning-content {
    flex-direction: column;
    gap: 40px;
}

.tuning-title {
    text-align: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    background: linear-gradient(135deg, #D946EF 0%, #8B5CF6 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tuning-subtitle {
    font-family: var(--font-nav);
    font-size: clamp(0.875rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 8px;
}

.tuning-dial-container {
    width: min(90vw, 800px);
    position: relative;
}

.dial-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    margin-bottom: 12px;
}

.dial-labels span {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1vw, 1rem);
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.dial-labels span.active-freq {
    color: var(--accent-neon);
    opacity: 1;
    text-shadow: 0 0 8px var(--accent-neon);
}

.dial-track {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(139, 92, 246, 0.15) 40%, rgba(6, 182, 212, 0.2) 100%);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dial-ticks {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.dial-tick {
    position: absolute;
    width: 1px;
    background: rgba(232, 222, 252, 0.2);
    top: 25%;
    height: 50%;
}

.dial-tick.major {
    height: 70%;
    top: 15%;
    background: rgba(232, 222, 252, 0.4);
}

.dial-needle {
    position: absolute;
    top: -4px;
    width: 4px;
    height: calc(100% + 8px);
    background: var(--accent-warm);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent-warm), 0 0 24px rgba(251, 113, 133, 0.5);
    left: 20px;
    transition: left 0.05s linear;
    z-index: 5;
}

.station-label {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-nav);
    font-size: clamp(0.875rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
    min-height: 1.5em;
}

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: staticShift 0.1s steps(3) infinite;
}

@keyframes staticShift {
    0% { background-position: 0 0; }
    33% { background-position: 50px -30px; }
    66% { background-position: -20px 60px; }
    100% { background-position: 0 0; }
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    gap: 2px;
    width: min(90vw, 1000px);
    height: min(70vh, 600px);
    background: linear-gradient(135deg, #D946EF, #06B6D4);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
}

/* Different bento layouts per panel */
.bento-featured {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
}

.bento-featured .cell-2x2 { grid-row: 1 / 3; grid-column: 1 / 2; }
.bento-featured .cell-2x1 { grid-column: 2 / 4; }
.bento-featured .cell-1x2 { grid-row: 2 / 4; grid-column: 1 / 2; }

.bento-discover {
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.bento-discover .cell-2x1 { grid-column: 1 / 3; }
.bento-discover .cell-1x2 { grid-row: 2 / 4; grid-column: 3 / 4; }

.bento-artists {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto repeat(2, 1fr);
}

.bento-artists .cell-2x1:first-child { grid-column: 1 / 3; }
.bento-artists .cell-2x1:nth-child(6) { grid-column: 1 / 3; }

.bento-mixtapes {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
}

.bento-mixtapes .cell-2x2 { grid-row: 1 / 3; grid-column: 1 / 2; }
.bento-mixtapes .cell-1x2 { grid-row: 2 / 4; grid-column: 3 / 4; }
.bento-mixtapes .cell-2x1:last-child { grid-column: 1 / 3; }

.bento-schedule {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto repeat(2, 1fr);
}

.bento-schedule .cell-2x1:first-child { grid-column: 1 / 3; }
.bento-schedule .cell-2x1:nth-child(6) { grid-column: 1 / 3; }

.bento-about {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 2fr 1fr;
}

.bento-about .cell-2x2 { grid-row: 1 / 3; grid-column: 1 / 2; }
.bento-about .cell-2x1 { grid-column: 2 / 4; }

/* --- Bento Cell --- */
.bento-cell {
    background: var(--bg-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    /* Morph animation initial state */
    opacity: 0;
    transform: scale(0.5);
    border-radius: 50%;
}

.bento-cell.revealed {
    opacity: 1;
    transform: scale(1);
    border-radius: 4px;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.bento-cell.revealed:hover {
    border-radius: 4px;
}

/* Alternate cell backgrounds */
.bento-cell:nth-child(even) {
    background: var(--bg-secondary);
}

/* --- Cell Content Styles --- */
.cell-label {
    font-family: var(--font-nav);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 8px;
}

.cell-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
    background: linear-gradient(135deg, #D946EF 0%, #8B5CF6 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.cell-heading {
    font-family: var(--font-nav);
    font-size: clamp(0.875rem, 1.5vw, 1.1rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gradient-start);
    margin-bottom: 12px;
    text-shadow: 0 0 8px currentColor;
}

.cell-meta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cell-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: 8px;
}

.cell-icon svg {
    width: 40px;
    height: 40px;
}

.track-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--accent-neon);
    text-shadow: 0 0 12px var(--accent-neon);
}

.vt323 {
    font-family: var(--font-mono);
    color: var(--accent-neon);
}

.time-display {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- Track Lists --- */
.track-list, .mixtape-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-list li, .mixtape-list li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.track-list li .vt323, .mixtape-list li .vt323 {
    font-size: 1rem;
    min-width: 40px;
}

.mixtape-list .active-tape {
    color: var(--accent-warm);
    border-bottom-color: rgba(251, 113, 133, 0.3);
}

/* --- Genre Tags --- */
.genre-tag {
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid var(--gradient-mid);
    border-radius: 20px;
    color: var(--gradient-mid);
    margin: 4px 0;
}

/* --- Vinyl Art (Abstract Album Covers) --- */
.vinyl-art {
    width: 100%;
    aspect-ratio: 1;
    max-width: 200px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.vinyl-art::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.03),
        0 0 0 16px rgba(255, 255, 255, 0.02),
        0 0 0 24px rgba(255, 255, 255, 0.01);
}

.vinyl-art-1 { background: linear-gradient(135deg, #D946EF, #0F0A1A 50%, #06B6D4); }
.vinyl-art-2 { background: linear-gradient(45deg, #8B5CF6, #0F0A1A 50%, #FB7185); }
.vinyl-art-3 { background: linear-gradient(180deg, #06B6D4, #0F0A1A 50%, #D946EF); }
.vinyl-art-4 { background: linear-gradient(225deg, #FB7185, #0F0A1A 50%, #8B5CF6); }

/* --- Vinyl Records --- */
.vinyl-record-small,
.vinyl-record-large {
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        from 0deg,
        #1A0B2E 0deg,
        #2A1F3D 20deg,
        #1A0B2E 40deg,
        #2A1F3D 60deg,
        #1A0B2E 80deg,
        #2A1F3D 100deg,
        #1A0B2E 120deg,
        #2A1F3D 140deg,
        #1A0B2E 160deg,
        #2A1F3D 180deg,
        #1A0B2E 200deg,
        #2A1F3D 220deg,
        #1A0B2E 240deg,
        #2A1F3D 260deg,
        #1A0B2E 280deg,
        #2A1F3D 300deg,
        #1A0B2E 320deg,
        #2A1F3D 340deg,
        #1A0B2E 360deg
    );
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.vinyl-record-small {
    width: 60px;
    height: 60px;
}

.vinyl-record-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D946EF, #8B5CF6, #06B6D4);
}

.vinyl-record-large {
    width: 100px;
    height: 100px;
}

.vinyl-record-large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D946EF, #8B5CF6, #06B6D4);
}

.rotating {
    animation: vinylSpin 33.3s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- EQ Bars --- */
.eq-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
}

.eq-bars span {
    width: 6px;
    background: linear-gradient(to top, #D946EF, #06B6D4);
    border-radius: 2px;
    animation: eqBounce 1s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 80%; animation-delay: 0.1s; }
.eq-bars span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.eq-bars span:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.eq-bars span:nth-child(5) { height: 50%; animation-delay: 0.4s; }

@keyframes eqBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* --- Artist Cells --- */
.artist-cell {
    align-items: center;
    text-align: center;
}

.artist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.artist-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* --- Schedule Cells --- */
.schedule-cell {
    text-align: center;
}

.schedule-time {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-neon);
    text-shadow: 0 0 12px var(--accent-neon);
    margin-bottom: 8px;
}

.schedule-show {
    font-family: var(--font-nav);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* --- Live Indicator --- */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-warm);
    box-shadow: 0 0 8px var(--accent-warm);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-text {
    font-family: var(--font-nav);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-warm);
    text-shadow: 0 0 8px var(--accent-warm);
}

.now-playing-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #FB7185, #D946EF, #8B5CF6);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.now-playing-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(to right, #FB7185, #D946EF);
    border-radius: 2px;
    animation: nowPlayingProgress 12s linear infinite;
}

@keyframes nowPlayingProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* --- Cassette Art --- */
.cassette-art {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.cassette-body {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

.cassette-window {
    background: rgba(15, 10, 26, 0.8);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cassette-reel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--gradient-mid);
    position: relative;
    animation: reelSpin 4s linear infinite;
}

.cassette-reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--gradient-mid);
}

@keyframes reelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cassette-label {
    text-align: center;
}

.cassette-label .vt323 {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.cassette-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* --- Tape Counter Display --- */
.tape-counter-display {
    text-align: center;
}

.counter-big {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    color: var(--accent-neon);
    text-shadow: 0 0 16px var(--accent-neon);
}

/* --- Stat Displays --- */
.stat-display {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 0 12px var(--accent-neon);
}

/* --- Waveform Mini --- */
.waveform-mini {
    width: 100%;
    height: 40px;
}

.waveform-mini svg {
    width: 100%;
    height: 100%;
}

/* --- Sign-off Panel --- */
.signoff-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.signoff-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    background: linear-gradient(135deg, #D946EF 0%, #8B5CF6 40%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.signoff-message {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.signoff-counter {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-neon);
    text-shadow: 0 0 12px var(--accent-neon);
}

/* --- Vinyl Record Hero (Sign-off) --- */
.vinyl-record-hero {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: vinylSpin 33.3s linear infinite;
}

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #1A0B2E 0deg,
        #2A1F3D 10deg,
        #1A0B2E 20deg,
        #2A1F3D 30deg,
        #1A0B2E 40deg,
        #2A1F3D 50deg,
        #1A0B2E 60deg,
        #2A1F3D 70deg,
        #1A0B2E 80deg,
        #2A1F3D 90deg,
        #1A0B2E 100deg,
        #2A1F3D 110deg,
        #1A0B2E 120deg,
        #2A1F3D 130deg,
        #1A0B2E 140deg,
        #2A1F3D 150deg,
        #1A0B2E 160deg,
        #2A1F3D 170deg,
        #1A0B2E 180deg,
        #2A1F3D 190deg,
        #1A0B2E 200deg,
        #2A1F3D 210deg,
        #1A0B2E 220deg,
        #2A1F3D 230deg,
        #1A0B2E 240deg,
        #2A1F3D 250deg,
        #1A0B2E 260deg,
        #2A1F3D 270deg,
        #1A0B2E 280deg,
        #2A1F3D 290deg,
        #1A0B2E 300deg,
        #2A1F3D 310deg,
        #1A0B2E 320deg,
        #2A1F3D 330deg,
        #1A0B2E 340deg,
        #2A1F3D 350deg,
        #1A0B2E 360deg
    );
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        inset 0 0 30px rgba(139, 92, 246, 0.1),
        0 0 40px rgba(139, 92, 246, 0.2);
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D946EF, #8B5CF6, #06B6D4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.vinyl-label .vt323 {
    font-size: 0.7rem;
    color: #0F0A1A;
    letter-spacing: 0.1em;
}

/* --- Bottom Bar (Timeline) --- */
#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(15, 10, 26, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 500;
    gap: 16px;
}

#bottom-dial-track {
    flex: 1;
    height: 12px;
    background: rgba(42, 31, 61, 0.8);
    border-radius: 6px;
    position: relative;
}

#bottom-dial-ticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.bottom-tick {
    position: absolute;
    width: 1px;
    height: 8px;
    background: rgba(232, 222, 252, 0.2);
}

.bottom-tick.major {
    height: 12px;
    background: rgba(232, 222, 252, 0.4);
}

#bottom-dial-needle {
    position: absolute;
    top: -2px;
    width: 3px;
    height: calc(100% + 4px);
    background: var(--accent-warm);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-warm);
    left: 0;
    transition: left 0.3s ease;
}

#tape-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-label {
    font-family: var(--font-nav);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

#counter-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-neon);
    text-shadow: 0 0 8px var(--accent-neon);
    min-width: 40px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        height: auto;
        min-height: 70vh;
    }

    .bento-cell.cell-2x2,
    .bento-cell.cell-2x1,
    .bento-cell.cell-1x2 {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .tuning-dial-container {
        width: 95vw;
    }

    .logo-text {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .panel-content {
        padding: 12px;
    }
}
