﻿:root {
    --bg: #08090d;
    --panel: #12151d;
    --panel-soft: rgba(18, 21, 29, 0.76);
    --text: #f5f7fb;
    --muted: #aeb7c7;
    --line: rgba(255, 255, 255, 0.12);
    --red: #ef3340;
    --red-dark: #bc1f2b;
    --cyan: #29d1ff;
    --gold: #ffb84d;
    --radius: 8px;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(8, 9, 13, 0.88), rgba(8, 9, 13, 0.94)),
        url("../img/radio4u-bg.jpg") center / cover fixed no-repeat,
        var(--bg);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header {
    min-height: 92vh;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, 0.95) 0%, rgba(8, 9, 13, 0.77) 43%, rgba(8, 9, 13, 0.35) 100%),
        url("../img/hero-radio.png") center / cover no-repeat;
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(0deg, var(--bg), transparent);
    pointer-events: none;
}

.nav {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--cyan));
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 0 28px rgba(239, 51, 64, 0.36);
}

.brand-logo {
    width: min(230px, 46vw);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #d9deea;
    font-size: 14px;
    font-weight: 600;
}

.nav-links i {
    width: 15px;
    color: var(--cyan);
    text-align: center;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-links .nav-panel {
    color: #fff;
    background: rgba(239, 51, 64, 0.18);
    border: 1px solid rgba(239, 51, 64, 0.35);
}

.nav-links .nav-panel:hover {
    background: rgba(239, 51, 64, 0.28);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.35);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    min-height: calc(92vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
    padding: 64px 0 130px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: #d3d9e6;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 16px 38px rgba(239, 51, 64, 0.24);
}

.btn.ghost {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.live-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(10, 12, 18, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(239, 51, 64, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(239, 51, 64, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 51, 64, 0);
    }
}

.live-card h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.live-card p {
    margin: 0 0 20px;
    color: var(--muted);
}

.on-air-widget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 16px;
    align-items: center;
    margin: 3px 0 20px;
}

.on-air-widget h2 {
    font-size: 21px;
    line-height: 1.12;
}

.on-air-widget p {
    margin-bottom: 0;
}

.on-air-widget img {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(41, 209, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.custom-player {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(41, 209, 255, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(41, 209, 255, 0.12), rgba(239, 51, 64, 0.09)),
        rgba(255, 255, 255, 0.06);
}

.play-toggle {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 12px 34px rgba(239, 51, 64, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 42px rgba(239, 51, 64, 0.42);
}

.play-toggle i {
    margin-left: 2px;
    font-size: 18px;
}

.custom-player.is-playing .play-toggle i {
    margin-left: 0;
}

.player-meta {
    min-width: 0;
}

.player-meta span {
    display: block;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.player-meta strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
}

.stream-meter {
    height: 22px;
    display: flex;
    align-items: end;
    gap: 4px;
    margin-top: 11px;
}

.stream-meter span {
    width: 5px;
    height: 8px;
    border-radius: 99px;
    background: var(--cyan);
    opacity: 0.45;
}

.custom-player.is-playing .stream-meter span {
    animation: streamBars 1s ease-in-out infinite;
}

.custom-player.is-playing .stream-meter span:nth-child(2) {
    animation-delay: 0.12s;
}

.custom-player.is-playing .stream-meter span:nth-child(3) {
    animation-delay: 0.24s;
}

.custom-player.is-playing .stream-meter span:nth-child(4) {
    animation-delay: 0.36s;
}

@keyframes streamBars {
    0%,
    100% {
        height: 7px;
        opacity: 0.42;
    }
    50% {
        height: 21px;
        opacity: 1;
    }
}

.sr-only {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.now-playing {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.now-playing span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.now-playing strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.player-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.player-icons a {
    min-height: 72px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #eef3ff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #eef3ff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px;
    font-weight: 800;
}

.player-icons a:hover,
.contact-links a:hover {
    border-color: rgba(41, 209, 255, 0.55);
    background: rgba(41, 209, 255, 0.12);
}

.player-icons img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-links img {
    width: auto;
    height: 22px;
    max-width: 112px;
    object-fit: contain;
}

.contact-links a:last-child img {
    height: 28px;
    max-width: 94px;
}

.section {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.quick-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding-top: 0;
    position: relative;
    z-index: 4;
}

.quick-bar div {
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.quick-bar span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 24px;
    font-weight: 800;
}

.quick-bar i {
    width: 26px;
    color: var(--cyan);
    text-align: center;
}

.quick-bar .gg-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.quick-bar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.two-column {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
    align-items: start;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.02;
}

.section-heading.compact {
    max-width: 640px;
    margin-bottom: 28px;
}

.schedule-list {
    display: grid;
    gap: 12px;
}

.schedule-list article {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.schedule-list time {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(41, 209, 255, 0.28);
    border-radius: 50%;
    background: rgba(41, 209, 255, 0.08);
    color: var(--cyan);
    font-weight: 800;
    font-size: 22px;
}

.schedule-list time .gg-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.schedule-list h3,
.card h3,
.presenter-grid h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.schedule-list p,
.card p,
.presenter-grid p,
.contact p {
    margin: 0;
    color: var(--muted);
}

.gg-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 184, 77, 0.28);
    border-radius: var(--radius);
    color: #fff;
    background: rgba(255, 184, 77, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.gg-status:hover {
    border-color: rgba(255, 184, 77, 0.52);
    background: rgba(255, 184, 77, 0.14);
}

.gg-status img {
    height: 22px;
    width: auto;
    display: block;
    border: 0;
}

.contact-links .gg-status {
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card,
.presenter-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--panel);
}

.card-link {
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 209, 255, 0.46);
    background: rgba(18, 21, 29, 0.92);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--cyan));
    font-weight: 800;
}

.card-icon i,
.avatar i {
    font-size: 18px;
}

.presenter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--cyan), var(--red));
    color: #fff;
    font-weight: 800;
}

