:root {
    --bg: #020710;
    --panel: rgba(5, 15, 28, .68);
    --panel-strong: rgba(3, 10, 22, .86);
    --border: rgba(255, 255, 255, .14);
    --text: #f8fafc;
    --muted: #b9c5d4;
    --blue: #78c7ff;
    --gold: #f1c66f;
    --red: #e6303e;
    --green: #47d883;
    --shadow: 0 24px 90px rgba(0, 0, 0, .48);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.bg-fixed,
.bg-overlay,
.bg-glow,
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}
.bg-fixed {
    z-index: -5;
    background: url('../img/background-tvai.jpg') center top / cover no-repeat;
    transform: scale(1.015);
}
.bg-overlay {
    z-index: -4;
    background:
        linear-gradient(to bottom, rgba(1, 6, 15, .42) 0%, rgba(1, 6, 15, .60) 38%, rgba(1, 6, 15, .91) 78%, #020710 100%);
}
.bg-glow {
    z-index: -3;
    background:
        radial-gradient(circle at 18% 12%, rgba(230, 48, 62, .16), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(64, 157, 255, .16), transparent 26%),
        radial-gradient(circle at 50% 78%, rgba(241, 198, 111, .08), transparent 32%);
}
.bg-grid {
    z-index: -2;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 72%, transparent);
}

