/*
Theme Name: MARKK TV Site
Theme URI: https://example.com/markk-tv
Author: MARKK TV
Description: The MARKK TV website: live player on the homepage, apps, help, contact and privacy page. Black, gold and chrome.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: markk-tv
*/

/* MARKK TV site. Brand: black, gold and chrome silver, with the logo's forward slant used in buttons, headings and section edges. */
:root {
  --black: #070706;
  --panel: #11100e;
  --panel-2: #181612;
  --line: #2a2518;
  --gold: #f6b800;
  --gold-deep: #c98a00;
  --silver: #e6e8ec;
  --muted: #9a9484;
  --live: #ff3b30;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slant: -9deg;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--black); color: var(--silver);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #14110a; padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,6,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand img { height: 44px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.link {
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--silver); text-decoration: none; padding: 8px 14px;
}
.nav a.link:hover { color: var(--gold); }
.menu-btn {
  display: none; margin-left: auto; background: transparent; color: var(--silver);
  border: 1px solid var(--line); border-radius: 6px; width: 46px; height: 42px; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 14px; }
  .site-head.open .nav { display: flex; }
  .nav a.link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 20px; }
}

/* buttons (slanted plates, like the logo) */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  transform: skewX(var(--slant)); padding: 14px 30px;
  font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffd24a, var(--gold) 55%, var(--gold-deep)); color: #14110a;
  box-shadow: 0 8px 28px rgba(246,184,0,.28);
  transition: filter .15s, box-shadow .15s;
}
.btn > span { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.btn:hover { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(246,184,0,.4); }
.btn.ghost { background: transparent; color: var(--silver); box-shadow: inset 0 0 0 2px var(--silver); }
.btn.ghost:hover { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn.small { padding: 10px 20px; font-size: 17px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 4px;
  background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.chip.live .dot { background: var(--live); animation: pulse 1.6s infinite; }
.chip.warn .dot { background: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.65); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,59,48,0); } }

/* hero */
.hero {
  position: relative; padding: 56px 0 96px;
  background: radial-gradient(ellipse 70% 60% at 22% 30%, rgba(246,184,0,.2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-logo { width: 100%; max-width: 540px; display: block; filter: drop-shadow(0 12px 40px rgba(246,184,0,.3)); }
.lede { margin: 6px 0 28px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; max-width: 24ch; text-wrap: balance; }
.lede em { font-style: normal; color: var(--gold); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; padding-left: 8px; }
.cta .btn { padding: 14px 24px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding-top: 32px; } .hero-logo { max-width: 420px; } }

/* player */
.frame {
  padding: 4px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep) 45%, var(--gold));
  box-shadow: 0 0 0 1px #000, 0 28px 80px rgba(246,184,0,.16);
}
.screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; overflow: hidden; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.screen .badge { position: absolute; top: 12px; left: 12px; z-index: 5; pointer-events: none; }
.unmute {
  position: absolute; top: 12px; right: 12px; z-index: 6; cursor: pointer;
  background: rgba(0,0,0,.8); border: 1px solid var(--gold); color: var(--gold); padding: 6px 12px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.overlay {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(246,184,0,.12), rgba(0,0,0,.9) 72%), #000;
}
.overlay img { width: min(260px, 55%); height: auto; }
@media (max-width: 700px) { .overlay { gap: 8px; padding: 12px; } .overlay img { display: none; } .overlay h3 { font-size: 20px; } .overlay p { font-size: 14px; } }
.overlay h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.overlay p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; text-wrap: balance; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(246,184,0,.25); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 14px 4px 0; color: var(--muted); font-size: 15px; }
.player-note button { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: inherit; text-decoration: underline; }

/* sections */
section { position: relative; }
.kicker { display: inline-block; margin: 0 0 14px; font-family: var(--display); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 16px; color: var(--gold); transform: skewX(var(--slant)); }
h2 {
  margin: 0 0 18px; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: .01em; text-wrap: balance;
  color: #d9dde3;
  background: linear-gradient(180deg, #ffffff 0%, #b9bfc9 52%, #eef0f4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.slab { background: var(--panel); clip-path: polygon(0 36px, 100% 0, 100% calc(100% - 36px), 0 100%); padding: 120px 0; }
.section-head { max-width: 900px; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; max-width: 60ch; }
.section-head p.kicker { color: var(--gold); font-size: 16px; }

/* apps */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 30px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.card svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); }
.card .actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
.soon { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--gold); border: 1px solid var(--gold); padding: 4px 12px; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.about-grid p { margin: 0 0 16px; font-size: 19px; max-width: 52ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.facts li { display: flex; flex-direction: column; padding: 18px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1.05; text-transform: uppercase; color: var(--gold); }
.facts span { color: var(--muted); }

/* contact */
.contact-box { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; }
.contact-box .email { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); letter-spacing: .02em; word-break: break-word; user-select: all; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); color: var(--silver); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 17px; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.phones a { color: var(--silver); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.phones a:hover { color: var(--gold); }
.label { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; font-size: 15px; }
.plain { padding: 100px 0 40px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); margin-top: 40px; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-row img { height: 36px; width: auto; display: block; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-row a { color: var(--silver); text-decoration: none; }
.foot-row a:hover { color: var(--gold); }
.tag { width: 100%; text-align: center; margin-top: 8px; font-family: var(--display); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-size: 14px; }
.tag span { color: var(--gold); }

/* privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0 24px; }
.doc h1 { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7vw, 64px); line-height: 1; color: var(--silver); }
.doc h2 { font-size: 30px; margin: 36px 0 8px; font-style: normal; letter-spacing: .03em; background: none; -webkit-text-fill-color: var(--gold); color: var(--gold); }
.doc p, .doc li { color: #cfd2d8; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chip.live .dot, .spinner { animation-duration: 3s; } }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step {
  display: flex; flex-direction: column; padding: 28px 26px 30px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.step .num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 56px; line-height: 1; color: var(--gold); }
.step h3 { margin: 14px 0 8px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .03em; text-transform: uppercase; color: var(--silver); }
.step p { margin: 0; color: var(--muted); }

/* help / faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; color: var(--silver);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 30px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 68ch; }
