
/* =====================================================
   POWER FM BREDA
   WEBPLAYER X 3.0
   STYLE.CSS
===================================================== */

:root {
    color-scheme: dark;

    --bg: #050b14;
    --bg-soft: #0a1424;
    --panel: rgba(17, 31, 51, 0.88);
    --panel-hover: #172943;

    --white: #ffffff;
    --text: #f5f8ff;
    --muted: #92a5bf;

    --blue: #258fff;
    --blue-light: #69c3ff;
    --blue-soft: rgba(37, 143, 255, 0.16);

    --green: #43e68c;
    --red: #ff5b64;
    --orange: #ffc15a;

    --border: rgba(153, 190, 235, 0.13);
    --radius: 22px;
    --shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding: 34px 20px 24px;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(29, 91, 164, 0.20),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #0a1424 0%,
            var(--bg) 65%
        );

    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.background-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(28, 105, 202, 0.10),
            transparent 55%
        );
}

.player-shell {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
}

/* =====================================================
   HEADER
===================================================== */

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 5px;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1;
}

.brand-logo span {
    color: #fff;
}

.brand-logo strong {
    color: var(--blue-light);
}

.brand-subtitle {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;

    padding: 9px 12px;
    border: 1px solid rgba(67, 230, 140, 0.18);
    border-radius: 100px;

    background: rgba(67, 230, 140, 0.07);
    color: var(--green);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;
    background: currentColor;
}

.status-online .status-dot {
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 12px currentColor;
}

.status-offline {
    color: var(--red);
    border-color: rgba(255, 91, 100, 0.2);
    background: rgba(255, 91, 100, 0.07);
}

.status-connecting {
    color: var(--orange);
    border-color: rgba(255, 193, 90, 0.2);
    background: rgba(255, 193, 90, 0.07);
}

.status-stopped {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.82);
    }
}

/* =====================================================
   MAIN PLAYER
===================================================== */

.main-player {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 30px;

    background:
        linear-gradient(
            150deg,
            rgba(22, 42, 69, 0.92),
            rgba(8, 17, 30, 0.97)
        );

    box-shadow: var(--shadow);
}

