:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0d1b2a;
  --surface-2: #10243a;
  --text: #f4f7fb;
  --muted: #9ba8ba;
  --blue: #3b82f6;
  --blue-strong: #1769ff;
  --red: #e53935;
  --border: rgba(255,255,255,.15);
  --shadow: 0 22px 70px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 4%, rgba(30,94,200,.17), transparent 33rem),
    radial-gradient(circle at 0 56%, rgba(18,78,150,.12), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: white; color: #06111e; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header {
  min-height: 5.75rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7,17,31,.87);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 750; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 2.65rem; aspect-ratio: 1; border: 2px solid #78a9ff; border-radius: 50%; color: #a8c7ff; box-shadow: 0 0 24px rgba(59,130,246,.25); }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.main-nav a { position: relative; padding: .8rem .2rem; color: #cbd3df; text-decoration: none; font-weight: 550; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: #6ea4ff; }
.main-nav a.active::after { content: ""; position: absolute; width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); left: calc(50% - .225rem); bottom: .15rem; }
.menu-toggle { display: none; padding: .55rem .8rem; color: white; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; }

.hero { width: min(100% - 2.5rem, 94rem); margin: 0 auto; padding: clamp(3rem, 6vw, 6.5rem) 0 3rem; display: grid; grid-template-columns: minmax(18rem, .72fr) minmax(30rem, 1.5fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.eyebrow { margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; color: #88b5ff; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 1.75rem; height: 2px; background: var(--blue); }
h1 { margin: 0; max-width: 10ch; font-size: clamp(2.7rem, 4.7vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.intro { max-width: 36rem; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.05rem; }
.primary-button { display: inline-flex; align-items: center; gap: 1.25rem; padding: .95rem 1.35rem; border-radius: .75rem; background: linear-gradient(135deg, var(--blue), var(--blue-strong)); text-decoration: none; font-weight: 700; box-shadow: 0 12px 35px rgba(23,105,255,.28); transition: transform .2s ease, filter .2s ease; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.trust-card { width: fit-content; margin-top: 1.6rem; padding: 1rem 1.1rem; display: flex; gap: .85rem; align-items: center; border: 1px solid var(--border); border-radius: .85rem; background: rgba(13,27,42,.72); }
.trust-card strong, .trust-card small { display: block; }
.trust-card small { color: var(--muted); margin-top: .15rem; }
.shield { display: grid; place-items: center; width: 2.55rem; aspect-ratio: 1; flex: none; border-radius: .65rem; color: white; font-weight: 900; background: linear-gradient(150deg, #69a2ff, #174ba6); }
.player-shell { padding: .9rem; border: 1px solid var(--border); border-radius: 1.15rem; background: linear-gradient(150deg, rgba(16,36,58,.95), rgba(5,13,24,.95)); box-shadow: var(--shadow); }
.player-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .35rem 1rem; }
.player-heading h2 { margin: .35rem 0 0; font-size: 1.1rem; }
.player-heading a { color: #9ec1ff; font-size: .82rem; text-decoration: none; }
.player-heading a:hover { text-decoration: underline; }
.live-pill, .official-pill { width: fit-content; display: inline-flex; align-items: center; gap: .35rem; padding: .27rem .5rem; border-radius: .35rem; font-size: .67rem; font-weight: 800; letter-spacing: .035em; }
.live-pill { background: var(--red); color: white; }
.live-pill i { width: .38rem; height: .38rem; background: white; border-radius: 50%; animation: pulse 1.8s infinite; }
.official-pill { color: #a9c8ff; background: rgba(59,130,246,.18); }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #02050a; border-radius: .8rem; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.channels-section { width: min(100% - 2.5rem, 94rem); margin: 0 auto; padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading h2, .about-section h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.25rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 34rem; margin: 0; color: var(--muted); }
.category-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.5rem; }
.category-button { padding: .65rem 1rem; color: #bdc8d7; border: 1px solid var(--border); border-radius: 999px; background: rgba(13,27,42,.72); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.category-button:hover, .category-button:focus-visible { color: white; border-color: rgba(110,164,255,.7); transform: translateY(-1px); outline: none; }
.category-button.active { color: white; border-color: var(--blue); background: linear-gradient(135deg, rgba(59,130,246,.85), rgba(23,105,255,.72)); }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.15rem; }
.channel-card { position: relative; overflow: hidden; padding: 0; min-width: 0; color: inherit; text-align: left; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.channel-card:hover, .channel-card:focus-visible, .channel-card.active { transform: translateY(-4px); border-color: rgba(80,146,255,.72); box-shadow: 0 16px 38px rgba(0,0,0,.3); outline: none; }
.card-art { min-height: 9rem; display: grid; place-items: center; position: relative; font-size: 2rem; letter-spacing: -.06em; }
.card-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 10%, rgba(255,255,255,.16), transparent 35%); }
.art-france { background: linear-gradient(145deg, #112a61, #071228 65%, #b82032); }
.art-dw { background: radial-gradient(circle, #165db5 0 25%, transparent 26%), linear-gradient(135deg, #0e2440, #07111f); }
.art-rtve { background: linear-gradient(145deg, #132236, #bf382b); }
.art-nasa { background: radial-gradient(circle at 70% 25%, #6fa0ff 0 2%, transparent 3%), radial-gradient(circle at 20% 80%, #3458a0, #071226 47%, #02050b); }
.art-metal { background: radial-gradient(circle at 50% 125%, rgba(229,57,53,.9), transparent 45%), linear-gradient(145deg, #1a1a1d, #050506 70%); color: #f1f1f1; text-shadow: 0 0 22px rgba(229,57,53,.65); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem 1.1rem 1.25rem; }
.card-body strong { margin-top: .25rem; font-size: 1.08rem; }
.card-body small { color: var(--muted); }
.card-arrow { position: absolute; right: 1rem; bottom: 1.05rem; font-size: 1.35rem; color: #b6c8e4; }

.about-section { width: min(100% - 2.5rem, 94rem); margin: 0 auto 5rem; padding: clamp(2rem, 5vw, 4.5rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; border: 1px solid var(--border); border-radius: 1.25rem; background: linear-gradient(135deg, rgba(16,36,58,.75), rgba(13,27,42,.5)); }
.about-section p:last-child { margin: 0; color: #b6c2d2; font-size: clamp(1rem, 1.4vw, 1.2rem); }
footer { padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .88rem; }
footer a { color: #9ec1ff; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  h1 { max-width: 14ch; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .site-header { min-height: 4.8rem; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: calc(100% + .25rem); right: 1.25rem; width: min(18rem, calc(100vw - 2.5rem)); padding: .75rem; flex-direction: column; align-items: stretch; gap: .1rem; border: 1px solid var(--border); border-radius: .85rem; background: #0b1929; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem; }
  .main-nav a.active::after { display: none; }
  .hero { width: min(100% - 2rem, 94rem); padding-top: 2.5rem; gap: 2rem; }
  h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .player-heading { align-items: flex-start; flex-direction: column; }
  .channels-section { width: min(100% - 2rem, 94rem); }
  .section-heading, .about-section { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .channel-grid { grid-template-columns: 1fr; }
  .about-section { width: min(100% - 2rem, 94rem); padding: 1.5rem; }
  .about-section p:last-child { margin-top: 1.5rem; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
