
/* =====================================================
   SIYAH SAYFALAR FM
   PREMIUM BROADCAST EDITION
   Midnight / Platinum / Electric Blue
===================================================== */

:root {
    --radio-bg: #080b10;
    --radio-panel: #101722;
    --radio-panel-light: #172231;

    --radio-blue: #64b8ff;
    --radio-blue-light: #a1d7ff;
    --radio-blue-dark: #2879bd;

    --radio-platinum: #e3eaf1;
    --radio-white: #f5f7fa;

    --radio-muted: #8997a8;
    --radio-border: rgba(190,215,240,0.12);

    --radio-live: #ff515d;
    --radio-glow: rgba(73,163,237,0.16);
}

/* =====================================================
   PLAYER SECTION
===================================================== */

.audio-player-section {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #0b1018,
            #080b10
        );

    border-top: 1px solid rgba(180,210,240,0.08);
}

/* =====================================================
   PLAYER CONTAINER
===================================================== */

.custom-audio-player {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 820px;

    gap: 16px;
    padding: 9px 14px;

    box-sizing: border-box;

    font-family: 'Share Tech Mono', monospace;

    background:
        linear-gradient(
            110deg,
            #172231 0%,
            #111a27 45%,
            #0e1621 100%
        );

    border: 1px solid var(--radio-border);
    border-radius: 11px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.055),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 8px 28px rgba(0,0,0,0.4);
}

/* Subtle metallic highlight */

.custom-audio-player::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(210,230,255,0.18),
        transparent
    );

    pointer-events: none;
}

/* =====================================================
   PLAY / PAUSE BUTTON
===================================================== */

.play-pause {
    position: relative;
    overflow: hidden;

    width: 46px;
    min-width: 46px;
    max-width: 46px;

    height: 46px;
    min-height: 46px;

    flex: 0 0 46px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    box-sizing: border-box;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #293746,
            #141e2a
        );

    border: 1px solid rgba(200,220,240,0.2);

    color: var(--radio-platinum);

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -2px 4px rgba(0,0,0,0.4),
        0 4px 12px rgba(0,0,0,0.35);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.play-pause i {
    position: relative;
    z-index: 2;

    display: block;

    font-size: 17px;
    line-height: 1;

    color: var(--radio-platinum);

    filter: drop-shadow(
        0 1px 2px rgba(0,0,0,0.4)
    );
}

/* Hover */

.play-pause:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            145deg,
            #35495e,
            #192737
        );

    border-color: rgba(100,184,255,0.5);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.16),
        0 6px 16px rgba(0,0,0,0.4),
        0 0 12px rgba(73,163,237,0.09);
}

/* Active */

.play-pause:active {
    transform: scale(0.96);
}

/* Playing */

.play-pause.playing {
    background:
        linear-gradient(
            145deg,
            #82c9ff,
            #398acb
        );

    border-color: rgba(190,230,255,0.65);

    color: #07111d;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 5px 16px rgba(55,150,220,0.2);
}

.play-pause.playing i {
    color: #07111d;
    filter: none;
}

/* =====================================================
   PLAYING LIGHT
===================================================== */

.play-pause.playing::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.17),
        transparent 65%
    );

    pointer-events: none;
}

/* =====================================================
   LIVE INDICATOR
===================================================== */

.play-pause.playing::before {
    content: "";

    position: absolute;

    top: 5px;
    right: 5px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 7px rgba(255,255,255,0.8);

    z-index: 3;

    animation: liveDot 1.8s infinite;
}

/* =====================================================
   TRACK INFORMATION
===================================================== */

.track-info {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;

    text-align: center;

    overflow: hidden;
    white-space: nowrap;
}

#trackTitle {
    display: inline-block;

    max-width: 100%;

    color: #d5e4f2;

    font-size: 0.86rem;
    font-weight: 500;

    letter-spacing: 0.5px;

    text-shadow:
        0 0 10px rgba(100,184,255,0.12);

    animation: scrollText 18s linear infinite;
}

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

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

/* =====================================================
   VOLUME CONTROL
===================================================== */

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 0 0 auto;

    color: var(--radio-muted);

    white-space: nowrap;

    font-size: 14px;
}

.volume-control i {
    color: #a9bacb;

    transition: color 0.2s ease;
}

.volume-control:hover i {
    color: var(--radio-blue);
}

#volumeSlider {
    width: 85px;

    cursor: pointer;

    accent-color: var(--radio-blue);
}

/* =====================================================
   LIVE BADGE
===================================================== */

.live-inline {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 5px 10px;
    margin-left: auto;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #ff858c;

    background: rgba(255,81,93,0.07);

    border: 1px solid rgba(255,81,93,0.2);

    border-radius: 6px;

    white-space: nowrap;

    flex: 0 0 auto;
}

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

.eq {
    display: flex;
    align-items: flex-end;

    gap: 3px;

    height: 12px;
}

.eq span {
    width: 2px;
    height: 100%;

    background: var(--radio-blue);

    border-radius: 3px;

    transform-origin: bottom;

    animation: eqAnim 1.3s infinite ease-in-out;

    opacity: 0.9;
}

.eq span:nth-child(1) {
    animation-delay: 0s;
}

.eq span:nth-child(2) {
    animation-delay: 0.15s;
}

.eq span:nth-child(3) {
    animation-delay: 0.3s;
}

.eq span:nth-child(4) {
    animation-delay: 0.45s;
}

/* =====================================================
   ANIMATIONS
===================================================== */

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

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

@keyframes eqAnim {
    0% {
        transform: scaleY(0.35);
    }

    25% {
        transform: scaleY(0.85);
    }

    50% {
        transform: scaleY(0.45);
    }

    75% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.35);
    }
}

/* =====================================================
   FOCUS
===================================================== */

.play-pause:focus-visible,
#volumeSlider:focus-visible {
    outline: 2px solid var(--radio-blue);
    outline-offset: 4px;
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 576px) {

    .audio-player-section {
        padding: 7px 8px;
    }

    .custom-audio-player {
        gap: 9px;
        padding: 7px 9px;

        border-radius: 9px;
    }

    .play-pause {
        width: 42px;
        min-width: 42px;
        max-width: 42px;

        height: 42px;
        min-height: 42px;

        flex: 0 0 42px;

        border-radius: 9px;
    }

    .play-pause i {
        font-size: 16px;
    }

    #trackTitle {
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }

    .volume-control {
        gap: 5px;
        font-size: 12px;
    }

    #volumeSlider {
        width: 53px;
    }

    .live-inline {
        padding: 4px 7px;

        font-size: 9px;
        letter-spacing: 0.6px;

        gap: 5px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 360px) {

    .custom-audio-player {
        gap: 6px;
        padding: 6px 7px;
    }

    .play-pause {
        width: 39px;
        min-width: 39px;
        max-width: 39px;

        height: 39px;
        min-height: 39px;

        flex: 0 0 39px;
    }

    #volumeSlider {
        width: 40px;
    }

    #trackTitle {
        font-size: 0.69rem;
    }

    .live-inline {
        padding: 3px 5px;
        font-size: 8px;
    }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .play-pause,
    .play-pause.playing,
    .play-pause.playing::before,
    #trackTitle,
    .eq span,
    .live-dot {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   LIVE STATUS DOT
===================================================== */

.live-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: var(--radio-live);

    box-shadow:
        0 0 7px rgba(255,81,93,0.65);

    animation: liveDot 1.8s infinite;
}
