:root {
  --bg: #070b14;
  --bg-elev: #0d1524;
  --bg-alt: #101a2c;
  --ink: #f4f7fb;
  --muted: #9aabc2;
  --line: rgba(140, 190, 230, 0.16);
  --cyan: #2fd3ff;
  --cyan-deep: #0994c4;
  --live: #ff3b4a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 2rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 211, 255, 0.12), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(9, 148, 196, 0.10), transparent 50%),
    linear-gradient(180deg, #05080f 0%, var(--bg) 40%, #050910 100%);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
h1, h2, h3, .brand__mark, .footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-weight: 700;
}
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Ticker */
.ticker {
  display: flex; align-items: stretch; background: #02050b; border-bottom: 1px solid var(--line);
  overflow: hidden; font-size: 0.85rem;
}
.ticker__label {
  flex: 0 0 auto; background: var(--cyan-deep); color: #041018; font-weight: 700;
  padding: 0.45rem 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__inner {
  display: flex; gap: 2.5rem; white-space: nowrap; padding-inline: 1rem;
  animation: ticker 28s linear infinite; color: var(--muted);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 20, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.brand__logo { max-height: 48px; width: auto; }
.brand__mark {
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--cyan); font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-form {
  display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--bg-elev);
}
.search-form input {
  border: 0; background: transparent; color: var(--ink); padding: 0.55rem 0.75rem; min-width: 10rem;
  font: inherit;
}
.search-form button {
  border: 0; background: var(--cyan-deep); color: #041018; font-weight: 700; padding: 0 0.9rem; cursor: pointer;
}
.search-form--lg { margin-top: 1rem; max-width: 32rem; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }
.primary-nav { border-top: 1px solid var(--line); }
.nav-row {
  display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; padding: 0.55rem 0; font-size: 0.92rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.nav-row a { opacity: 0.88; }
.nav-row a:hover, .nav-cat { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid transparent;
  padding: 0.55rem 1rem; font-weight: 700; cursor: pointer; font-family: inherit; border-radius: var(--radius);
}
.btn--live { background: rgba(255, 59, 74, 0.12); border-color: rgba(255, 59, 74, 0.45); color: #fff; }
.btn--primary { background: var(--cyan); color: #041018; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 74, 0.6); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 74, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 74, 0); }
}

/* Breaking */
.breaking { background: linear-gradient(90deg, #1a0508, #120a10 40%, #0a1018); border-bottom: 1px solid rgba(255,59,74,.25); }
.breaking__row { display: flex; gap: 1rem; align-items: center; padding: 0.55rem 0; overflow: hidden; }
.breaking__badge {
  flex: 0 0 auto; background: var(--live); color: #fff; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.08em; padding: 0.3rem 0.55rem;
}
.breaking__items { display: flex; gap: 1.5rem; overflow-x: auto; white-space: nowrap; font-weight: 600; }
.breaking__items a { opacity: 0.92; }

/* Live hero (homepage primary) */
.live-hero { padding: 1.1rem 0 0; }
.live-hero__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.live-hero__brand { display: flex; align-items: center; gap: 0.55rem; }
.live-hero__brand h1 {
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: 0.06em;
}
.live-hero__sub { margin: 0; color: var(--muted); font-weight: 600; }
.player-frame--home {
  aspect-ratio: 16/9; width: 100%; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #000;
}
.player-frame--home video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay {
  position: absolute; inset: auto 0 0 0; display: flex; gap: 0.65rem; justify-content: center;
  padding: 1rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  z-index: 2;
}
.player-overlay.is-hidden { display: none; }
.ticker--below-live { border-block: 1px solid var(--line); margin-top: 1rem; }
.featured-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr); gap: 1rem;
}
.hero-feature--inline { min-height: 360px; }
.hero-feature--inline h3 { margin: 0.35rem 0; font-size: clamp(1.4rem, 3vw, 2.2rem); max-width: 20ch; }
.hero-rail--featured { margin-top: 0; grid-template-columns: 1fr; }
.dual-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

@media (max-width: 980px) {
  .featured-layout, .dual-cols { grid-template-columns: 1fr; }
  .hero-feature--inline { min-height: 280px; }
}

/* Hero */
.hero-stage { padding: 1.25rem 0 0.5rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr); gap: 1rem;
}
.hero-feature {
  position: relative; display: block; min-height: 420px; overflow: hidden; background: #000;
  isolation: isolate;
}
.hero-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 0.7s ease;
}
.hero-feature:hover img { transform: scale(1.06); }
.hero-feature__copy {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.88) 55%);
  z-index: 1;
}
.hero-feature__copy h1 {
  margin: 0.35rem 0; font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch;
}
.hero-feature__copy p { margin: 0; color: #d7e3f0; max-width: 42ch; }
.eyebrow {
  display: inline-block; color: var(--cyan); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.65rem; }
.hero-rail__item {
  display: grid; grid-template-columns: 88px 1fr; gap: 0.65rem; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); padding: 0.4rem; min-height: 76px;
}
.hero-rail__item img { width: 88px; height: 60px; object-fit: cover; }
.hero-rail__item span { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }

.live-panel {
  background: var(--bg-elev); border: 1px solid var(--line); height: 100%;
  display: flex; flex-direction: column; min-height: 420px; box-shadow: var(--shadow);
}
.live-panel__head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line); font-family: var(--font-display); letter-spacing: 0.06em;
}
.player-frame {
  position: relative; background: #000; aspect-ratio: 16/9; display: grid; place-items: center;
  overflow: hidden;
}
.player-frame--wide, .player-frame--cinema { aspect-ratio: 16/9; margin: 1rem 0; border: 1px solid var(--line); }
.player-frame video, .player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.player-cta { position: relative; z-index: 1; }
.player-frame--empty { color: var(--muted); padding: 2rem; text-align: center; }
.live-panel__title { margin: 0; padding: 0.85rem; font-weight: 600; }

/* Sections */
.section { padding: 2rem 0; }
.section--alt { background: rgba(16, 26, 44, 0.45); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.1rem; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head--row a { color: var(--cyan); font-weight: 700; }

.news-grid, .selected-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.news-tile { display: flex; flex-direction: column; gap: 0.7rem; }
.news-tile__media {
  aspect-ratio: 16/10; overflow: hidden; background: #0a1220; border: 1px solid var(--line);
}
.news-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.news-tile:hover .news-tile__media img { transform: scale(1.04); }
.media-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #122038, #0a1526); }
.news-tile__body h3 { margin: 0.25rem 0; font-size: 1.15rem; }
.news-tile__body p, .news-tile__body time { color: var(--muted); margin: 0.2rem 0 0; font-size: 0.92rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.video-card h3 { margin: 0.55rem 0 0; font-size: 1.05rem; }
.video-card__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); background: #000;
}
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: auto auto 0.7rem 0.7rem; background: rgba(0,0,0,0.7);
  color: var(--cyan); padding: 0.25rem 0.5rem; font-size: 0.8rem;
}

.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.program-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 0.85rem; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); padding: 0.6rem;
}
.program-card img { width: 140px; height: 84px; object-fit: cover; }
.program-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.program-card p, .meta { color: var(--muted); margin: 0; font-size: 0.9rem; }

.ranked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ranked-list li {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.rank {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--cyan); font-weight: 800;
}

/* Article */
.article { padding: 1.5rem 0 2.5rem; max-width: 820px; }
.article__header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.4rem 0; }
.article__meta { display: flex; gap: 1rem; color: var(--muted); font-size: 0.92rem; }
.article__cover { margin: 1.2rem 0; border: 1px solid var(--line); }
.article__cover img { width: 100%; }
.article__lead { font-size: 1.15rem; color: #d5e0ee; }
.article__share { display: flex; gap: 0.75rem; margin: 1rem 0; flex-wrap: wrap; }
.article__share button, .article__share a {
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink);
  padding: 0.4rem 0.75rem; cursor: pointer; font: inherit;
}
.prose { font-size: 1.05rem; }
.prose p { margin: 0 0 1rem; }
.article__gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem;
}
.author-photo { border-radius: 50%; border: 2px solid var(--cyan); margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
  margin-top: 2rem; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #07101c, #04070d);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; padding: 2.5rem 0 1.5rem;
}
.footer-brand { font-size: 1.8rem; color: #fff; }
.footer-tagline { color: var(--cyan); font-weight: 600; }
.footer-about, .site-footer p { color: var(--muted); }
.site-footer h3 { margin: 0 0 0.7rem; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}

.narrow { max-width: 720px; }
.empty, .notice { color: var(--muted); }
.notice--ok { color: #7dffb0; }
.notice--err { color: #ff8d97; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
.contact-form, .archive-filters { display: grid; gap: 0.85rem; }
.contact-form label, .archive-filters label { display: grid; gap: 0.35rem; color: var(--muted); }
.contact-form input, .contact-form textarea, .archive-filters input, .archive-filters select {
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink);
  padding: 0.65rem 0.75rem; font: inherit;
}
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.plain-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.search-block { margin-top: 1.5rem; }

@media (max-width: 980px) {
  .hero-grid, .footer-grid, .news-grid, .selected-row, .video-grid, .program-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { min-height: 320px; }
  .live-panel { min-height: auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .search-form { display: none; }
  .header-actions .btn--live { padding-inline: 0.7rem; }
  .news-grid, .selected-row, .video-grid, .program-grid, .footer-grid, .hero-rail, .article__gallery, .contact-grid {
    grid-template-columns: 1fr;
  }
  .program-card { grid-template-columns: 110px 1fr; }
  .ticker__label { display: none; }
}
