/* Your VJ Apps — one stylesheet for the store and the admin.
   Same palette as the app, the splash and the store banner. */

:root {
  --bg: #0c0608;
  --panel: #150a0e;
  --panel-2: #1f1016;
  --panel-3: #2a1520;
  --line: #36191f;
  --line-2: #4a2330;
  --text: #f7ede8;
  --muted: #b39b98;
  --red: #d32f2f;
  --red-2: #e84545;
  --red-deep: #8e1024;
  --gold: #e8a94a;
  --gold-2: #ffc46b;
  --cream: #f2dcc0;
  --focus: #ffd27a;
  --ok: #3fb97a;
  --bad: #ef6b6b;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

/* Scales type up on TV-width screens without media-query steps. */
html { font-size: clamp(15px, 0.42vw + 11px, 21px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 650px at 6% -12%, rgba(179, 18, 42, .42), transparent 62%),
    radial-gradient(800px 560px at 108% 4%, rgba(232, 169, 74, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

main { flex: 1; width: 100%; }
a { color: inherit; }
img { max-width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; word-break: break-all; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.01em; }
h2, .h2 { font-size: 1.3rem; }
p { margin: 0 0 .8em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Drawn big: it has to be visible from across a room with a D-pad. */
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 12px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.fine { color: var(--muted); font-size: .86rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: #e9d9d3; max-width: 36em; overflow-wrap: anywhere; }

/* ── Header / footer ───────────────────────────────────────────────────── */

.admin-bar { background: #2a1520; border-bottom: 1px solid var(--line-2); font-size: .82rem; padding: .4em 0; }
.admin-bar .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.admin-bar a { color: var(--gold-2); font-weight: 700; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.notice-bar { background: linear-gradient(90deg, var(--red-deep), #a3162c); color: #fff; font-size: .9rem; font-weight: 600; padding: .55em 0; text-align: center; }

.top { padding: 14px 0; position: sticky; top: 0; z-index: 20; background: rgba(12, 6, 8, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(58, 28, 36, .6); }
.top-inner { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.12rem; white-space: nowrap; }
.brand img { border-radius: 10px; }
.brand b { color: var(--gold); font-weight: 700; }

.search { flex: 1; min-width: 180px; max-width: 460px; display: flex; align-items: center; gap: .5em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 1em; color: var(--muted); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: .6em 0; outline: none; }
.search input::placeholder { color: var(--muted); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.nav a, .linkish {
  text-decoration: none; padding: .5em .9em; border-radius: 999px; color: var(--muted);
  font: inherit; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav a.on, .linkish:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 999px 999px 8px 8px; }

.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 36px 0 20px; font-size: .9rem; background: rgba(0, 0, 0, .25); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand p { max-width: 30em; margin-top: .8em; }
.foot-links { display: flex; flex-direction: column; gap: .45em; }
.foot-links b { color: var(--cream); margin-bottom: .2em; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-base { color: var(--muted); font-size: .8rem; margin-top: 28px; }

/* ── Buttons, chips ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.35em; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(211, 47, 47, .8);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid var(--line-2); color: var(--text); }
.btn-danger { background: #5b1520; box-shadow: none; }
.btn-sm { padding: .45em .9em; font-size: .88rem; border-radius: 10px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); font-size: .8rem; color: var(--cream); text-decoration: none; }
.chip.on { background: rgba(232, 169, 74, .16); border-color: rgba(232, 169, 74, .5); color: var(--gold-2); }
.chip-sm { padding: .1em .55em; font-size: .72rem; }

.badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25em .65em; border-radius: 999px; }
.badge-tv { background: rgba(232, 169, 74, .16); color: var(--gold); }
.badge-phone { background: rgba(255, 255, 255, .09); color: #ddd2cf; }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .6em; }
.dl-count { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.dl-count svg { color: var(--gold); flex: none; }
.rating-chip { display: inline-flex; align-items: center; gap: .2em; font-weight: 700; color: var(--text); white-space: nowrap; }
.rating-chip svg { color: var(--gold-2); }

.more { display: inline-block; color: var(--gold); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; }

/* ── Icons ─────────────────────────────────────────────────────────────── */

.icon { width: 76px; height: 76px; flex: none; border-radius: 20px; object-fit: cover; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .8); background: var(--panel-2); }
.icon.mono { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--red), var(--red-deep)); font-size: 2rem; font-weight: 800; color: #fff; }
.icon-lg { width: clamp(96px, 12vw, 136px); height: clamp(96px, 12vw, 136px); border-radius: 28px; }
.icon-md { width: 58px; height: 58px; border-radius: 15px; font-size: 1.5rem; }
.icon-sm { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }

/* ── Home ──────────────────────────────────────────────────────────────── */

.spotlight {
  position: relative; overflow: hidden; margin-top: clamp(14px, 2.4vw, 28px);
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center;
  gap: clamp(16px, 3vw, 36px); padding: clamp(16px, 2.6vw, 30px);
  background: radial-gradient(700px 400px at 85% 50%, rgba(211, 47, 47, .35), transparent 70%), linear-gradient(135deg, #3a0a14, #160a0e 65%);
  box-shadow: var(--shadow);
}
.spotlight-plain { grid-template-columns: 1fr; }
.spot-media { order: 2; display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95); border: 1px solid rgba(255, 255, 255, .08); }
.spot-media img { width: 100%; height: 100%; aspect-ratio: 1024 / 500; object-fit: cover; display: block; transition: transform .4s ease; }
.spot-media:hover img { transform: scale(1.03); }
.spot-body { position: relative; padding: clamp(4px, 1.4vw, 16px); min-width: 0; }
.spot-id { display: flex; align-items: center; gap: 14px; margin-bottom: .6em; }
.spot-id h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0; }
.spot-tag { font-size: 1.08rem; color: #eee0da; }
.spotlight .card-meta { margin-bottom: 1.1em; }

.strips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; margin-top: 16px; }
.tv-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: .9em 1.2em; border-radius: var(--radius); border: 1px dashed rgba(232, 169, 74, .45);
  background: rgba(232, 169, 74, .06); color: #eee0da;
}
.tv-strip > svg { color: var(--gold); flex: none; }
.tv-strip > div { flex: 1; min-width: 220px; }
.tv-strip .shortcut-inline { font-size: 1.05rem; }

.section { margin-top: clamp(28px, 4vw, 44px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2, .section-head .h2 { margin: 0; font-size: 1.35rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.tile {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: #6a2b36; box-shadow: var(--shadow); }
.tile-media { position: relative; aspect-ratio: 16 / 9; background: #120709; display: block; overflow: hidden; }
.tile-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tile:hover .tile-media > img, .tile:focus-visible .tile-media > img { transform: scale(1.04); }
.tile-media .badge { position: absolute; top: 10px; left: 10px; background: rgba(12, 6, 8, .78); backdrop-filter: blur(4px); }
.tile-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(211, 47, 47, .45), transparent 60%), linear-gradient(160deg, #2a0e16, #120709); }
.tile-fallback .icon { width: 42%; height: auto; aspect-ratio: 1; max-width: 132px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9); }
.tile-body { display: flex; gap: 12px; align-items: center; padding: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(12px, 2vw, 18px); }
.card {
  display: flex; gap: 1em; align-items: center; text-decoration: none; min-width: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9em;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: #6a2b36; box-shadow: var(--shadow); }
.card-body { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.card-title { font-size: 1.08rem; font-weight: 700; }
.card-dev { color: var(--gold); font-size: .8rem; font-weight: 600; }
.card-text { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .9em; color: var(--cream); font-size: .8rem; margin-top: .25em; }
.card-meta > span:not(.badge):not(.rating-chip):not(.dl-count) { opacity: .8; }
.tiles > *, .grid > *, .charts > * { min-width: 0; }

.charts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px 22px; }
.charts li { display: flex; align-items: center; gap: 12px; }
.rank { width: 1.6em; flex: none; text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.charts .card { flex: 1; background: none; border-color: transparent; padding: .5em; }
.charts .card:hover, .charts .card:focus-visible { background: var(--panel-2); border-color: var(--line); transform: none; box-shadow: none; }
.charts .icon { width: 58px; height: 58px; border-radius: 15px; }
.charts .card-text { display: none; }

.about { margin-top: clamp(32px, 5vw, 56px); }
.faq { margin-top: 1em; display: grid; gap: 8px; }
.faq details { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: .75em 1em; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--cream); }
.faq details[open] summary { margin-bottom: .5em; }
.faq p { margin: 0; }

.shortcut {
  font-family: ui-monospace, Consolas, monospace; font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #fff; letter-spacing: .01em;
  background: rgba(0, 0, 0, .35); border: 1px dashed var(--gold); border-radius: 12px;
  padding: .45em .7em; display: block; width: fit-content; max-width: 100%;
  margin: .15em 0 .6em; word-break: break-all;
}
.shortcut-inline { font-family: ui-monospace, Consolas, monospace; color: #fff; font-weight: 700; }
.code { font-family: ui-monospace, Consolas, monospace; color: var(--gold); font-size: 1.2em; }

/* ── App page ──────────────────────────────────────────────────────────── */

.app-head { display: flex; gap: clamp(16px, 3vw, 30px); align-items: center; padding: clamp(22px, 4vw, 44px) 0 clamp(14px, 2vw, 22px); }
.app-head-body { min-width: 0; }
.app-head h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: .15em; overflow-wrap: anywhere; }
.dev { color: var(--gold); font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: .55em; }
.dev:hover { text-decoration: underline; }
.labels { color: var(--muted); font-size: .8rem; margin: -.3em 0 .5em; }
.note { margin: .6em 0; padding: .7em 1em; border-radius: 12px; background: rgba(232, 169, 74, .1); border: 1px solid rgba(232, 169, 74, .4); }
.device-hint { margin-top: 12px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { padding: .35em .85em; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .85rem; color: var(--cream); background: rgba(255, 255, 255, .04); }
.toc a:hover { border-color: var(--gold); }
.steps > li { scroll-margin-top: 90px; }
.steps h2 .chip { vertical-align: middle; margin-left: .4em; }
.brand-steps { margin-top: .6em; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: .7em 1em; }
.brand-steps summary { cursor: pointer; font-weight: 700; color: var(--gold-2); }
.brand-steps dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5em 1em; margin: .8em 0; font-size: .92rem; }
.brand-steps dt { font-weight: 700; color: var(--cream); }
.brand-steps dd { margin: 0; }
.checklist { margin: .4em 0 .8em; padding-left: 1.2em; }
.checklist li { margin-bottom: .5em; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 24px 0 34px; }
.help-card { display: flex; flex-direction: column; gap: .35em; padding: 1.3em; border-radius: var(--radius); text-decoration: none; background: linear-gradient(160deg, rgba(211, 47, 47, .18), rgba(21, 10, 14, .9)); border: 1px solid #5a2430; transition: transform .15s ease, border-color .15s ease; }
.help-card:hover, .help-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.help-card svg { color: var(--gold); }
.help-card b { font-size: 1.2rem; }
.help-card span { color: var(--muted); }
.help-h { scroll-margin-top: 90px; margin-top: 10px; }
.contact-panel { margin-top: 24px; }

.stats { display: flex; overflow-x: auto; gap: 0; margin: 4px 0 20px; padding: 4px 0; scrollbar-width: none; }
.stats::-webkit-scrollbar { display: none; }
.stat { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .2em clamp(16px, 2.6vw, 30px); text-decoration: none; border-left: 1px solid var(--line-2); min-width: 104px; text-align: center; }
.stat:first-child { border-left: 0; padding-left: 4px; align-items: flex-start; text-align: left; }
.stat b { font-size: 1.05rem; display: inline-flex; align-items: center; gap: .2em; }
.stat b svg { color: var(--gold-2); }
.stat span { color: var(--muted); font-size: .76rem; }
a.stat:hover b { color: var(--gold-2); }

.app-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: .6em; }
.btn-download { padding: .8em 2.4em; font-size: 1.1rem; min-width: min(100%, 260px); flex-wrap: wrap; row-gap: 0; }
.btn-download small { flex-basis: 100%; text-align: center; font-weight: 500; font-size: .7em; opacity: .9; }
.btn-download:focus-visible { transform: scale(1.03); }
.btn-share svg { color: #25d366; }

.shots-wrap { margin: 22px 0 8px; position: relative; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.shot { flex: none; scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #120709; display: block; }
.shots-wide .shot { height: clamp(160px, 22vw, 260px); }
.shots-tall .shot { height: clamp(280px, 36vw, 440px); }
.shot img { height: 100%; width: auto; display: block; transition: transform .25s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; margin-top: 22px; align-items: start; }
.app-side { position: sticky; top: 90px; }

.panel { background: rgba(21, 10, 14, .85); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 28px); margin-bottom: 18px; }
.panel h2 { font-size: 1.2rem; }
.prose p { color: #eadcd6; max-width: 46em; }
.tv-steps { background: linear-gradient(160deg, rgba(211, 47, 47, .14), rgba(21, 10, 14, .9)); border-color: #5a2430; }
.tv-steps ol, .versions { margin: 0; padding-left: 1.3em; }
.tv-steps li { margin-bottom: .5em; }
.versions { list-style: none; padding: 0; }
.versions li { display: flex; gap: 14px; flex-wrap: wrap; padding: .55em 0; border-top: 1px solid var(--line); }
.versions li:first-child { border-top: 0; }
.versions a { color: var(--cream); font-weight: 600; }
.versions-panel summary, .verify summary { cursor: pointer; font-weight: 700; color: var(--cream); }
.versions-panel[open] summary { margin-bottom: .8em; }
.verify { margin-top: 1em; }
.verify summary { font-weight: 600; font-size: .88rem; color: var(--muted); }
.verify[open] summary { margin-bottom: .6em; }

.info, .links { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55em 1.2em; margin: 0; font-size: .92rem; }
.info dt, .links dt { color: var(--muted); }
.info dd, .links dd { margin: 0; }
.mini-list { display: grid; gap: 6px; }
.mini-list .card { background: none; border-color: transparent; padding: .45em; }
.mini-list .card:hover, .mini-list .card:focus-visible { background: var(--panel-2); border-color: var(--line); transform: none; box-shadow: none; }
.mini-list .icon { width: 52px; height: 52px; border-radius: 13px; }
.mini-list .card-text, .mini-list .badge { display: none; }

/* Ratings */
.stars { width: 6.2em; height: 1.15em; display: inline-block; vertical-align: middle; }
.stars-sm { width: 4.6em; height: .86em; }
.st-empty { fill: #4a2a31; }
.st-full { fill: var(--gold-2); }
.rating-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 34px; align-items: center; margin: .4em 0 1.4em; }
.rating-big { display: flex; flex-direction: column; align-items: flex-start; gap: .25em; }
.rating-big b { font-size: 3.2rem; line-height: 1; font-weight: 800; }
.rating-bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 1em minmax(0, 1fr) 2.5em; gap: 10px; align-items: center; font-size: .82rem; }
.bar-row svg { width: 100%; height: 9px; display: block; }
.bar-bg { fill: #2c161c; }
.bar-fill { fill: var(--gold); }

.reviews { display: grid; gap: 4px; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-name { font-size: .95rem; }
.review-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3em .7em; font-size: .8rem; color: var(--muted); }
.review-body { margin: .6em 0 0 52px; }
.review-body p { margin-bottom: .4em; color: #eadcd6; }
.reply { margin: .8em 0 0 52px; padding: .8em 1em; border-left: 3px solid var(--gold); background: rgba(232, 169, 74, .06); border-radius: 0 12px 12px 0; font-size: .92rem; }
.reply b { color: var(--gold-2); }
.reply p { margin: .3em 0 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; }
.av-0 { background: #b3261e; } .av-1 { background: #8e24aa; } .av-2 { background: #1565c0; } .av-3 { background: #00897b; }
.av-4 { background: #ef6c00; } .av-5 { background: #6d4c41; } .av-6 { background: #2e7d32; } .av-7 { background: #ad1457; }

.review-form { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.review-form h3 { font-size: 1.05rem; margin: 0; }
.star-input { display: flex; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; padding: 4px; border-radius: 10px; }
.star-input svg { width: 2.4rem; height: 2.4rem; fill: #3f2229; transition: fill .1s ease, transform .1s ease; display: block; }
.star-input label.on svg, .star-input input:checked + label svg { fill: var(--gold-2); }
.star-input label:hover svg { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 4px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 2, 3, .94); display: flex; align-items: center; justify-content: center; padding: 3vh 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 56px; height: 56px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── TV guide ──────────────────────────────────────────────────────────── */

.guide { max-width: 860px; margin: 0 auto; padding-top: clamp(24px, 5vw, 56px); }
.guide h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; }
.steps > li {
  counter-increment: step; position: relative; padding: 1.2em 1.4em 1em 4.6em; margin-bottom: 14px;
  background: rgba(21, 10, 14, .85); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 1.1em; top: 1.05em;
  width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red), var(--red-deep)); font-weight: 800;
}
.steps h2 { font-size: 1.15rem; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h1 { color: var(--text); }
.title-with-icon { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.title-with-icon h1 { margin: 0; }
.title-with-icon p { margin: 0; }

/* ── Forms, messages ───────────────────────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select, .filter-app select {
  font: inherit; font-weight: 400; color: var(--text); background: #0f0709;
  border: 1px solid var(--line-2); border-radius: 10px; padding: .65em .8em; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--gold); outline: none; }
.form textarea { resize: vertical; }
.form input[type=file] { padding: .5em; }
.form .check { flex-direction: row; align-items: flex-start; gap: .6em; font-weight: 400; }
.form .check input { margin-top: .3em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { align-self: flex-start; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { padding: .65em .6em; background: #1c0c11; border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.prefix-input input { border-radius: 0 10px 10px 0 !important; }
.override summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .88rem; }
.override[open] summary { margin-bottom: .6em; }

.progress { height: 10px; background: #0f0709; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .2s; }

.flash { padding: .85em 1.1em; border-radius: 12px; margin-bottom: 14px; border: 1px solid; }
.flash-ok { background: rgba(63, 185, 122, .1); border-color: rgba(63, 185, 122, .4); }
.flash-error { background: rgba(239, 107, 107, .1); border-color: rgba(239, 107, 107, .45); }
.flash-warn { background: rgba(232, 169, 74, .1); border-color: rgba(232, 169, 74, .45); }
.flash a { color: var(--gold-2); }

/* ── Admin ─────────────────────────────────────────────────────────────── */

.admin h1 { font-size: 1.7rem; margin: 0; }
.admin.has-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; background: rgba(0, 0, 0, .35); border-right: 1px solid var(--line); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: .65em .9em; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side-nav a.on { background: linear-gradient(90deg, rgba(211, 47, 47, .28), rgba(211, 47, 47, .06)); color: var(--text); box-shadow: inset 3px 0 0 var(--red-2); }
.side-nav svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.side-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; padding: .1em .55em; border-radius: 999px; }
.side-out { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.admin-main { padding: 26px clamp(16px, 3vw, 40px) 60px; max-width: 1280px; width: 100%; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.row-between.tight { margin-bottom: 10px; }
.row-between.tight h2 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-grid .panel { margin-bottom: 18px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kpi b { font-size: 1.9rem; line-height: 1.2; display: inline-flex; align-items: center; gap: .15em; }
.kpi b svg { width: .7em; height: .7em; color: var(--gold-2); }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi .up { color: var(--ok); font-weight: 700; }
.kpi .down { color: var(--bad); font-weight: 700; }
.kpi a { color: var(--gold); }

.chart { width: 100%; height: 180px; display: block; }
.chart .bar { fill: #e0524a; }
.chart .bar:hover { fill: var(--gold-2); }
.chart .bar-zero { fill: #2c161c; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 6px; }

.app-rows, .rev-rows { list-style: none; margin: 0; padding: 0; }
.app-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.app-rows li:first-child { border-top: 0; }
.app-rows a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.app-rows a span { display: flex; flex-direction: column; min-width: 0; }
.app-rows .num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rev-rows li { padding: 10px 0; border-top: 1px solid var(--line); }
.rev-rows li:first-child { border-top: 0; }
.rev-rows p { margin: .3em 0 0; font-size: .9rem; color: #e2d4ce; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.jump a { padding: .35em .85em; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .84rem; color: var(--cream); background: rgba(255, 255, 255, .04); }
.jump a:hover { border-color: var(--gold); color: var(--gold-2); }
.admin-main section[id] { scroll-margin-top: 16px; }
.notes-row td { padding-top: 0 !important; }
.notes-edit summary { cursor: pointer; font-size: .86rem; list-style: none; }
.notes-edit summary::-webkit-details-marker { display: none; }
.notes-edit[open] .form { margin-top: 8px; }
.table tr:has(+ .notes-row) td { border-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-app { margin-left: auto; }
.filter-app select { width: auto; padding: .4em .7em; }
.review-admin.status-pending { border-color: rgba(232, 169, 74, .5); }
.review-admin.status-hidden { opacity: .65; }
.review-admin .review-body, .review-admin .reply, .review-admin > p.muted { margin-left: 52px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0 52px; }
.reply-box { flex-basis: 100%; }
.reply-box summary { display: inline-block; list-style: none; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box[open] .form { margin-top: 8px; }

.banner-preview { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.banner-preview img { width: min(100%, 420px); border-radius: 12px; border: 1px solid var(--line); }
.shot-admin { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.shot-admin li { background: #0f0709; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-admin img { height: 120px; width: auto; display: block; }
.shot-tools { display: flex; justify-content: space-between; padding: 2px 4px; }

.auth { max-width: 520px; margin: 48px auto; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: .5em 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.checks .ok b { color: var(--ok); }
.checks .bad b { color: var(--bad); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.table a { color: var(--cream); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.actions { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.linkish { padding: .3em .5em; color: var(--cream); font-size: .88rem; }
.linkish.danger { color: var(--bad); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.pill-ok { background: rgba(63, 185, 122, .15); color: var(--ok); }
.pill-gold { background: rgba(232, 169, 74, .16); color: var(--gold); }
.pill-bad { background: rgba(239, 107, 107, .15); color: var(--bad); margin-left: 4px; }
.danger-zone { border-color: #5b1a24; }

/* ── Narrow screens ────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-side { position: static; }
  .admin.has-side { display: block; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav a { padding: .45em .7em; }
  .side-nav svg { display: none; }
  .side-out { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
}

@media (max-width: 760px) {
  .top { position: static; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { margin-left: 0; }
  .admin-grid, .form-row, .foot-grid { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spot-media { order: 0; }
  .app-head { align-items: flex-start; }
  .icon { width: 64px; height: 64px; border-radius: 16px; }
  .icon-lg { width: 88px; height: 88px; border-radius: 22px; }
  .rating-summary { grid-template-columns: 1fr; }
  .review-body, .reply, .review-admin .review-body, .review-admin .reply, .review-admin > p.muted, .review-actions { margin-left: 0; }
  .info, .links, .brand-steps dl { grid-template-columns: 1fr; gap: .1em; }
  .info dd, .links dd { margin-bottom: .5em; }
  .app-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .app-rows li > .num:last-child { display: none; }
  .btn-download { flex: 1; }
}
