:root {
  --bg: #14101F;
  --bg2: #1D1730;
  --line: #2E2648;
  --ink: #FFFFFF;
  --mute: #B8B0D0;
  --acc: #FFD84E;
  --acc2: #FF5A8A;
  --pass: #3DDC84;
  --mixed: #FFB020;
  --fail: #FF4D4D;
  --spot: #7CC6FF;
  --display: "Segoe UI Black", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: var(--acc); }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.acc { color: var(--acc); }
.acc2 { color: var(--acc2); }

/* header / footer */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 16, 31, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { font: 900 20px/1 var(--display); letter-spacing: .5px; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; white-space: nowrap; }
nav a { color: var(--mute); text-decoration: none; font-weight: 600; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--ink); }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; color: var(--mute); font-size: 14px; }
.foot .links a { margin-right: 18px; }

/* hero */
.hero { padding: 48px 0 28px; }
.hero h1 { font: 900 clamp(32px, 6vw, 60px)/1.05 var(--display); margin: 0 0 16px; letter-spacing: -.5px; }
.hero p { color: var(--mute); max-width: 560px; font-size: 18px; margin: 0; }

/* filters */
.tools { display: grid; gap: 12px; margin: 8px 0 22px; }
#q { width: 100%; max-width: 420px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; }
#q:focus { outline: 2px solid var(--acc); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg2); border: 1px solid var(--line); color: var(--mute); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--text); cursor: pointer; }
.chip b { color: var(--ink); margin-left: 4px; font-weight: 700; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.chip.on b { color: var(--bg); }

/* grid of Shorts-style cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--bg2); text-decoration: none; color: var(--ink); aspect-ratio: 9 / 16; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 2px var(--acc); outline: none; }
.thumb, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.over { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 12px; background: linear-gradient(to top, rgba(10, 8, 18, .97) 45%, rgba(10, 8, 18, 0)); }
.over h3 { margin: 6px 0 2px; font: 900 17px/1.15 var(--display); }
.over p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.35; }
.over .meta { margin-top: 6px; color: var(--acc); font-weight: 600; font-size: 12px; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; background: radial-gradient(circle at 30% 20%, #3a2a66, var(--bg2) 70%); }
.noimg span { font: 900 22px/1.1 var(--display); color: var(--acc); margin-bottom: 40%; }
.empty { color: var(--mute); text-align: center; padding: 32px 0; }

/* verdict stamps */
.stamp { display: inline-block; font: 900 11px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; color: var(--bg); background: var(--mute); }
.stamp.passed { background: var(--pass); }
.stamp.mixed { background: var(--mixed); }
.stamp.failed { background: var(--fail); color: var(--ink); }
.stamp.spotlight { background: var(--spot); }
.stamp.own { background: var(--acc2); color: var(--ink); }
.stamp.big { font-size: 14px; padding: 7px 11px; transform: rotate(-2deg); }

/* sections */
.band { margin-top: 64px; }
.band h2 { font: 900 30px/1.1 var(--display); margin: 0 0 6px; }
.lead { color: var(--mute); margin: 0 0 20px; }
.about { max-width: 760px; }
.about p { font-size: 17px; }
.about .stamp { vertical-align: 2px; }

/* game page */
.game { padding-top: 20px; }
.back { display: inline-block; color: var(--mute); text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
/* phone: title + Play first, then the short, then the details. desktop: short on the left */
.gamegrid { display: grid; gap: 22px; grid-template-columns: 1fr; grid-template-areas: "info" "player" "more"; }
.gamegrid .info { grid-area: info; }
.gamegrid .player { grid-area: player; }
.gamegrid .more { grid-area: more; }
.more .facts { margin-top: 0; }
@media (min-width: 820px) {
  .gamegrid { grid-template-columns: minmax(0, 400px) 1fr; grid-template-rows: auto 1fr; grid-template-areas: "player info" "player more"; column-gap: 36px; row-gap: 0; align-items: start; }
}
section[id] { scroll-margin-top: 72px; }
.player { position: relative; aspect-ratio: 9 / 16; width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; }
@supports (aspect-ratio: 1) { .player { max-width: calc(78vh * 9 / 16); } }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ytl { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.ytl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ytp { position: absolute; left: 50%; top: 58%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(20, 16, 31, .78); border: 3px solid var(--acc); transition: transform .15s ease; }
.ytp::after { content: ""; position: absolute; left: 29px; top: 21px; border-style: solid; border-width: 17px 0 17px 26px; border-color: transparent transparent transparent var(--acc); }
.ytl:hover .ytp, .ytl:focus-visible .ytp { transform: scale(1.08); }
.ytn { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 900 15px var(--display); color: var(--ink); text-shadow: 0 2px 8px #000; }
.info h1 { font: 900 clamp(30px, 5vw, 46px)/1.05 var(--display); margin: 14px 0 10px; }
.verdict { font: 900 22px/1.25 var(--display); margin: 0 0 10px; }
.verdict em { font-style: normal; color: var(--acc); }
.by { color: var(--mute); margin: 0 0 20px; }
.by strong { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 15px 22px; font: 900 18px/1.1 var(--display); text-decoration: none; margin: 0 10px 10px 0; }
.btn.play { background: var(--acc); color: var(--bg); box-shadow: 0 6px 0 #c9a520; }
.btn.play:hover { transform: translateY(1px); box-shadow: 0 5px 0 #c9a520; }
.btn.play:active { transform: translateY(5px); box-shadow: 0 1px 0 #c9a520; }
.btn.ghost { border: 2px solid var(--line); color: var(--ink); font-size: 15px; padding: 13px 18px; }
.btn.ghost:hover { border-color: var(--acc); }
.soon { color: var(--mute); }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.facts li { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.facts span { display: block; color: var(--mute); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.hook { font: 900 20px/1.2 var(--display); color: var(--mute); border-left: 4px solid var(--acc2); padding-left: 14px; margin: 22px 0; }
.badge { margin-top: 26px; color: var(--mute); font-size: 14px; }
.badge summary { cursor: pointer; font-weight: 600; }
.badge img { margin: 12px 0; }
.badge textarea { width: 100%; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.4 ui-monospace, Consolas, monospace; resize: none; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.pn a { text-decoration: none; color: var(--ink); font-weight: 700; max-width: 48%; }
.pn a.r { text-align: right; }
.pn span { display: block; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.notfound { padding: 80px 16px; }
.notfound h1 { font: 900 40px/1.1 var(--display); }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .over { padding: 40px 9px 9px; }
  .over h3 { font-size: 15px; }
  .over p:not(.meta) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  nav a { margin-left: 12px; font-size: 14px; }
  .logo { font-size: 17px; }
  .btn.play { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } }
