/* ===== MyTV53 / KNXT Channel 53 ===== */

@font-face {
  font-family: "Avant Garde Demi";
  src: url("fonts/AvantGarde-Demi.woff2") format("woff2"),
       url("fonts/AvantGarde-Demi.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Avant Garde Light";
  src: url("fonts/AvantGarde-Light.woff2") format("woff2"),
       url("fonts/AvantGarde-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --teal: #319fca;
  --teal-deep: #1c7ba3;
  --sky: #abe2fa;
  --green: #30a45c;
  --charcoal: #555555;
  --charcoal-deep: #1c1f22;
  --stage: #202428;
  --stage-2: #2a2e32;
  --paper: #f4f5f6;
  --ink: #1c1f22;
  --ink-soft: #8b94a6;
  --line: rgba(255,255,255,0.08);
  --radius: 8px;
  --head: "Avant Garde Demi", "Century Gothic", Futura, sans-serif;
  --sans: "Avant Garde Light", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--charcoal-deep);
  border-bottom: 3px solid var(--teal);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 40px; height: 40px; color: #fff; font-size: 1.3rem; cursor: pointer;
}

.site-nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: #d9dee6; font-family: var(--head); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; flex-direction: column; gap: 0; width: 100%;
    background: var(--stage-2); border-radius: 8px; margin-top: 10px; padding: 6px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line) !important; }
}

/* ---------- Diagonal section dividers ---------- */

.slant-down { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 28px)); }
.slant-up { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
.slant-both { clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%); }

/* ---------- Stat strip ---------- */

.stat-strip { background: var(--teal); padding: 0; }
.stat-strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 26px 24px;
}
.stat { text-align: center; border-right: 1px solid rgba(5,36,48,0.2); }
.stat:last-child { border-right: none; }
.stat .stat-num {
  font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #052430; display: block;
}
.stat .stat-lbl {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #0a3143; font-weight: 700;
}
@media (max-width: 600px) { .stat-strip .wrap { grid-template-columns: 1fr; gap: 14px; } .stat { border-right: none; } }

/* ---------- Hero ---------- */

.hero { background: var(--stage); color: #fff; padding: 56px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .eyebrow {
  font-family: var(--head); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--teal); margin: 0 0 12px; font-weight: 700;
}
.hero h1 {
  font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.12; margin: 0 0 16px; max-width: 16ch;
}
.hero p { max-width: 54ch; color: #b7bfc9; font-size: 1.05rem; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-reel {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line); background: #000;
}
.hero-reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-reel-label {
  font-family: var(--head); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); text-align: center; margin: 10px 0 0;
}

.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 220px;
}
.hero-logo-wrap img { width: 100%; max-width: 340px; }

.sponsor-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; margin-bottom: 8px;
}
@media (max-width: 780px) { .sponsor-grid { grid-template-columns: 1fr; } }

.section-flush-bottom { padding-bottom: 0; }

