/*
Theme Name: LiveTVZap
Description: Live sports guide: one page per match or tournament (Events), a home page with tonight's slate, live and upcoming events, and "Watch" buttons to Golden Gate IPTV with UTM tags.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: livetvzap
*/

/* ---------- fonts (self-hosted, latin) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-cond-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(assets/fonts/barlow-cond-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(assets/fonts/barlow-cond-800i.woff2) format("woff2"); }

:root {
  --bg: #0a0d12;
  --panel: #11161e;
  --panel-2: #161c26;
  --line: #1f2731;
  --text: #eef1f4;
  --soft: #c9d0d8;
  --muted: #8b96a3;
  --gold: #f5b82e;
  --red: #e3262d;
  --orange: #ff7a1a;
  --green: #25d366;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* film grain, very light */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
p, li { color: var(--soft); }
.note { color: var(--muted); font-size: 14px; }
::selection { background: var(--gold); color: #111; }

/* ---------- ticker ---------- */
.ticker { background: #05070a; border-bottom: 1px solid var(--line); display: flex; height: 34px; overflow: hidden; font: 600 14px/34px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ticker .lbl { flex: none; background: var(--red); color: #fff; padding: 0 18px 0 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); position: relative; z-index: 1; }
.ticker .track { display: flex; white-space: nowrap; animation: tick 40s linear infinite; padding-left: 12px; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .track a { color: var(--soft); text-decoration: none; padding: 0 22px; border-right: 1px solid var(--line); }
.ticker .track a:hover { color: #fff; }
.ticker .track b { color: var(--gold); font-weight: 600; margin-right: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.top { background: rgba(10,13,18,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: italic 800 26px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.brand svg { width: 22px; height: 26px; fill: var(--gold); transition: transform .3s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.1); }
.brand em { color: var(--gold); font-style: italic; }
.top nav.main { display: flex; gap: 26px; }
.top nav.main a { color: var(--muted); text-decoration: none; font: 600 16px var(--display); letter-spacing: .06em; text-transform: uppercase; position: relative; padding: 4px 0; }
.top nav.main a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s var(--ease); }
.top nav.main a:hover { color: var(--text); }
.top nav.main a:hover::after { right: 0; }
.top-cta { color: #111; background: var(--gold); text-decoration: none; font: 800 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 10px 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); white-space: nowrap; transition: background .2s; }
.top-cta:hover { background: #ffd068; }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; }
h1 { font-weight: 800; font-size: clamp(34px, 5.6vw, 58px); line-height: .98; margin: 0; }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.05; margin: 0 0 16px; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.15; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font: 600 15px var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); }
.page-head { padding: 34px 0 22px; }
.page-head p { margin: 12px 0 0; max-width: 620px; color: var(--muted); }

section { padding: 56px 0; border-top: 1px solid var(--line); position: relative; }
.sec-n { position: absolute; right: 16px; top: 34px; font: 800 96px/1 var(--display); color: rgba(255,255,255,.03); pointer-events: none; }

/* ---------- player (hero image) ---------- */
.player { position: relative; display: block; overflow: hidden; background: #000; border: 1px solid var(--line); }
.player img, .player > svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.player::after { /* light sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); transform: skewX(-18deg); transition: left .9s var(--ease);
}
.player:hover::after { left: 120%; }
.player .play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; transition: transform .25s var(--ease); z-index: 2;
}
.player .play::before, .player .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ring 2.4s ease-out infinite; }
.player .play::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.player .play svg { width: 38px; height: 38px; fill: #fff; margin-left: 6px; }
.player:hover .play { transform: scale(1.08); }
.player.has-text .play { left: 74%; }
.player .tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 14px; text-align: center; z-index: 1; }

.player .hero-text {
  position: absolute; left: 0; top: 0; bottom: 0; width: 54%; padding: 0 0 0 5%; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.4) 70%, transparent);
}
.hero-text > * { opacity: 0; transform: translateX(-24px); animation: slidein .7s var(--ease) forwards; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.hero-text .league { color: var(--gold); font: 600 clamp(12px, 1.7vw, 20px) var(--display); letter-spacing: .16em; text-transform: uppercase; }
.hero-text .teams { color: #fff; font: 800 clamp(22px, 4.2vw, 54px)/.95 var(--display); text-transform: uppercase; }
.hero-text .teams i { display: block; font-style: italic; color: var(--orange); font-size: .5em; margin: 6px 0; letter-spacing: .1em; }
.hero-text .when { color: #fff; opacity: .9; font: 600 clamp(12px, 1.7vw, 20px) var(--display); letter-spacing: .06em; text-transform: uppercase; }

.live-pill {
  position: absolute; right: 4%; top: 6%; z-index: 2; background: var(--red); color: #fff;
  font: 800 clamp(13px, 1.8vw, 20px)/1 var(--display); letter-spacing: .08em; padding: 7px 14px 7px 28px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.live-pill::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }
.live-pill.soon { background: #000; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.live-pill.soon::before { background: var(--gold); animation: none; }
.live-pill.ended { background: #000; color: var(--muted); padding-left: 14px; }
.live-pill.ended::before { display: none; }
@keyframes blink { 50% { opacity: .2; } }

/* scorebug under the image, like a TV graphic */
.scorebug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.scorebug .side { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font: 800 clamp(17px, 2.4vw, 26px)/1.05 var(--display); text-transform: uppercase; }
.scorebug .side.away { justify-content: flex-end; text-align: right; }
.scorebug .chip { flex: none; width: 10px; align-self: stretch; min-height: 34px; background: var(--c, var(--gold)); transform: skewX(-12deg); }
.scorebug .mid { background: var(--gold); color: #111; padding: 10px 22px; text-align: center; display: flex; flex-direction: column; justify-content: center; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%); min-width: 150px; }
.scorebug .mid b { font: 800 26px/1 var(--display); }
.scorebug .mid span { font: 600 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.scorebug.tour { grid-template-columns: 1fr auto; }

/* countdown */
.countdown { display: flex; justify-content: center; gap: 8px; margin: 22px 0 0; }
.countdown div { background: var(--panel); border: 1px solid var(--line); min-width: 74px; padding: 10px 6px 8px; text-align: center; position: relative; overflow: hidden; }
.countdown div::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.5); }
.countdown b { display: block; font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown b.flip { animation: flip .35s var(--ease); }
@keyframes flip { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown span { color: var(--muted); font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; position: relative; overflow: hidden; border: 0; color: var(--text); text-decoration: none;
  font: 800 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 14px 22px;
  background: transparent; box-shadow: inset 0 0 0 2px var(--gold); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--gold); color: #111; transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 20px; }
.btn-solid { background: var(--gold); color: #111; }
.btn-solid::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 140%; } }
.btn-solid:hover { background: #ffd068; }
.btn-wa { box-shadow: inset 0 0 0 2px var(--green); }
.btn-wa:hover { background: var(--green); color: #062b14; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }

/* ---------- devices + features ---------- */
.lead { text-align: center; font-size: 19px; font-weight: 500; color: var(--text); max-width: 680px; margin: 28px auto 18px; }
.devices { display: flex; justify-content: center; gap: 36px; margin: 0 0 38px; color: var(--muted); }
.devices svg { width: 30px; height: 30px; fill: currentColor; transition: color .2s, transform .2s var(--ease); }
.devices svg:hover { color: var(--gold); transform: translateY(-3px); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 8px; }
.features > div { padding: 22px 20px 24px; border-left: 1px solid var(--line); }
.features > div:first-child { border-left: 0; }
.features h3 { font-size: 21px; margin: 0 0 6px; }
.features h3 span { display: block; color: var(--red); font: 800 15px var(--display); letter-spacing: .1em; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
tr.now td { background: rgba(245,184,46,.08); box-shadow: inset 3px 0 0 var(--gold); }
.today { color: var(--gold); font: 600 14px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.info td:first-child { color: var(--muted); width: 36%; font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- slate (TV-guide rows) ---------- */
.slate { border-top: 2px solid var(--text); }
.slate a { min-width: 0; display: grid; grid-template-columns: 150px 140px 1fr auto; align-items: center; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; position: relative; transition: background .25s, padding-left .25s var(--ease); }
.slate a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc, var(--gold)); transform: scaleY(0); transition: transform .25s var(--ease); }
.slate a:hover { background: var(--panel); padding-left: 20px; }
.slate a:hover::before { transform: scaleY(1); }
.slate .time { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.slate .time small { display: block; color: var(--muted); font: 600 13px var(--display); letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; }
.slate .lg { justify-self: start; color: var(--acc, var(--gold)); font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.slate .m { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.slate .m span { color: var(--muted); font-style: italic; font-size: .7em; margin: 0 6px; }
.slate .go { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 800 15px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.slate .go svg { width: 18px; height: 18px; fill: currentColor; transition: transform .25s var(--ease); }
.slate a:hover .go svg { transform: translateX(5px); }
.slate .st { font: 800 13px var(--display); letter-spacing: .1em; padding: 4px 8px; }
.slate .st.live { background: var(--red); color: #fff; }
.slate .st.ended { color: var(--muted); }
.slate.dim a { opacity: .6; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; position: relative; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc, var(--gold)); z-index: 2; }
.card:hover { border-color: #33404f; transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.card .thumb img, .card .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .thumb img, .card:hover .thumb svg { transform: scale(1.06); }
.card .thumb .live-pill { font-size: 13px; top: 10px; right: 10px; }
.card .body { padding: 14px 16px 18px; }
.card .lg { color: var(--acc, var(--gold)); font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.card h3 { font-size: 24px; font-weight: 800; line-height: 1.02; margin: 6px 0 8px; }
.card .t { color: var(--muted); font-size: 15px; }

/* ---------- home ---------- */
.home-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: end; padding: 40px 0 34px; }
.home-head h1 { font-size: clamp(44px, 7.4vw, 88px); }
.home-head h1 em { color: var(--gold); font-style: italic; }
.home-head p { color: var(--muted); max-width: 560px; margin: 14px 0 0; }
.stats { display: flex; gap: 0; justify-self: end; border: 1px solid var(--line); }
.stats div { padding: 14px 22px; border-left: 1px solid var(--line); text-align: center; }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 800 46px/1 var(--display); }
.stats span { color: var(--muted); font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.stats .hot b { color: var(--red); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-h h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.sec-h .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227,38,45,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(227,38,45,0); } 100% { box-shadow: 0 0 0 0 rgba(227,38,45,0); } }
.empty { color: var(--muted); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.plan { background: var(--panel); border: 1px solid var(--line); padding: 26px 22px 24px; position: relative; transition: transform .25s var(--ease), border-color .25s; }
.plan:hover { transform: translateY(-4px); border-color: #33404f; }
.plan h3 { margin: 0; font-size: 22px; color: var(--muted); }
.plan .price { font: 800 64px/1 var(--display); color: var(--text); margin: 10px 0 6px; }
.plan .price sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-right: 2px; color: var(--gold); }
.plan .note { min-height: 44px; }
.plan.best { background: linear-gradient(180deg, #1d1606, var(--panel) 60%); border-color: var(--gold); padding-top: 40px; }
.plan .badge { position: absolute; top: 0; left: 22px; background: var(--gold); color: #111; font: 800 13px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }

/* ---------- steps + faq ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 64px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -4px; font: 800 40px/1 var(--display); color: var(--gold); }
.steps li::after { content: ""; position: absolute; left: 50px; top: 4px; bottom: 6px; width: 1px; background: var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font: 600 21px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: inline-block; width: 22px; margin-right: 6px; text-align: center; color: var(--gold); font-size: 28px; line-height: .8; transition: transform .25s var(--ease); }
summary > span { min-width: 0; }
details[open] summary::after { transform: rotate(45deg); }
details[open] p { animation: fadeup .35s var(--ease); }
details p { margin: 12px 0 0; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--text); padding: 26px 0; margin-top: 30px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer nav a:first-child { margin-left: 0; }
footer a:hover { color: var(--text); }
.copy { color: var(--muted); }
.copy .brand { font-size: 20px; display: inline-flex; margin-right: 10px; vertical-align: middle; }
.disclaimer { color: #66717d; font-size: 13px; text-align: center; padding: 0 16px 26px; max-width: 780px; margin: 0 auto; }

/* ---------- static pages ---------- */
.uel-page { padding-bottom: 40px; }
.uel-page h1 { margin: 34px 0 20px; }
.uel-page h2 { margin-top: 30px; font-size: 28px; }

.credit { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.credit a { color: inherit; }

/* ---------- watch step (dialog + /watch page) ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.btn .ico { width: 18px; height: 18px; margin: -3px 8px -3px 0; vertical-align: middle; }
.watch-dlg { padding: 0; border: 0; background: transparent; color: var(--text); width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; overscroll-behavior: contain; }
.watch-dlg::backdrop { background: rgba(3,5,8,.78); backdrop-filter: blur(6px); }
.watch-dlg[open] { animation: dlg-in .38s var(--ease); }
.watch-dlg[open]::backdrop { animation: dlg-fade .3s ease; }
.watch-dlg.out { animation: dlg-out .22s ease forwards; }
.watch-dlg.out::backdrop { animation: dlg-fade .22s ease reverse forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }
body:has(.watch-dlg[open]) { overflow: hidden; }
.wd-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(10,13,18,.7); color: var(--soft); cursor: pointer; transition: color .2s, border-color .2s, transform .25s var(--ease); }
.wd-x:hover { color: #fff; border-color: var(--gold); transform: rotate(90deg); }

.wp-panel { position: relative; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.wp-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ca) 0 50%, var(--cb) 50% 100%); }
.wp-head { display: flex; align-items: center; gap: 14px; padding: 18px 60px 16px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, color-mix(in srgb, var(--ca) 22%, transparent), transparent 45%, color-mix(in srgb, var(--cb) 18%, transparent)); }
.wp-head .live-pill { position: relative; top: auto; left: auto; right: auto; flex: none; }
.wp-match { font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.wp-when { margin-left: auto; color: var(--muted); font: 600 15px var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wp-body { padding: 26px 24px 22px; }
.wp-title { font: 800 36px/1.02 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.wp-title span { color: var(--gold); }
.wp-sub { margin: 0 0 22px; max-width: 600px; }

.wp-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.wp-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.3; }
.wp-steps li:first-child { border-left: 0; }
.wp-steps .ico { grid-row: 1 / 3; width: 34px; height: 34px; padding: 7px; color: var(--gold); background: rgba(245,184,46,.1); border-radius: 50%; }
.wp-steps b { color: var(--text); font: 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.js .watch-dlg[open] .wp-steps li { animation: fadeup .5s var(--ease) both; }
.js .watch-dlg[open] .wp-steps li:nth-child(2) { animation-delay: .08s; }
.js .watch-dlg[open] .wp-steps li:nth-child(3) { animation-delay: .16s; }

.wp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.wp-plan { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.wp-plan:hover { transform: translateY(-3px); border-color: var(--gold); }
.wp-plan.best { border-color: var(--gold); background: linear-gradient(180deg, #241a05, var(--panel-2) 70%); }
.wp-plan .badge { position: absolute; top: -1px; right: 12px; background: var(--gold); color: #111; font: 800 12px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; }
.wp-plan .n { color: var(--muted); font: 600 16px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.wp-plan .pr { font: 800 48px/1 var(--display); margin: 6px 0 4px; }
.wp-plan .pr sup { font-size: .42em; color: var(--gold); vertical-align: top; position: relative; top: .3em; margin-right: 2px; }
.wp-plan .pm { color: var(--soft); font-size: 14px; }
.wp-plan .go { position: absolute; right: 14px; bottom: 14px; color: var(--gold); transition: transform .25s var(--ease); }
.wp-plan:hover .go { transform: translateX(4px); }

.wp-alt { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.wp-alt .btn { flex: 1 1 200px; text-align: center; }
.wp-trust { list-style: none; padding: 14px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); }
.wp-trust li { display: flex; align-items: center; gap: 8px; color: var(--soft); font: 600 15px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.wp-trust .ico { width: 18px; height: 18px; color: var(--green); }
.wp-fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.watch-page { padding-bottom: 30px; }
.watch-page .back { display: inline-block; margin: 22px 0 0; color: var(--muted); text-decoration: none; font: 600 15px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.watch-page .back:hover { color: var(--gold); }
.watch-page .wp-panel { max-width: 860px; margin: 0 auto; }
.watch-page #faq .narrow { margin: 0 auto; }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .cards .rv:nth-child(3n+2), .js .slate .rv:nth-child(even) { transition-delay: .08s; }
.js .cards .rv:nth-child(3n) { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .home-head { grid-template-columns: 1fr; }
  .stats { justify-self: start; }
  .slate a { grid-template-columns: 110px 1fr auto; }
  .slate .lg { grid-column: 2; grid-row: 1; }
  .slate .m { grid-column: 2; grid-row: 2; }
  .slate .time { grid-row: 1 / 3; }
  .slate .go { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top nav.main { display: none; }
  .brand { font-size: 22px; }
  .top-cta { font-size: 13px; padding: 9px 12px; }
  .player .hero-text { display: none; } /* the scorebug under the image shows the teams */
  .player.has-text .play { left: 50%; }
  .player .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .player .play svg { width: 26px; height: 26px; margin-left: 4px; }
  .player .tag { display: none; }
  .scorebug .side { padding: 10px 10px; gap: 8px; }
  .scorebug .mid { min-width: 96px; padding: 8px 12px; }
  .scorebug .mid b { font-size: 20px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features > div:nth-child(3) { border-left: 0; }
  .features > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .countdown div { min-width: 62px; }
  .countdown b { font-size: 28px; }
  section { padding: 44px 0; }
  .sec-n { font-size: 70px; }
  footer .wrap { justify-content: center; text-align: center; }
  footer a { margin-left: 12px; }
  th, td { padding: 10px 8px; font-size: 15px; }
  .slate .go span { display: none; }
  .wp-head { flex-wrap: wrap; gap: 6px 10px; padding: 16px 56px 14px 16px; }
  .wp-when { margin-left: 0; width: 100%; }
  .wp-body { padding: 20px 16px 18px; }
  .wp-title { font-size: 28px; }
  .wp-steps { grid-template-columns: 1fr; }
  .wp-steps li { border-left: 0; border-top: 1px solid var(--line); }
  .wp-steps li:first-child { border-top: 0; }
  .wp-plans { grid-template-columns: 1fr; }
  .wp-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 44px 14px 16px; }
  .wp-plan .pr { grid-column: 2; grid-row: 1 / 3; font-size: 38px; margin: 0; }
  .wp-plan .go { top: 50%; bottom: auto; margin-top: -11px; }
  .wp-plan.best { order: -1; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .slate a { grid-template-columns: 84px 1fr 24px; gap: 10px; }
  .slate .time { font-size: 18px; }
  .slate .m { font-size: 19px; }
  .stats div { padding: 10px 14px; }
  .stats b { font-size: 34px; }
  .scorebug .side { font-size: 15px; }
  .scorebug .chip { width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero-text > * { opacity: 1; transform: none; }
  .ticker .track { overflow-x: auto; }
}

/* WordPress content */
.event-body img, .uel-page img { border: 1px solid var(--line); }
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
