/* Starhearth site mock-ups: shared tokens, layout and the app screen drawn in CSS. Dark only, like the app. */
@font-face { font-family: Golos; src: url(golos_regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Golos; src: url(golos_bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0e0f;
  --bg-2: #161616;
  --surface: #1c1c1e;
  --raised: #2a2a2c;
  --line: #2f2f32;
  --text: #ffffff;
  --muted: #a9a9ad;
  --dim: #7c7c82;
  --red: #e8302a;
  --orange: #f69a3b;
  --flame: linear-gradient(100deg, #e8302a 0%, #f2622c 50%, #f69a3b 100%);
  --radius: 18px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 400 17px/1.55 Golos, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 32px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 16px; }
.nav-links a.on { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.lang span { padding: 4px 10px; border-radius: 999px; color: var(--dim); }
.lang span.on { background: var(--raised); color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); margin-left: auto; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; top: 15px; box-shadow: 0 5px 0 #fff; }
.burger::after { top: 25px; box-shadow: none; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 17px; background: var(--raised); }
.btn.primary { background: var(--flame); box-shadow: 0 10px 40px -10px rgba(242, 98, 44, .7); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.note { font-size: 14px; color: var(--dim); }

/* sections */
section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; display: grid; gap: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 98, 44, .12); color: var(--orange); }
.icon svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.chip i { font-style: normal; color: var(--dim); font-weight: 400; margin-left: 6px; }
.badge { display: inline-block; justify-self: start; align-self: start; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge.ok { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.badge.soon { background: rgba(246, 154, 59, .14); color: var(--orange); }
.badge.plan { background: var(--raised); color: var(--muted); }
.disclaimer { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 15px; background: var(--bg-2); }
.disclaimer b { color: var(--text); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.foot .brand { font-size: 20px; color: var(--text); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }

/* ---------- the app screen, drawn in CSS ---------- */
.tv { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #161616; container-type: inline-size; line-height: 1.3; text-align: left;
  box-shadow: 0 0 0 1px #2b2b2b, 0 40px 120px -30px rgba(0, 0, 0, .9); }
.tv .bar { position: absolute; inset: 0 0 auto 0; height: 9%; display: flex; align-items: center; gap: 1.2em; padding: 0 2.4% 0 2%; z-index: 2; }
.tv .bar img { height: 62%; }
.tv .bar b { font-size: 1.6em; }
.tv .bar .sp { flex: 1; }
.tv .bar .clock { font-size: 1.6em; }
.tv .bar .ava { width: 2.2em; height: 2.2em; border-radius: 50%; background: linear-gradient(135deg, #7b5cff, #3da5ff); }
.tv .rail { position: absolute; left: 0; top: 11%; bottom: 0; width: 5.4%; display: flex; flex-direction: column; align-items: center; gap: 2.6em; padding-top: 1.5em; z-index: 2; }
.tv .rail i { width: 1.7em; height: 1.7em; border: .18em solid #cfcfcf; border-radius: .45em; }
.tv .rail i.on { border-color: #fff; box-shadow: -1.1em 0 0 -.62em var(--orange); }
.tv .hero { position: absolute; left: 0; right: 0; top: 0; height: 58%; background-size: cover; background-position: center; }
.tv .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #161616 18%, rgba(22, 22, 22, .55) 52%, rgba(22, 22, 22, 0) 75%), linear-gradient(0deg, #161616 2%, rgba(22, 22, 22, 0) 40%); }
.tv .info { position: absolute; left: 7.4%; top: 13%; width: 46%; z-index: 2; display: grid; gap: .55em; }
.tv .info .k { display: flex; gap: .6em; align-items: center; color: #bbb; font-size: 1.15em; }
.tv .tag { padding: .15em .5em; border-radius: .3em; background: #3a3a3a; color: #fff; font-weight: 700; font-size: .9em; letter-spacing: .05em; }
.tv .tag.live { background: var(--orange); color: #161616; }
.tv .info h4 { margin: 0; font-size: 2.9em; line-height: 1.05; }
.tv .info .t { color: #bbb; font-size: 1.15em; }
.tv .prog { height: .35em; width: 62%; background: #444; border-radius: 1em; overflow: hidden; }
.tv .prog b { display: block; height: 100%; width: 38%; background: var(--orange); }
.tv .rows { position: absolute; left: 7.4%; right: 0; top: 55%; z-index: 2; display: grid; gap: .5em; }
.tv .rows h5 { margin: 0; font-size: 1.45em; }
.tv .row { display: flex; gap: 1.1%; }
.tv .tile { flex: 0 0 18.4%; display: grid; gap: .3em; }
.tv .tile .p { position: relative; aspect-ratio: 16 / 9; border-radius: .5em; background-size: cover; background-position: center; }
.tv .tile .p .tag { position: absolute; left: .5em; top: .5em; font-size: .8em; }
.tv .tile .p::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .6em; height: .25em; border-radius: 1em; background: linear-gradient(90deg, var(--orange) var(--w, 40%), #555 var(--w, 40%)); }
.tv .tile.cur .p { outline: .2em solid #fff; outline-offset: .15em; }
.tv .tile span { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv .tile small { color: #999; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the screen scales with its own width, not the window's */
.tv > div { font-size: 1.02cqw; }

/* device frames */
.frame-tv { padding: 1.2%; background: #0a0a0a; border-radius: 18px; box-shadow: 0 0 0 1px #262626; }
.frame-tv + .stand { width: 22%; height: 14px; margin: 0 auto; background: linear-gradient(#222, #111); border-radius: 0 0 10px 10px; }
.frame-tab { padding: 2.2%; background: #0b0b0b; border-radius: 34px; box-shadow: 0 0 0 1px #2a2a2a, 0 40px 100px -30px #000; }
.frame-tab .tv { border-radius: 14px; aspect-ratio: 16 / 10; }
.frame-phone { padding: 1.6% 3.2%; background: #0b0b0b; border-radius: 40px; box-shadow: 0 0 0 1px #2a2a2a, 0 40px 100px -30px #000; }
.frame-phone .tv { border-radius: 22px; aspect-ratio: 20 / 9; }

@media (max-width: 860px) {
  html { font-size: 16px; }
  section { padding: 72px 0; }
  .nav-links, .nav .lang, .nav .btn { display: none; }
  .burger { display: block; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .foot nav { margin-left: 0; }
}

/* ---------- more app screens: channels, player, film library (all sizes in em of the screen width) ---------- */
.tv .dimbg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tv .dimbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,22,22,.96) 0%, rgba(22,22,22,.9) 52%, rgba(22,22,22,.55) 100%); }
.tv .back { position: absolute; left: 1.6%; top: 2.6%; width: 3.2em; height: 3.2em; border-radius: 50%; background: #2a2a2a; display: grid; place-items: center; font-size: 1em; color: #ddd; }
.ch { position: absolute; inset: 8% 2% 0 5%; display: grid; grid-template-columns: 17% 33% 1fr; gap: 1.6%; }
.ch .grp, .ch .lst, .ch .epg { display: grid; align-content: start; gap: .25em; }
.ch .grp div { display: flex; justify-content: space-between; padding: .55em .9em; border-radius: .45em; font-size: 1.2em; color: #ddd; }
.ch .grp div i { font-style: normal; color: #888; font-size: .85em; }
.ch .grp div.on { background: #2c2c2c; color: #fff; box-shadow: inset .22em 0 0 var(--orange); }
.ch .lst div { display: grid; grid-template-columns: 1.8em 3.4em 1fr auto; gap: .7em; align-items: center; padding: .35em .6em; border-radius: .45em; }
.ch .lst div.on { background: #2c2c2c; box-shadow: inset .22em 0 0 var(--orange); }
.ch .lst .n { color: #888; text-align: right; font-size: 1.05em; }
.ch .lst .lg { height: 2.1em; border-radius: .35em; display: grid; place-items: center; font-weight: 700; font-size: .95em; letter-spacing: -.02em; }
.ch .lst b { display: block; font-size: 1.2em; font-weight: 400; color: #fff; }
.ch .lst small { color: #aaa; font-size: .95em; }
.ch .lst .eq { display: flex; gap: .15em; align-items: flex-end; height: 1.2em; }
.ch .lst .eq span { width: .25em; background: #fff; }
.ch .epg h6 { margin: 0 0 .6em; font-size: 1.45em; font-weight: 400; }
.ch .epg div { display: grid; grid-template-columns: 4.6em 1fr 1.2em; gap: .8em; padding: .5em .8em; border-radius: .45em; font-size: 1.15em; color: #bbb; }
.ch .epg div.on { background: #2c2c2c; color: #fff; }
.ch .epg div.on em { display: block; color: var(--orange); font-style: normal; font-weight: 700; font-size: .7em; letter-spacing: .05em; }
.ch .epg div.past { color: #8a8a8a; }
.ch .epg .ar { width: 1.1em; height: 1.1em; border: .13em solid #888; border-radius: 50%; }

.pl .video { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pl .video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 62%, rgba(0,0,0,.92) 88%); }
.pl .top { position: absolute; left: 5%; right: 5%; top: 5%; display: flex; justify-content: space-between; align-items: flex-start; }
.pl .top b { font-size: 2.6em; display: block; line-height: 1.1; }
.pl .top small { color: #bbb; font-size: 1.3em; }
.pl .top .clock { font-size: 2.3em; }
.pl .sub { position: absolute; left: 0; right: 0; top: 60%; text-align: center; }
.pl .sub span { background: rgba(0,0,0,.75); padding: .1em .4em; font-size: 2.1em; color: #e8e8e8; }
.pl .seek { position: absolute; left: 5%; right: 5%; top: 77%; }
.pl .seek .line { position: relative; height: .3em; background: #555; border-radius: 1em; }
.pl .seek .line b { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: var(--orange); border-radius: 1em; }
.pl .seek .line i { position: absolute; left: 34%; top: 50%; width: 1.2em; height: 1.2em; margin: -.6em; border-radius: 50%; background: var(--orange); border: .2em solid #fff; }
.pl .seek .bub { position: absolute; left: 34%; bottom: 1.4em; transform: translateX(-50%); background: #222; padding: .25em .6em; border-radius: .4em; font-weight: 700; font-size: 1.3em; }
.pl .seek .times { display: flex; justify-content: space-between; margin-top: .7em; font-size: 1.3em; }
.pl .ctr { position: absolute; left: 5%; right: 5%; bottom: 5%; display: flex; gap: 1em; align-items: center; }
.pl .ctr span { height: 3.6em; padding: 0 1.4em; border-radius: 2em; background: #232323; display: inline-flex; align-items: center; gap: .5em; font-size: 1.2em; font-weight: 700; }
.pl .ctr span.play { width: 3.6em; padding: 0; justify-content: center; background: #fff; color: #111; border-radius: 50%; font-size: 1.4em; }
.pl .ctr .sp { flex: 1; background: none; padding: 0; }
.pl .tech { position: absolute; right: 5%; top: 14%; display: flex; gap: .5em; }
.pl .tech span { font-size: 1em; font-weight: 700; padding: .2em .5em; border-radius: .3em; background: rgba(0,0,0,.6); border: .08em solid #666; color: #ddd; }

.lib .shelves { position: absolute; left: 1.6%; top: 11%; width: 17%; display: grid; gap: .1em; }
.lib .shelves div { padding: .5em .8em; font-size: 1.35em; color: #ddd; }
.lib .shelves div.on { color: #fff; box-shadow: inset .22em 0 0 var(--orange); }
.lib .glow { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(.4em); }
.lib .glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #161616 25%, rgba(22,22,22,.4) 100%), linear-gradient(0deg, #161616 45%, rgba(22,22,22,0) 75%); }
.lib .head { position: absolute; left: 22.5%; top: 10%; display: grid; gap: .5em; }
.lib .head .k { display: flex; gap: .6em; align-items: center; color: #bbb; font-size: 1.3em; }
.lib .head h4 { margin: 0; font-size: 3.3em; line-height: 1; }
.lib .head .t { color: #bbb; font-size: 1.3em; }
.lib .head .prog { height: .35em; width: 26em; background: #444; border-radius: 1em; overflow: hidden; }
.lib .head .prog b { display: block; height: 100%; width: 55%; background: var(--orange); }
.lib .shelf { position: absolute; left: 22.5%; right: 0; top: 37%; }
.lib .shelf h5 { margin: 0 0 .6em; font-size: 1.6em; }
.lib .posters { display: flex; gap: 1.2%; }
.lib .poster { flex: 0 0 11.3%; display: grid; gap: .3em; }
.lib .poster .p { position: relative; aspect-ratio: 2 / 3; border-radius: .5em; background-size: cover; background-position: center; overflow: hidden; display: flex; align-items: flex-end; padding: .7em; }
.lib .poster .p::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%); }
.lib .poster .p strong { position: relative; font-size: 1.3em; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.lib .poster.cur .p { outline: .2em solid #fff; outline-offset: .15em; }
.lib .poster span { font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib .poster small { color: #999; font-size: .95em; }
.lib .poster .bar { position: absolute; left: .7em; right: .7em; bottom: .5em; height: .25em; border-radius: 1em; background: linear-gradient(90deg, var(--orange) var(--w, 0%), rgba(255,255,255,.3) var(--w, 0%)); }

.inside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.inside figure { margin: 0; display: grid; gap: 14px; }
.inside figcaption { display: grid; gap: 4px; }
.inside figcaption b { font-size: 19px; }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } }
