/* =====================================================
   SCOTT PRICE MEDIA — DIGITAL INTERNET RADIO V2
===================================================== */

.sp-radio {
    --accent: #d8c94a;
    --accent-rgb: 216, 201, 74;

    position: relative;
    max-width: 1450px;
    margin: 40px auto;
    padding: 22px;
    border-radius: 32px;
    background:
        linear-gradient(145deg, #45494b 0%, #16191b 15%, #050607 50%, #25292b 100%);
    border: 2px solid #555;
    box-shadow:
        0 30px 55px rgba(0, 0, 0, .65),
        inset 0 2px 2px rgba(255, 255, 255, .18),
        inset 0 -5px 15px rgba(0, 0, 0, .9);
    overflow: hidden;
}

/* Glossy reflection */
.sp-radio::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 5%;
    width: 90%;
    height: 55%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .12) 0%,
        rgba(255, 255, 255, .03) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.radio-inner {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, #15191b 0%, #020303 45%, #111416 100%);
    border: 2px solid #292d2f;
    box-shadow:
        inset 0 3px 10px rgba(255, 255, 255, .06),
        inset 0 -6px 15px #000,
        0 8px 18px rgba(0, 0, 0, .65);
}


/* =====================================================
   BRANDING
===================================================== */

.radio-brand {
    color: #dedede;
    font-size: clamp(1.3rem, 3vw, 2.3rem);
    font-weight: 800;
    font-family: "Orbitron", sans-serif;
    letter-spacing: .22rem;
    text-shadow: 0 3px 6px #000;
}

.radio-model {
    color: #777;
    font-size: .68rem;
    font-family: "Orbitron", sans-serif;
    letter-spacing: .18rem;
}


/* =====================================================
   DIGITAL DISPLAY
===================================================== */

.radio-display {
    position: relative;
    min-height: 190px;
    padding: 20px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #1a211d 0%, #060a08 22%, #000 75%, #111713 100%);
    border: 2px solid #29302c;
    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, .95),
        inset 0 2px 4px rgba(255, 255, 255, .04),
        0 0 15px #000;
    overflow: hidden;
}

.radio-display::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .08;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, .3) 4px
    );
}

.radio-display::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-rgb), .05),
        transparent 70%
    );
    pointer-events: none;
}


/* =====================================================
   STATION ARTWORK
===================================================== */

.station-artwork {
    position: relative;
    z-index: 2;
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #080909;
    border: 2px solid #333;
    box-shadow:
        inset 0 0 15px #000,
        0 0 8px rgba(255, 255, 255, .05);
}

.station-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s ease;
}


/* =====================================================
   DIGITAL DISPLAY TEXT
===================================================== */

.station-label {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-family: "Orbitron", sans-serif;
    font-size: .68rem;
    letter-spacing: .2rem;
    opacity: .85;
}

.station-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    margin: 14px 0 10px;
}

.station-name {
    display: inline-block;
    color: var(--accent);
    font-family: "Share Tech Mono", monospace;
    font-size: clamp(1.7rem, 4vw, 3.7rem);
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow:
        0 0 5px rgba(var(--accent-rgb), .7),
        0 0 15px rgba(var(--accent-rgb), .35);
    white-space: nowrap;
}

.station-name.scrolling {
    padding-left: 100%;
    animation: stationScroll 12s linear infinite;
}

@keyframes stationScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* =====================================================
   NOW PLAYING LED
===================================================== */

.now-playing {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-family: "Orbitron", sans-serif;
    font-size: .65rem;
    letter-spacing: .12rem;
    margin-top: 8px;
}

.live-led {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #333;
}

.radio-on .live-led {
    background: #ff3030;
    box-shadow: 0 0 8px #ff3030;
    animation: ledPulse 1.3s infinite;
}

@keyframes ledPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.8);
    }
}


/* =====================================================
   ANIMATED EQUALIZER
===================================================== */

.equalizer {
    position: relative;
    z-index: 2;
    height: 42px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 12px;
}

.eq-bar {
    width: 7px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(var(--accent-rgb), .7);
    border-radius: 2px 2px 0 0;
}

.radio-on .eq-bar {
    animation: equalizer .8s ease-in-out infinite alternate;
}

.radio-on .eq-bar:nth-child(2n) {
    animation-duration: .55s;
}

.radio-on .eq-bar:nth-child(3n) {
    animation-duration: 1.1s;
}

.radio-on .eq-bar:nth-child(4n) {
    animation-duration: .7s;
}

@keyframes equalizer {
    0% {
        height: 6px;
    }

    100% {
        height: 42px;
    }
}


/* =====================================================
   RADIO BUTTONS
===================================================== */

.radio-btn {
    min-height: 58px;
    color: var(--accent);
    font-family: "Orbitron", sans-serif;
    background:
        linear-gradient(145deg, #303436 0%, #090b0c 48%, #1a1d1f 100%);
    border: 1px solid #454a4c;
    border-radius: 6px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .12),
        inset 0 -4px 6px #000,
        0 3px 5px rgba(0, 0, 0, .8);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(var(--accent-rgb), .6);
    transition: all .15s ease;
}

.radio-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow:
        0 0 12px rgba(var(--accent-rgb), .35),
        inset 0 1px 2px rgba(255, 255, 255, .12);
}

.radio-btn:active,
.radio-btn.active {
    transform: translateY(2px);
    color: #fff;
    background: #030404;
    box-shadow:
        inset 0 3px 9px #000,
        0 0 10px rgba(var(--accent-rgb), .45);
}

.preset-btn {
    font-size: 1.25rem;
}


/* =====================================================
   POWER BUTTON
===================================================== */

.power-btn {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.8rem;
    background:
        radial-gradient(circle at 35% 30%, #3e4446, #111415 45%, #000 76%);
    border: 3px solid #363a3c;
    box-shadow:
        inset 0 3px 5px rgba(255, 255, 255, .13),
        inset 0 -5px 8px #000,
        0 5px 12px #000;
    transition: all .2s ease;
}

.power-btn.on {
    box-shadow:
        0 0 20px rgba(var(--accent-rgb), .5),
        inset 0 3px 5px rgba(255, 255, 255, .13),
        inset 0 -5px 8px #000;
}


/* =====================================================
   VOLUME KNOB
===================================================== */

.volume-section {
    text-align: center;
}

.volume-label {
    color: var(--accent);
    font-family: "Orbitron", sans-serif;
    font-size: .6rem;
    letter-spacing: .12rem;
    margin-bottom: 6px;
}

.volume-knob {
    position: relative;
    width: 78px;
    height: 78px;
    margin: auto;
    border-radius: 50%;
    cursor: pointer;
    background:
        radial-gradient(circle at 35% 30%, #4b5153, #1b1e20 45%, #050606 72%);
    border: 3px solid #3c4143;
    box-shadow:
        inset 0 4px 7px rgba(255, 255, 255, .13),
        inset 0 -5px 9px #000,
        0 5px 10px #000;
}

.volume-indicator {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(var(--accent-rgb), .8);
    transform-origin: 50% 32px;
    transform: translateX(-50%) rotate(-135deg);
    transition: transform .15s ease;
}

.volume-slider {
    width: 85px;
    cursor: pointer;
}


/* =====================================================
   COLOR SELECTOR
===================================================== */

.color-selector {
    background: #050606;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
}

.color-dot {
    width: 21px;
    height: 21px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}

.color-dot:hover,
.color-dot.selected {
    transform: scale(1.2);
    border-color: #fff;
}

.color-gold {
    background: #d8c94a;
}

.color-red {
    background: #e34242;
}

.color-blue {
    background: #29a8ff;
}

.color-green {
    background: #35d07f;
}

.color-purple {
    background: #a855f7;
}


/* =====================================================
   FOOTER
===================================================== */

.radio-footer-accent {
    color: var(--accent);
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 767px) {

    .sp-radio {
        padding: 10px;
        border-radius: 20px;
    }

    .radio-inner {
        padding: 14px;
    }

    .radio-display {
        min-height: auto;
    }

    .station-artwork {
        width: 85px;
        height: 85px;
    }

    .station-name {
        font-size: 1.5rem;
    }

    .power-btn {
        width: 62px;
        height: 62px;
        font-size: 1.4rem;
    }

    .volume-section {
        margin-top: 10px;
    }
}


/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .radio-on .eq-bar,
    .radio-on .live-led,
    .station-name.scrolling {
        animation: none;
    }
}