.contact {
    max-width: 820px;
    border-top: 1px solid var(--line);
}

.contact h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.site-footer {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.radio-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 22px;
}

.radio-modal.is-open {
    display: grid;
}

.radio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 8, 0.78);
    backdrop-filter: blur(10px);
}

.radio-dialog {
    width: min(780px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(41, 209, 255, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(41, 209, 255, 0.12), rgba(239, 51, 64, 0.1)),
        #0a0d14;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.radio-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.radio-dialog-header .eyebrow {
    margin-bottom: 5px;
}

.radio-dialog-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.radio-modal-close {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.radio-modal-close:hover {
    border-color: rgba(239, 51, 64, 0.5);
    background: rgba(239, 51, 64, 0.18);
}

.radio-frame-wrap {
    height: min(650px, calc(100vh - 146px));
    min-height: 430px;
    background: #05070b;
}

.radio-frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
}

@media (max-width: 880px) {
    .nav {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(8, 9, 13, 0.96);
        box-shadow: var(--shadow);
    }

    .nav.is-open .nav-links {
        display: flex;
    }

    .hero,
    .two-column,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 34px;
        padding: 48px 0 104px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .quick-bar,
    .cards,
    .presenter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .site-header {
        min-height: auto;
        background-position: 63% center;
    }

    .brand-logo {
        width: min(185px, 58vw);
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .live-card {
        padding: 20px;
    }

    .on-air-widget {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .on-air-widget img {
        width: 82px;
        height: 82px;
    }

    .quick-bar,
    .cards,
    .presenter-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .schedule-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-footer {
        flex-direction: column;
    }

    .radio-modal {
        padding: 12px;
    }

    .radio-dialog {
        max-height: calc(100vh - 24px);
    }

    .radio-dialog-header {
        padding: 14px;
    }

    .radio-frame-wrap {
        height: calc(100vh - 118px);
        min-height: 360px;
    }
}