.cta-bar {
  display: block; width: 100%; text-align: center; box-sizing: border-box;
  background: var(--charcoal-deep); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.8rem);
  padding: 28px 20px; letter-spacing: 0.01em; margin-top: 40px;
}
.cta-bar:hover { background: #05130a; color: var(--green); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
.btn-teal { background: var(--teal); color: #052430; }
.btn-teal:hover { background: var(--sky); color: #052430; }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Watch anytime strip ---------- */

.watch-strip { background: var(--charcoal-deep); padding: 20px 0; border-top: 1px solid var(--line); }
.watch-strip .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.watch-card {
  flex: 1; min-width: 220px; background: var(--sky); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.watch-card .label {
  font-family: var(--head); font-size: 1.44rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #0a3143; margin: 0 0 4px; font-weight: 700;
}
.watch-card .value { font-family: var(--head); font-size: 1.35rem; color: #052430; font-weight: 700; }
.watch-card .antenna-note { color: #0a3143; }
.watch-card .antenna-note a { color: #052430; text-decoration: underline; }
.watch-card .antenna-note a:hover { color: var(--green); }

/* ---------- Sections ---------- */

section { padding: 48px 0; }
.section-alt { background: #eceeef; }
.section-dark { background: var(--charcoal-deep); color: #fff; }
.section-green { background: linear-gradient(135deg, #1c7a41, var(--green)); color: #fff; }
.section-green .section-kicker { color: #eafff1; }
.section-green .section-title { color: #fff; }

.section-kicker {
  font-family: var(--head); font-size: 1.5rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal-deep); font-weight: 700; margin: 0 0 10px;
}
.section-dark .section-kicker { color: var(--teal); }
h2.section-title { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3.4rem); margin: 0 0 24px; line-height: 1.1; }

.antenna-note {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.85rem; color: #d9dee6; flex-wrap: wrap;
}
.antenna-note a { color: var(--sky); font-weight: 600; }
.antenna-note a:hover { color: var(--teal); }

/* ---------- On now / next / later ---------- */

.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .now-grid { grid-template-columns: 1fr; } }

.now-card {
  position: relative; border-radius: var(--radius); padding: 22px 20px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background-color: var(--stage-2); border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.15s ease;
}
.now-card:hover { transform: translateY(-3px); }
.now-card .art-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.35; z-index: 0;
}
.now-card .art-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(28,31,34,0.15) 0%, rgba(28,31,34,0.92) 85%);
}
.now-card > * { position: relative; z-index: 2; }
.now-card .tag {
  display: inline-block; font-family: var(--head); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; width: fit-content;
}
.tag-live { background: var(--green); color: #06210f; }
.tag-next { background: var(--teal); color: #052430; }
.tag-later { background: var(--sky); color: #052430; }
.now-card .show { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.now-card .matchup { font-size: 0.82rem; color: var(--sky); margin: 0 0 6px; font-weight: 600; }
.now-card .time { font-size: 0.85rem; color: #d9dee6; }

/* ---------- Countdown (green, station branded) ---------- */

.countdown-card {
  position: relative;
}

/* ---------- Full-section watermark logo ---------- */

.watermark-section { position: relative; overflow: hidden; }
.watermark-section > .watermark-logo {
  position: absolute; left: 20%; top: 50%; width: 720px; max-width: none;
  opacity: 0.32; transform: translate(-50%, -50%) rotate(-9deg); pointer-events: none; z-index: 0;
}
.watermark-section > .wrap { position: relative; z-index: 1; }
.countdown-event {
  position: relative; overflow: hidden; border-radius: 10px; padding: 22px;
  margin-bottom: 14px; border: 1px solid rgba(48,164,92,0.3); background-color: #0f2818;
}
.countdown-event:last-child { margin-bottom: 0; }
.countdown-event .ev-bg {
  position: absolute; inset: 0; background-size: cover; background-position: left center;
  opacity: 0.7; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 100%);
}
.countdown-event .ev-fade {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to right, rgba(11,42,23,0.96) 0%, rgba(19,58,32,0.55) 100%);
}
.countdown-event .ev-content { position: relative; z-index: 1; }
.countdown-event .ev-label {
  font-family: var(--head); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--green); font-weight: 700; margin: 0 0 10px;
}
.countdown-event .ev-label.ev-label-live { color: #ff6b6b; }
.countdown-event .event-name { font-family: var(--head); font-size: 1.25rem; color: #fff; font-weight: 700; margin: 0 0 6px; }
.countdown-event .ev-matchup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.countdown-event .ev-team { font-family: var(--head); font-size: 1.2rem; color: #fff; font-weight: 700; }
.countdown-event .ev-vs {
  font-family: var(--head); font-size: 0.75rem; text-transform: uppercase; font-weight: 700;
  color: var(--green); background: rgba(48,164,92,0.16); padding: 3px 12px; border-radius: 20px;
}
.countdown-event .event-time { color: #9fe0b8; font-size: 0.9rem; margin-bottom: 16px; }
.countdown-event .btn-watch-live {
  display: inline-block; background: #ff6b6b; color: #2b0505; font-family: var(--head);
  font-weight: 700; font-size: 0.9rem; padding: 10px 20px; border-radius: 6px; text-decoration: none;
}
.countdown-event .btn-watch-live:hover { background: #ff8c8c; }
.countdown-timer { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.countdown-unit { text-align: center; }
.countdown-unit .num {
  font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--green);
  background: rgba(48,164,92,0.14); border-radius: 6px; padding: 7px 12px; min-width: 50px; display: block;
}
.countdown-unit .lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fe0b8; margin-top: 5px; }

.free-badge {
  display: inline-block; background: var(--green); color: #06210f; font-family: var(--head);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}

/* ---------- Partners grid ---------- */

.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.partner-card {
  background: #fff; border: 1px solid #e2e4e6; border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; justify-content: center; min-height: 118px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex: 0 1 190px;
}
.partner-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.partner-card img { max-height: 73px; max-width: 100%; }

.partner-subhead {
  font-family: var(--head); font-size: 1rem; font-weight: 700; margin: 34px 0 14px;
  padding-top: 20px; border-top: 1px solid #e2e4e6;
}
.section-dark .partner-subhead, .section-green .partner-subhead { border-top-color: rgba(255,255,255,0.15); color: #fff; }

/* ---------- Coverage ---------- */

.coverage-search {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid #d5d8db;
  font-family: var(--sans); font-size: 1rem; margin-bottom: 14px;
}
.coverage-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-chip {
  background: #fff; border: 1px solid #e2e4e6; border-radius: 20px; padding: 6px 14px;
  font-size: 0.85rem; color: var(--ink);
}
.coverage-chip.no-match { display: none; }
.coverage-empty { display: none; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Coverage teaser ---------- */

.coverage-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .coverage-teaser { grid-template-columns: 1fr; } }
.coverage-teaser img { border-radius: var(--radius); border: 1px solid #e2e4e6; }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal-deep); color: #b7bfc9; padding: 32px 0; font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: #d9dee6; }
.footer-links a:hover { color: var(--teal); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Production page ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line);
}

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.service-card {
  background: #fff; border: 1px solid #e2e4e6; border-radius: var(--radius); padding: 24px 22px;
}
.service-card h3 { font-family: var(--head); font-size: 1.1rem; margin: 0 0 8px; color: var(--charcoal-deep); }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block dt {
  font-family: var(--head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-deep); font-weight: 700; margin-top: 22px;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: 4px 0 0; color: var(--ink); font-size: 1.02rem; }

form.contact-form {
  background: #fff; border: 1px solid #e2e4e6; border-radius: var(--radius); padding: 28px;
}
form.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--charcoal-deep); margin-bottom: 6px;
  font-family: var(--head);
}
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d5d8db; border-radius: 4px;
  font-family: var(--sans); font-size: 0.95rem; margin-bottom: 18px; background: var(--paper);
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: 2px solid var(--teal); outline-offset: 1px;
}
