/* FAST public visual system. System fonts only. */
:root {
    color-scheme: dark;
    --bg: #07090f;
    --bg-elev: #10151d;
    --card: #141b26;
    --border: rgba(244, 247, 251, 0.12);
    --text: #f4f7fb;
    --muted: #c5d0de;
    --accent: #9ae6ff;
    --accent-strong: #e7f8ff;
    --ink: #071018;
    --live: #ff5a5a;
    --focus: #9ae6ff;
    --radius: 20px;
    --max: 1120px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
    margin: 0;
    min-width: 0;
    overflow-x: clip;
    font-family: var(--font);
    background:
        radial-gradient(1200px 520px at 80% -10%, rgba(47, 107, 196, 0.28), transparent 60%),
        radial-gradient(900px 420px at -10% 20%, rgba(255, 90, 90, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }
video { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.container {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    min-width: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 9, 15, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    min-height: 4.25rem;
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.92rem;
    text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-mark {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.38rem;
    background: #e9fbff;
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.36rem;
    border-style: solid;
    border-width: 0.32rem 0 0.32rem 0.52rem;
    border-color: transparent transparent transparent var(--ink);
}

.header-actions, header nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

a.btn-primary,
.btn-primary {
    background: #e9fbff;
    color: var(--ink);
}

a.btn-primary:hover,
.btn-primary:hover {
    background: #ffffff;
    color: var(--ink);
}

a.btn-ghost,
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(244, 247, 251, 0.22);
}

a.btn-ghost:hover,
.btn-ghost:hover {
    background: rgba(244, 247, 251, 0.06);
    color: var(--text);
}

.hero {
    position: relative;
    padding: 4.25rem 0 3.25rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero h1 {
    margin: 0 0 1rem;
    max-width: 14ch;
    font-size: clamp(2.2rem, 4.8vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
}

.hero p {
    max-width: 36rem;
    margin: 0 0 1.6rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-stage { min-width: 0; }

.hero-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(244, 247, 251, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 9, 15, 0.05), rgba(7, 9, 15, 0.55)),
        linear-gradient(125deg, #1d4f8a 0%, #121a27 48%, #3d2434 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-live {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 6px rgba(255, 90, 90, 0.2);
}

.hero-screen::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 28%;
    bottom: 1.15rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.88);
    box-shadow:
        0 0.72rem 0 rgba(244, 247, 251, 0.38),
        0 1.44rem 0 rgba(244, 247, 251, 0.18);
}

.home-page main section { padding: 0.25rem 0 3.25rem; }

.home-page section h2 {
    margin: 0 0 1.15rem;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    letter-spacing: -0.03em;
}

.channels-grid,
.features {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.channels-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.channel-card,
.feature,
.legal-card,
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
}

.channel-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #121822;
}

.channel-plate {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(180deg, rgba(7, 9, 15, 0.02), rgba(7, 9, 15, 0.4)),
        linear-gradient(140deg, #1a4b7c, #101820 60%, #3a2230);
}

.channel-logo {
    position: relative;
    z-index: 1;
    display: block;
    height: auto;
    max-height: 46%;
    width: auto;
    object-fit: contain;
}

.channel-plate-mark {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: #f4f7fb;
}

.channel-plate-mark::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 0.7rem;
    border-style: solid;
    border-width: 0.42rem 0 0.42rem 0.68rem;
    border-color: transparent transparent transparent var(--ink);
}

.channel-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.1rem;
    flex: 1;
}

.channel-card h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.02em; overflow-wrap: break-word; }
.channel-card .now-playing { margin: 0; color: var(--muted); font-size: 0.95rem; }

.status {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #243044;
    color: #e8eef6;
}

.status-running,
.status-live {
    background: #3d171c;
    color: #ffd0d0;
}

a.channel-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: fit-content;
    max-width: 100%;
    min-height: 2.6rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #f4f7fb;
    color: var(--ink);
    font-weight: 700;
}

a.channel-watch:hover { background: #ffffff; color: var(--ink); }

.empty {
    color: var(--muted);
    padding: 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.feature {
    padding: 1.35rem 1.25rem 1.45rem;
    min-height: 220px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
        var(--card);
}

.feature::before {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin-bottom: 1.6rem;
    border-radius: 999px;
    background: #9ae6ff;
}

.feature:nth-child(2)::before { background: #ffb4b4; }
.feature:nth-child(3)::before { background: #d8c7ff; }

.feature h3 { margin: 0 0 0.55rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.player-page main {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.75rem 0 2.75rem;
    min-width: 0;
}

.player-page header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 247, 251, 0.22);
    color: var(--text);
    font-size: 0.92rem;
}

.player-page header nav a:hover { color: var(--text); background: rgba(244, 247, 251, 0.06); }

.page-header { margin-bottom: 1rem; }
.page-title-row { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.page-channel-logo { max-height: 48px; width: auto; object-fit: contain; }
.player-page h1 { margin: 0 0 0.35rem; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; overflow-wrap: break-word; }

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 22px;
    border: 1px solid rgba(244, 247, 251, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.player-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-logo { position: absolute; z-index: 2; height: auto; object-fit: contain; pointer-events: none; }
.player-logo--top-left { top: 10px; left: 10px; }
.player-logo--top-right { top: 10px; right: 10px; }
.player-logo--bottom-left { bottom: 10px; left: 10px; }
.player-logo--bottom-right { bottom: 10px; right: 10px; }

.meta {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.card { padding: 1.1rem 1.15rem 1.2rem; }
.card h2 {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.card p { margin: 0; }
.card .description { margin-top: 0.55rem; color: var(--muted); }

.links { margin-top: 1rem; font-size: 0.95rem; }
.links a { color: var(--accent); }

.legal-page main { padding: 2.75rem 0 3.5rem; }
.legal-page main .container { width: min(760px, calc(100% - 2.5rem)); }
.legal-page h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -0.03em; }
.legal-page .updated { color: var(--muted); font-size: 0.98rem; font-style: italic; margin: 0 0 1.5rem; }
.legal-card { padding: 1.4rem 1.35rem 1.5rem; }
.legal-card h2 { margin: 1.75rem 0 0.75rem; font-size: 1.15rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; color: var(--muted); }
.legal-card p { margin: 0 0 0.75rem; }
.legal-card address { font-style: normal; }

footer {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    background: #05070b;
    padding: 2.25rem 0 1.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
    min-width: 0;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.footer-logo { display: block; height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.footer-copyright { font-size: 0.88rem; overflow-wrap: anywhere; }
.footer-links { display: flex; gap: 0.35rem 1.1rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #e7edf5; }
.footer-links a:hover { color: #ffffff; }
.footer-cookie-link {
    background: none;
    border: none;
    padding: 0.35rem 0;
    font: inherit;
    color: #e7edf5;
    cursor: pointer;
}
.footer-cookie-link:hover { color: #ffffff; }

@media (max-width: 860px) {
    .hero { padding: 2.4rem 0 2rem; }
    .hero-grid, .features, .meta { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { max-width: none; font-size: 2.15rem; }
    .container, .header-inner, .player-page main, .legal-page main .container {
        width: min(100% - 2rem, var(--max));
    }
    .footer-inner { align-items: flex-start; }
}

@media (max-width: 390px) {
    .brand { letter-spacing: 0.12em; }
    .hero h1 { font-size: 1.95rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-live { animation: fast-live-pulse 2.4s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes fast-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(255, 90, 90, 0); }
}