.wrap {
    width: min(calc(100% - 34px), var(--max));
    margin-inline: auto;
}
.glass-panel {
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    margin-top: 14px;
    min-height: 78px;
    padding: 10px 14px 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(2, 8, 18, .73);
    backdrop-filter: blur(22px);
    box-shadow: 0 16px 55px rgba(0,0,0,.34);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.brand-copy { line-height: 1.05; }
.brand-copy span,
.brand-copy strong { display: block; letter-spacing: .08em; }
.brand-copy span { font-size: 11px; color: #e7edf5; }
.brand-copy strong { font-size: 15px; margin-top: 3px; }
.brand-copy small { display: block; margin-top: 7px; color: var(--gold); font-style: italic; font-family: Georgia, serif; }
.main-nav { justify-self: center; display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a { padding: 9px 13px; border-radius: 12px; color: #dbe6f3; font-size: 14px; transition: .2s ease; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.live-pill.is-live { border-color: rgba(71,216,131,.35); color: #b8ffd5; background: rgba(71,216,131,.09); }
.live-pill.is-offline { border-color: rgba(230,48,62,.35); color: #ffc2c7; background: rgba(230,48,62,.09); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #a9b3c0; box-shadow: 0 0 14px currentColor; }
.is-live .live-dot { background: var(--green); animation: pulse 1.6s infinite; }
.is-offline .live-dot { background: var(--red); }

.hero { min-height: 680px; padding: 74px 0 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: end; gap: 24px; }
.hero-copy,
.hero-card { border-radius: var(--radius-xl); }
.hero-copy { padding: clamp(30px, 5vw, 58px); }
.eyebrow,
.section-label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; color: #d7e3f2; }
.eyebrow { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(120,199,255,.24); border-radius: 999px; background: rgba(38,115,181,.11); }
.hero h1 { margin: 24px 0 0; font-size: clamp(4rem, 8vw, 7.2rem); line-height: .85; letter-spacing: -.06em; font-weight: 900; }
.hero h1 span { display: inline-block; margin-top: 10px; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-style: italic; letter-spacing: -.035em; background: linear-gradient(95deg, #fff, #f5d791 46%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 750px; margin: 28px 0 0; font-size: clamp(17px, 2vw, 21px); color: #d6e0eb; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border-radius: 15px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: white; color: #07101f; box-shadow: 0 12px 36px rgba(255,255,255,.18); }
.btn-secondary { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.hero-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.hero-signals div { padding: 15px 17px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2); }
.hero-signals strong { display: block; font-size: 22px; color: var(--gold); }
.hero-signals span { display: block; margin-top: 3px; color: #b9c5d4; font-size: 12px; }
.hero-card { padding: 28px; text-align: center; background: rgba(2,8,18,.72); }
.hero-card-label { color: var(--gold); font-size: 10px; letter-spacing: .22em; font-weight: 900; }
.hero-mark { width: min(250px, 70%); margin: 8px auto 0; filter: drop-shadow(0 15px 30px rgba(0,0,0,.42)); }
.hero-card p { margin: -6px 0 0; color: #c7d2df; }
.world-strip { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #d8e4ef; }
.world-strip i { color: var(--red); font-style: normal; }

.section { padding: 72px 0; scroll-margin-top: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 24px; }
.section-heading h2,
.schedule-head h2,
.about-panel h2 { margin: 7px 0 0; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.section-intro { max-width: 470px; color: var(--muted); text-align: right; }
.utc-clock { min-width: 136px; text-align: right; }
.utc-clock span { display: block; font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.utc-clock strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }

.live-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr); gap: 22px; }
.player-card,
.now-card { border-radius: var(--radius-xl); overflow: hidden; }
.player-topline { padding: 18px 20px; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.2); }
.player-topline > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-topline strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.onair-badge { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 10px; letter-spacing: .12em; font-weight: 900; color: #ffd8db; }
.onair-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px rgba(230,48,62,.8); animation: pulse 1.4s infinite; }
.programme-mode { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .12em; background: rgba(120,199,255,.09); border: 1px solid rgba(120,199,255,.2); color: #c9ebff; }
.video-shell { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-shell video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at center, rgba(9,30,54,.48), rgba(0,0,0,.88)); transition: opacity .28s ease, visibility .28s ease; }
.player-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.player-overlay img { width: min(230px, 42%); filter: drop-shadow(0 15px 30px rgba(0,0,0,.6)); }
.player-overlay span { color: #d5e0eb; }
.play-button { border: 0; cursor: pointer; padding: 12px 20px; border-radius: 15px; background: white; color: #07101f; font-weight: 900; box-shadow: 0 12px 35px rgba(255,255,255,.14); }
.spinner { display: none; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.2); border-top-color: white; border-radius: 50%; animation: spin .9s linear infinite; }
.player-overlay.loading .spinner { display: block; }
.player-overlay.loading .play-button { display: none; }
.fullscreen-button { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(0,0,0,.48); color: white; cursor: pointer; font-size: 20px; backdrop-filter: blur(8px); }
.player-footer { padding: 13px 20px; display: flex; justify-content: space-between; gap: 18px; color: #aab8c8; font-size: 12px; border-top: 1px solid var(--border); }
.now-card { padding: 26px; background: rgba(3,11,24,.78); }
.now-card h3 { margin: 10px 0 8px; font-size: 28px; line-height: 1.12; }
.now-card > p { color: var(--muted); }
.info-stack { margin-top: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 13px; }
.info-row + .info-row { border-top: 1px solid rgba(255,255,255,.08); }
.info-row span { color: #9eacbb; }
.next-box { margin-top: 22px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(230,48,62,.1), rgba(120,199,255,.08)); border: 1px solid rgba(255,255,255,.1); }
.next-box small { display: block; color: var(--gold); letter-spacing: .18em; font-weight: 900; }
.next-box strong { display: block; margin-top: 8px; }
.next-box span { display: block; margin-top: 7px; color: #aebac8; font-size: 12px; }

.discover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.discover-card { min-height: 310px; padding: 32px; border-radius: var(--radius-xl); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.discover-card::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.alsace-card::before { background: radial-gradient(circle at top right, rgba(230,48,62,.19), transparent 48%), linear-gradient(135deg, rgba(26,10,14,.6), rgba(3,15,27,.55)); }
.world-card::before { background: radial-gradient(circle at top left, rgba(86,171,255,.22), transparent 45%), linear-gradient(135deg, rgba(3,16,30,.55), rgba(5,10,23,.65)); }
.card-kicker { color: var(--gold); font-size: 10px; letter-spacing: .22em; font-weight: 900; }
.discover-card h3 { margin: 8px 0 9px; font-size: 31px; line-height: 1.08; }
.discover-card p { max-width: 560px; margin: 0; color: #c6d0dc; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag-row span { padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); color: #dce5ef; font-size: 11px; }
.content-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { padding: 26px; border-radius: var(--radius-lg); }
.content-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--gold); }
.content-card small { display: block; margin-top: 21px; color: #9fb0c1; letter-spacing: .17em; font-weight: 900; }
.content-card h3 { margin: 7px 0 9px; font-size: 23px; }
.content-card p { margin: 0; color: var(--muted); }

.schedule-panel { padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-xl); }
.schedule-head { margin-top: 12px; display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.schedule-head p { max-width: 610px; color: var(--muted); }
.schedule-zone { flex: 0 0 auto; text-align: right; color: #a8b6c5; font-size: 11px; letter-spacing: .15em; }
.schedule-zone strong { font-size: 32px; color: var(--gold); }
.schedule-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.schedule-item { padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: rgba(0,0,0,.22); }
.schedule-item time { display: block; font-size: 29px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.schedule-item strong { display: block; margin-top: 8px; }
.schedule-item span { display: block; margin-top: 5px; color: #aab7c5; font-size: 12px; }
.schedule-note { margin: 18px 0 0; color: #93a2b3; font-size: 12px; }

.about-panel { padding: clamp(30px, 5vw, 50px); border-radius: var(--radius-xl); display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.about-copy { color: #c6d0dc; font-size: 17px; }
.about-copy p:first-child { margin-top: 0; }
.about-copy p:last-child { margin-bottom: 0; }

.site-footer { margin-top: 28px; margin-bottom: 30px; padding: 20px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); color: #a5b2c2; }
.footer-logo { width: 58px; height: 58px; object-fit: contain; }
.site-footer strong { display: block; color: white; letter-spacing: .07em; font-size: 13px; }
.site-footer span { display: block; margin-top: 3px; font-size: 12px; }
.site-footer small { text-align: right; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.22); opacity: .58; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr auto; }
    .main-nav { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
    .hero-card { display: grid; grid-template-columns: 180px 1fr; align-items: center; text-align: left; }
    .hero-card-label, .world-strip { grid-column: 1 / -1; }
    .hero-mark { width: 170px; margin: 0 auto; }
    .hero-card p { margin: 0; }
    .live-layout { grid-template-columns: 1fr; }
    .now-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
    .now-card > .section-label, .now-card > h3, .now-card > p { grid-column: 1 / -1; }
    .info-stack, .next-box { margin-top: 0; }
    .content-grid { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .wrap { width: min(calc(100% - 22px), var(--max)); }
    .site-header { top: 7px; margin-top: 7px; min-height: 64px; padding: 7px 9px; border-radius: 18px; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-copy small { display: none; }
    .live-pill span:last-child { display: none; }
    .live-pill { padding: 9px; }
    .hero { padding-top: 34px; }
    .hero-copy { padding: 27px 22px; }
    .hero h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
    .hero-signals { grid-template-columns: 1fr; }
    .hero-card { display: block; text-align: center; }
    .hero-card p { margin-top: -8px; }
    .section { padding: 48px 0; }
    .section-heading, .schedule-head { display: block; }
    .section-intro { text-align: left; margin-top: 12px; }
    .utc-clock { text-align: left; margin-top: 12px; }
    .discover-grid { grid-template-columns: 1fr; }
    .player-topline > div { display: block; }
    .onair-badge { margin-bottom: 6px; }
    .player-footer { display: block; }
    .player-footer span { display: block; }
    .player-footer span + span { margin-top: 4px; }
    .now-card { display: block; }
    .info-stack, .next-box { margin-top: 20px; }
    .about-panel { grid-template-columns: 1fr; gap: 25px; }
    .site-footer { grid-template-columns: auto 1fr; }
    .site-footer small { grid-column: 1 / -1; text-align: left; }
}
