:root {
    --navy-deep: #020a12;
    --navy-dark: #06182c;
    --navy: #0a2b49;
    --white: #ffffff;
    --soft: #c4d3df;
    --muted: #8196a7;
    --red: #db202b;
    --red-dark: #9d1119;
    --green: #28dc7a;
    --yellow: #ffca4a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy-deep);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(25, 108, 166, 0.55),
            transparent 42%
        ),
        linear-gradient(
            155deg,
            #020810,
            var(--navy-dark) 54%,
            #020810
        );
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    opacity: 0.12;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
}

button,
input {
    font: inherit;
}

.page {
    width: min(100% - 20px, 520px);
    margin: 0 auto;
    padding:
        max(18px, env(safe-area-inset-top))
        0
        max(22px, env(safe-area-inset-bottom));
}

.radio-card {
    position: relative;
    overflow: hidden;
    padding: 29px 25px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 51, 83, 0.97),
            rgba(3, 17, 31, 0.99)
        );
    box-shadow:
        0 32px 85px rgba(0, 0, 0, 0.54),
        inset 0 1px rgba(255, 255, 255, 0.09);
}

.radio-card::before {
    position: absolute;
    top: -280px;
    left: 50%;
    width: 520px;
    height: 520px;
    content: "";
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background: rgba(39, 141, 205, 0.17);
    filter: blur(35px);
}

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.logo img {
    display: block;
    width: 170px;
    max-width: 46vw;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #d8e2e9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.live-badge.online {
    color: #ffe3e5;
    border-color: rgba(255, 68, 78, 0.35);
    background: rgba(219, 32, 43, 0.17);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8395a2;
}

.live-badge.online .live-dot {
    background: #ff3e49;
    box-shadow: 0 0 0 5px rgba(255, 62, 73, 0.13);
    animation: pulse 1.5s infinite;
}

.station-info {
    position: relative;
    margin-top: 37px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #7ebce2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

h1 {
    margin: 0;
    font-size: clamp(45px, 13vw, 65px);
    line-height: 0.95;
    letter-spacing: -3px;
}

.subtitle {
    margin: 16px 0 0;
    color: #edf7fc;
    font-size: 18px;
    font-weight: 800;
}

.tagline {
    margin: 8px 0 0;
    color: var(--soft);
    font-size: 13px;
}

.equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 65px;
    margin: 17px 0 5px;
}

.equalizer span {
    width: 4px;
    height: calc(8px + (var(--i) % 5) * 3px);
    border-radius: 4px;
    opacity: 0.35;
    background:
        linear-gradient(
            to top,
            var(--red-dark),
            #ff525b
        );
}

.radio-card.playing .equalizer span {
    opacity: 1;
    animation:
        equalizer
        calc(0.45s + (var(--i) % 7) * 0.08s)
        ease-in-out
        infinite
        alternate;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 22px;
    margin-bottom: 19px;
    color: var(--soft);
    font-size: 13px;
    text-align: center;
}

.status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8294a1;
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 11px rgba(40, 220, 122, 0.6);
}

.status-dot.connecting {
    background: var(--yellow);
}

.status-dot.error {
    background: #ff4b54;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 350px);
    min-height: 61px;
    margin: 0 auto;
    padding: 15px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.7px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            #ff4c55,
            var(--red-dark)
        );
    box-shadow:
        0 17px 34px rgba(183, 14, 23, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.24);
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.play-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.play-button:disabled {
    cursor: not-allowed;
    opacity: 0.43;
    filter: grayscale(0.4);
}

.volume {
    display: grid;
    grid-template-columns: 25px 1fr 43px;
    align-items: center;
    gap: 9px;
    width: min(100%, 350px);
    margin: 23px auto 0;
    color: var(--muted);
    font-size: 12px;
}

input[type="range"] {
    width: 100%;
    margin: 0;
    cursor: pointer;
    accent-color: var(--red);
}

.audio-only {
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(100%, 350px);
    margin: 28px auto 0;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.audio-only > span {
    font-size: 25px;
}

.audio-only strong,
.audio-only small {
    display: block;
}

.audio-only strong {
    color: #edf7fc;
    font-size: 13px;
}

.audio-only small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.youtube-link {
    display: block;
    width: min(100%, 350px);
    margin: 14px auto 0;
    padding: 13px 17px;
    color: #edf7fc;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
}

.note {
    margin: 17px auto 0;
    color: #718696;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

footer {
    padding: 18px 8px 0;
    color: #667e91;
    font-size: 10px;
    text-align: center;
}

@keyframes pulse {
    50% {
        opacity: 0.4;
    }
}

@keyframes equalizer {
    from {
        height: 8px;
    }

    to {
        height: calc(23px + (var(--i) % 7) * 5px);
    }
}

@media (max-width: 480px) {
    .page {
        width: min(100% - 14px, 520px);
        padding-top: 8px;
    }

    .radio-card {
        padding: 23px 17px;
        border-radius: 23px;
    }
}

.fatwatv-logo {
    position: relative;
    display: block;
    width: 165px;
    max-width: 46vw;
    height: auto;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 9px 16px rgba(0, 0, 0, 0.30));
}


/* Penyempurnaan identitas Fatwa TV */
.header {
    min-height: 70px;
}

.fatwatv-logo {
    position: relative;
    display: block;
    width: 185px;
    max-width: 52vw;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.30));
}

.station-info {
    margin-top: 28px;
}

.station-info h1 {
    margin: 11px 0 0;
    font-size: clamp(29px, 8vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.station-info .subtitle {
    display: none;
}

@media (max-width: 480px) {
    .fatwatv-logo {
        width: 155px;
        max-width: 50vw;
        max-height: 62px;
    }

    .station-info h1 {
        font-size: clamp(27px, 8vw, 36px);
    }
}


.site-footer {
    padding: 18px 8px 0;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667e91;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.footer-brand:hover {
    opacity: 0.9;
}

.footer-brand img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 50%;
}

.footer-brand span {
    line-height: 1.3;
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 16px;
    }

    .footer-brand {
        gap: 8px;
        font-size: 11px;
    }

    .footer-brand img {
        width: 16px;
        height: 16px;
    }
}


/* =======================================================
   Identitas Perhimpunan dan Fatwa TV
   ======================================================= */

.perhimpunan-header-logo {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.station-fatwatv-logo {
    display: block;
    width: 185px;
    max-width: 67%;
    height: auto;
    max-height: 78px;
    margin: 17px auto 12px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 19px rgba(0, 0, 0, 0.28));
}

.station-info h1 {
    margin-bottom: 0;
}

.station-info .tagline {
    margin-top: 4px;
}

/* =======================================================
   Footer satu baris
   ======================================================= */

.site-footer {
    width: 100%;
    padding: 18px 2px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    white-space: nowrap;
    color: #71889a;
    font-size: clamp(8px, 2.45vw, 11px);
    line-height: 1.35;
}

.footer-links a {
    color: #71889a;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

.footer-links a:hover {
    color: #d3e1eb;
}

.footer-separator {
    color: #526b7e;
    flex: 0 0 auto;
}

@media (max-width: 480px) {
    .perhimpunan-header-logo {
        width: 48px;
        height: 48px;
    }

    .station-fatwatv-logo {
        width: 160px;
        max-width: 70%;
        margin-top: 15px;
    }

    .site-footer {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-links {
        gap: 4px;
        font-size: clamp(7.5px, 2.4vw, 10px);
        letter-spacing: -0.1px;
    }
}