.artwork-frame {
    position: relative;
    width: min(100%, 410px);
    margin: 0 auto;

    aspect-ratio: 1;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 23px;

    background: #101d30;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.artwork-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.artwork-overlay {
    position: absolute;
    right: 13px;
    bottom: 13px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;

    background: rgba(3, 9, 18, 0.77);
    color: white;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.equalizer {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 13px;
}

.equalizer i {
    display: block;
    width: 3px;
    height: 5px;
    border-radius: 3px;
    background: var(--blue-light);
}

.equalizer i:nth-child(2) {
    height: 12px;
}

.equalizer i:nth-child(3) {
    height: 8px;
}

.equalizer i:nth-child(4) {
    height: 10px;
}

.main-player.is-playing .equalizer i {
    animation: equalize 0.65s ease-in-out infinite alternate;
}

.main-player.is-playing .equalizer i:nth-child(2) {
    animation-delay: 0.2s;
}

.main-player.is-playing .equalizer i:nth-child(3) {
    animation-delay: 0.4s;
}

.main-player.is-playing .equalizer i:nth-child(4) {
    animation-delay: 0.1s;
}

@keyframes equalize {
    from {
        transform: scaleY(0.45);
    }

    to {
        transform: scaleY(1);
    }
}

/* =====================================================
   SONG INFO
===================================================== */

.song-info {
    padding: 29px 0 22px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--blue-light);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.song-info h1 {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    letter-spacing: -0.9px;
    line-height: 1.2;
}

.song-info h2 {
    margin-top: 8px;
    color: var(--muted);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.album {
    min-height: 15px;
    margin-top: 6px;

    color: var(--blue-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* =====================================================
   PLAYBACK PANEL
===================================================== */

.playback-panel {
    padding: 20px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(3, 10, 20, 0.48);
}

.playback-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#stream-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.live-indicator {
    color: var(--blue-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.controls {
    display: flex;
    justify-content: center;
    margin: 23px 0 12px;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #ffffff,
        #d9eaff
    );

    color: #07111f;
    cursor: pointer;

    box-shadow:
        0 0 0 9px rgba(37, 143, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.30);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.play-button:hover {
    transform: scale(1.045);
    box-shadow:
        0 0 0 12px rgba(37, 143, 255, 0.11),
        0 14px 32px rgba(0, 0, 0, 0.35);
}

.play-button:active {
    transform: scale(0.96);
}

.play-button:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 5px;
}

.play-button svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.play-button.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.play-hint {
    min-height: 17px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* =====================================================
   VOLUME
===================================================== */

.volume {
    display: grid;
    grid-template-columns: 20px auto minmax(60px, 1fr) 38px;
    align-items: center;
    gap: 10px;

    margin-top: 25px;
}

.volume-icon {
    color: var(--blue-light);
    font-size: 20px;
}

.volume label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.volume input {
    width: 100%;
    height: 5px;

    border-radius: 20px;
    accent-color: var(--blue);

    cursor: pointer;
}

#volume-value {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.ios-note {
    display: none;
    margin-top: 16px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

/* =====================================================
   CONTENT SECTIONS
===================================================== */

.content-section {
    margin-top: 35px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.section-heading .eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
}

.section-heading h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

/* =====================================================
   UP NEXT
===================================================== */

.next-card {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--panel);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.next-card:hover {
    background: var(--panel-hover);
    transform: translateY(-1px);
}

.next-card > img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;

    border-radius: 13px;
    object-fit: cover;
    background: var(--bg-soft);
}

.next-info {
    min-width: 0;
}

.track-label {
    margin-bottom: 7px;
    color: var(--blue-light);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.next-info h3 {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.next-info > p:last-child {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* =====================================================
   HISTORY
===================================================== */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--panel);

    transition: background 0.2s ease;
}

.history-item:hover {
    background: var(--panel-hover);
}

.history-item img {
    width: 53px;
    height: 53px;
    flex: 0 0 53px;

    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-soft);
}

.history-info {
    min-width: 0;
}

.history-title {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.history-artist {
    margin-top: 4px;
    overflow-wrap: anywhere;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.empty-state {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--panel);
    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

/* =====================================================
   FOOTER
===================================================== */

.player-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin-top: 45px;
    padding: 24px 0 10px;

    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand strong {
    color: var(--blue-light);
}

.player-footer > p {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.player-footer > a {
    margin-top: 4px;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 600;
}

.player-footer > a:hover {
    color: #ffffff;
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 600px) {
    body {
        padding: 22px 15px;
    }

    .player-header {
        margin-bottom: 25px;
    }

    .main-player {
        padding: 17px;
        border-radius: 25px;
    }

    .artwork-frame {
        border-radius: 18px;
    }

    .song-info {
        padding: 25px 0 19px;
    }

    .song-info h2 {
        font-size: 15px;
    }

    .playback-panel {
        padding: 17px 13px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

    .content-section {
        margin-top: 29px;
    }
}

/* =====================================================
   IPHONE / SMALL MOBILE
===================================================== */

@media (max-width: 420px) {
    body {
        padding: 18px 12px;
    }

    .brand-logo {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .live-badge {
        padding: 8px 9px;
        gap: 6px;
        font-size: 9px;
    }

    .main-player {
        padding: 13px;
    }

    .song-info h1 {
        font-size: 24px;
    }

    .song-info h2 {
        font-size: 14px;
    }

    .volume {
        grid-template-columns: 18px auto minmax(50px, 1fr) 34px;
        gap: 7px;
    }

    .volume label {
        font-size: 8px;
    }

    .next-card {
        gap: 12px;
        padding: 12px;
    }

    .next-card > img {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .next-info h3 {
        font-size: 13px;
    }

    .history-item img {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
    }

    .history-title {
        font-size: 12px;
    }
}

/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #263b56;
}

::-webkit-scrollbar-thumb:hover {
    background: #365779;
}
