:root {
  --bg: #0f1226;
  --bg-2: #161a36;
  --card: #1b2046;
  --card-2: #222863;
  --line: rgba(255,255,255,.10);
  --text: #f0f2ff;
  --dim: #aab2dd;
  --brand: #5b6cff;
  --brand-2: #9b5bff;
  --accent: #ff5bb0;
  --gold: #ffd24a;
  --radius: 16px;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); line-height: 1.7; min-height: 100vh;
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 520px at 50% -10%, #29306b, transparent 60%), linear-gradient(180deg, var(--bg), #090b18);
  background-attachment: fixed;
}
a { color: inherit; }
main { max-width: var(--maxw); margin: 0 auto; padding: 8px 18px 30px; }

.site-header { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 14px 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: .5px; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(91,108,255,.45)); }
.brand-text { color: var(--text); }
.brand-text span { color: var(--brand); }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-nav a { color: var(--dim); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .15s; }
.site-nav a:hover { color: var(--gold); }

.hero { background: linear-gradient(120deg, rgba(91,108,255,.22), rgba(155,91,255,.16)); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; margin: 10px 0 22px; }
.hero h1 { margin: 0 0 8px; font-size: 30px; }
.hero p { margin: 0; color: #d9deff; max-width: 800px; }
.hero.small { padding: 18px 22px; } .hero.small h1 { font-size: 24px; }

.section { margin: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; margin: 0; border-inline-start: 4px solid var(--brand); padding-inline-start: 12px; }
.more { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 14px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .1s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); border-color: rgba(91,108,255,.6); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.card-thumb { position: relative; aspect-ratio: 4/3; background: #0d1024; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; display: grid; place-items: center; background: linear-gradient(180deg,var(--brand),var(--brand-2)); color: #fff; border-radius: 50%; font-size: 20px; opacity: 0; transition: opacity .15s; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.card:hover .card-play { opacity: 1; }
.card-title { padding: 9px 10px; font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }

.crumb { color: var(--dim); font-size: 14px; margin: 6px 0 14px; }
.crumb a { color: var(--gold); text-decoration: none; }

.game-section h1 { font-size: 24px; margin: 6px 0 14px; }
.player { background: #05060f; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 980px; margin: 0 auto; }
.player-frame { position: relative; width: 100%; padding-top: min(var(--ratio), 70%); background: #05060f; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; align-content: center; gap: 10px; }
.player-poster::before { content: ""; position: absolute; inset: 0; background: rgba(7,9,20,.5); }
.play-big { position: relative; width: 86px; height: 86px; display: grid; place-items: center; background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 50%; font-size: 34px; box-shadow: 0 10px 30px rgba(91,108,255,.55); }
.play-label { position: relative; color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 6px #000; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg-2); }
.player-name { color: var(--dim); font-weight: 700; font-size: 14px; }
.btn { appearance: none; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font: inherit; font-weight: 800; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.12); }

/* CSS fullscreen (works on phone + PC, unlike the Fullscreen API on iOS) */
body.fs-lock { overflow: hidden; }
.player.fs { position: fixed; inset: 0; z-index: 99999; max-width: none; border-radius: 0; margin: 0; display: flex; flex-direction: column; }
.player.fs .player-frame { flex: 1 1 auto; padding-top: 0; height: auto; }

.content { max-width: 820px; margin: 26px auto; }
.content h2 { font-size: 22px; border-inline-start: 4px solid var(--gold); padding-inline-start: 12px; margin: 0 0 12px; }
.content h3 { font-size: 18px; margin: 18px 0 6px; }
.content p { color: #d9deff; }
.kwlinks { line-height: 2.2; }
.kwlinks a { color: var(--gold); text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; margin: 3px 4px; display: inline-block; font-weight: 700; font-size: 14px; }
.kwlinks a:hover { background: rgba(91,108,255,.25); color: #fff; }
.searches { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.searches li { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: #d9deff; }
.searches li::before { content: "🔍 "; opacity: .6; }

.site-footer { max-width: var(--maxw); margin: 30px auto 0; padding: 22px 18px 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 600px) { .hero h1 { font-size: 24px; } .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .brand { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .card { transition: none; } }
