/* TVBrowser's page: dark like the app, with the icon's blue-to-violet. The shop pages (ExtraMediumSoftwareCo
   tvbrowser/buy/shop.css) repeat the colors. */

:root {
  color-scheme: dark;
  --bg: #0e1116;
  --surface: #161b23;
  --surface-2: #1c2330;
  --ink: #e8ecf2;
  --muted: #9aa4b5;
  --line: #262e3b;
  --accent: #4da3ff;
  --accent-soft: #7dbcff;
  --accent-ink: #0b1220;
  --violet: #8a5cf6;
  --grad: linear-gradient(135deg, #3d6bff 0%, #8a5cf6 100%);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: .8em; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 700; text-decoration: none; border: 0; box-shadow: 0 8px 24px rgba(61, 107, 255, .3); transition: transform .15s, box-shadow .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(61, 107, 255, .42); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: rgba(77, 163, 255, .14); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.small { padding: .5em 1.1em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 1em; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(14, 17, 22, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.bar .name { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.bar .name img { width: 34px; height: 34px; }
/* An animated icon's <picture> (reduced motion gets the PNG) stays out of the layout; so does its <source>. */
picture.anim { display: contents; }
picture.anim source { display: none; }
.bar nav { display: flex; align-items: center; gap: 20px; }
.bar nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bar nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .bar nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(ellipse at 30% 20%, rgba(61, 107, 255, .22), transparent 60%),
  radial-gradient(ellipse at 80% 10%, rgba(138, 92, 246, .2), transparent 55%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-text { max-width: 760px; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .btn-row { margin-top: 1.6em; }
.hero-shot { margin-top: 48px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }

/* Free vs guide */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.guide { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; margin: .1em 0 .2em; }
.plan .price small { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1em 0 1.4em; }
.plan li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Split: picture and words side by side */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Recording: numbered steps beside the Recordings list, then the tray beside the close question */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 1.1em; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.steps li strong { color: var(--ink); }
.rec-tray { margin-top: 56px; }
.rec-tray h3 { margin-top: 0; }
.notes { padding-left: 1.2em; margin: 1em 0 0; color: var(--muted); font-size: .95rem; }
.notes li { margin-bottom: .45em; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Keys */
/* "Keyboard shortcuts": a titled panel under the features, each key above what it does */
.shortcuts { margin-top: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.shortcuts h3 { margin: 0 0 20px; }
.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.key-caps { display: flex; gap: 6px; }
.shortcuts kbd { background: var(--surface); }
/* The controller's panel: a line under its title, four to a row, and the face buttons round like the controller's */
.shortcuts + .shortcuts { margin-top: 20px; }
.shortcuts-lead { color: var(--muted); margin: -10px auto 22px; max-width: 560px; }
.keys.four { grid-template-columns: repeat(4, 1fr); }
.shortcuts kbd.pad { width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; }
@media (max-width: 760px) { .keys, .keys.four { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
kbd { font-family: var(--font); font-weight: 700; font-size: .85rem; color: var(--ink); min-width: 34px; text-align: center; padding: .25em .6em;
  border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px; }

/* FAQ */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: .8em 0 0; }

/* Closing call */
.cta { text-align: center; padding: 80px 0; }
.cta .icon { width: 96px; height: 96px; margin: 0 auto 20px; }
.cta .btn-row { justify-content: center; margin-top: 1.4em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.foot .wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Made in the USA, as on the company site (/css/site.css): under the hero's and the closing section's buttons */
.usa { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cta .usa { justify-content: center; }
.usa .flag { width: 38px; height: 20px; border-radius: 2px; }
.flag { width: 21px; height: 11px; border-radius: 1px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

/* "Built to feel like TV": the six features stacked as building blocks, a centered pyramid of 1, 2 and 3. Six
   columns with every card two wide, so the cards keep one width and each row sits centered on the one below. */
.section-head.center { margin-inline: auto; text-align: center; }
.features.pyramid { grid-template-columns: repeat(6, 1fr); }
.features.pyramid > :nth-child(1) { grid-column: 3 / span 2; }
.features.pyramid > :nth-child(2) { grid-column: 2 / span 2; }
.features.pyramid > :nth-child(3) { grid-column: 4 / span 2; }
.features.pyramid > :nth-child(4) { grid-column: 1 / span 2; }
.features.pyramid > :nth-child(5) { grid-column: 3 / span 2; }
.features.pyramid > :nth-child(6) { grid-column: 5 / span 2; }
/* Each card's icon and title on one line, vertically centered on each other, with the text below both */
.features .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start; }
.features .feature .ico { margin-bottom: 0; }
.features .feature h3 { margin: 0; }
.features .feature p { grid-column: 1 / -1; margin-top: 14px; }

/* The guide's own section, below the free features: its screenshot full width, then its four features in a row */
.wide-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); margin-bottom: 32px; }
.guide-features { grid-template-columns: repeat(4, 1fr); }
/* Recording, under the guide's four: the whole row */
.guide-features .feature.wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .guide-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-features { grid-template-columns: 1fr; } }
.feature kbd { font-size: .78rem; min-width: 0; padding: .1em .45em; }
.fine.center { text-align: center; margin-top: 24px; }
@media (max-width: 760px) {
  .features.pyramid { grid-template-columns: 1fr; }
  .features.pyramid > * { grid-column: auto; }
}

/* How it works (how-it-works/): the IPTV explainer. One reading column, with the contents beside it on wide screens */
.doc-hero { padding-bottom: 8px; }
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding: 24px 0 88px; }
.doc-toc { position: sticky; top: 96px; align-self: start; }
.doc-toc p { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8em; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: .32em 0 .32em 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc-body { max-width: 720px; min-width: 0; }
.doc-body > section { padding-top: 44px; scroll-margin-top: 80px; }
.doc-body > section:first-child { padding-top: 0; }
.doc-body > section + section { border-top: 1px solid var(--line); margin-top: 48px; }
.doc-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.doc-body p { margin: 0 0 1em; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: .4em; }
/* The short version, first thing on the page */
.summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px 14px; }
.summary h2 { font-size: 1.15rem; margin-bottom: .7em; }
/* How a channel reaches you: numbered steps joined by a line, each saying what goes from where to where */
.path { list-style: none; padding: 0; margin: 28px 0 8px; }
.path > li { position: relative; padding: 0 0 30px 62px; }
.path > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--violet)); opacity: .55; }
.path .n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.path h3 { margin: .35em 0 .4em; font-size: 1.15rem; }
.path p { margin: 0 0 .5em; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .85rem; margin: 0 0 .4em; }
.route span { padding: .12em .75em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.route i { font-style: normal; color: var(--accent-soft); font-weight: 700; }
.tech { font-size: .9rem; color: var(--muted); }
.callout { border-left: 3px solid var(--accent); background: rgba(77, 163, 255, .08); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 4px 0 0; }
.callout p:last-child { margin-bottom: 0; }
.does { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.does .plan { padding: 22px; }
/* "It doesn't": a cross in place of the tick */
.plan.not li::before { content: "\00d7"; border: 0; transform: none; width: auto; height: auto; top: -.05em; color: #ff6b7a; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; margin: 0; }
.glossary dt { font-family: var(--display); font-weight: 700; }
.glossary dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .doc-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .glossary { grid-template-columns: 1fr; gap: 4px; } .glossary dd { margin-bottom: 12px; }
  .path > li { padding-left: 52px; }
  .summary { padding: 20px 20px 10px; }
}
/* The main page's IPTV section */
.iptv-more { text-align: center; margin-top: 28px; }

/* The download page (download/): requirements, installing, checking the download (signed, SHA-256) and
   previous versions in a picker. */
.dl { padding: 8px 0 88px; }
.dl > section { max-width: 820px; padding-top: 36px; }
.dl > section + section { border-top: 1px solid var(--line); margin-top: 44px; }
.dl code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: .1em .5em; word-break: break-all; }
.dl-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.dl-table th, .dl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dl-table th { width: 30%; color: var(--accent-soft); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl-table td { color: var(--muted); }
.dl-hashes th { width: 22%; }
.dl-how summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.dl-how ol { padding-left: 22px; color: var(--muted); }
.dl-how li { margin-bottom: .6em; }
.dl-how pre { margin: 8px 0 0; white-space: pre-wrap; }
.dl-how pre code { display: block; padding: 10px 12px; }
.dl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 10px; }
.dl-pick label { color: var(--accent-soft); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl-pick select { min-width: 240px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  color: var(--ink); font: 500 .95rem var(--font); cursor: pointer; }
.dl-pick-hash { color: var(--muted); font-size: .9rem; }
.dl-pick-hash code { margin-left: 6px; }
.dl [hidden] { display: none; }
.dl-close { padding-top: 32px; }
@media (max-width: 640px) {
  .dl-table th, .dl-table td { display: block; width: auto; padding: 6px 0; border-bottom: 0; }
  .dl-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* The help guide (guide/): pictures, setting rows and key tables inside the document layout */
.doc-toc ol ol { border-left: 0; margin: 0 0 .3em 14px; }
.doc-toc ol ol a { font-size: .86rem; padding-top: .2em; padding-bottom: .2em; }
.doc-body h3 { margin-top: 1.8em; scroll-margin-top: 80px; }
.doc-body > section > h2 + h3 { margin-top: .6em; }
.doc-body ol { padding-left: 1.3em; }
.doc-body figure { margin: 1.4em 0 1.6em; }
.doc-body figure img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .4); }
.doc-body figure.narrow img { max-width: min(600px, 100%); }
.doc-body figcaption { font-size: .88rem; color: var(--muted); margin-top: .6em; }
.doc-body kbd { font-size: .78rem; min-width: 0; padding: .05em .45em; border-bottom-width: 2px; }
.settings { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.settings > div { padding: 14px 18px; background: var(--surface); }
.settings > div + div { border-top: 1px solid var(--line); }
.settings dt { font-weight: 700; }
.settings dd { margin: 0; color: var(--muted); }
.settings dd.choices { font-size: .9rem; margin: .1em 0 .4em; }
.settings .default { color: var(--accent-soft); font-weight: 700; }
.settings .default::after { content: " (default)"; font-weight: 400; color: var(--muted); }
.keytable { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
.keytable caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding-bottom: .5em; }
.keytable th, .keytable td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keytable th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.keytable td:first-child { width: 42%; }
.keytable td + td { color: var(--muted); }
.doc-body .faq details:first-child { padding-top: 4px; }
