:root {
  --bg: #0c0c14;
  --card: #14141f;
  --hover: #1c1c2e;
  --muted: #1a1a28;
  --text: #e8e8f0;
  --text2: #8888a0;
  --text3: #55556a;
  --accent: #00e68a;
  --accent-hover: #00ff99;
  --purple: #8b5cf6;
  --nav-active: #9757ff;
  --border: #2a2a3e;
  --ad-bg: #111119;
  --hot: #ff4466;
  --star: #ffaa22;
  --site: 1200px;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; }
button, input { font-family: inherit; }
img { display: block; max-width: 100%; }

.site { max-width: var(--site); margin: 0 auto; padding: 0 24px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--site);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s;
}
.header.scrolled .header-inner { height: 52px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo {
  font-family: Syne, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .search-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(0, 230, 138, 0.1); }
.nav a.active {
  color: var(--nav-active);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 0 var(--nav-active);
}
.search-link {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
}
.search-link:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 90;
}
.header.scrolled .mobile-menu { top: 52px; }
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .inner { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
}
.mobile-menu a:hover { background: rgba(0, 230, 138, 0.05); }
.mobile-menu a.active {
  color: var(--nav-active);
  background: rgba(151, 87, 255, 0.1);
  box-shadow: inset 4px 0 0 0 var(--nav-active);
}
.mobile-search {
  margin-top: 8px;
  justify-content: center !important;
  background: var(--accent);
  color: var(--bg) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px !important;
}

.adv { margin: 0 auto; }

.section { padding: 28px 0 8px; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: 0.3s;
  animation: fade-in 0.45s both;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 138, 0.3);
  box-shadow: var(--shadow);
}
.thumb {
  aspect-ratio: 16 / 10;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.thumb img, .poster img, .feature img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--hot);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: 0.25s;
}
.card:hover .play-overlay, .poster:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 230, 138, 0.3);
}
.play-btn svg { width: 18px; height: 18px; margin-left: 2px; fill: var(--bg); }
.meta { padding: 8px 12px 10px; }
.meta h3, .poster h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.meta-row, .poster-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
}
.stars { color: var(--star); }

.hero {
  max-width: var(--site);
  margin: 0 auto;
  padding: 10px 24px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: Syne, "Segoe UI", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 800;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--text2); font-size: 15px; max-width: 420px; line-height: 1.7; margin: 0 0 24px; }
.stats { display: flex; gap: 24px; margin-top: 24px; }
.stats b { display: block; font-size: 20px; color: var(--accent); }
.stats span { font-size: 12px; color: var(--text3); }
.feature {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.feature img { transition: transform 0.7s; }
.feature:hover img { transform: scale(1.05); }
.feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 45%, transparent);
  display: flex;
  align-items: flex-end;
}
.feature-copy { padding: 0 24px 24px; }
.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature h2 { margin: 0; font-size: 24px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 16px;
}
.block-head h2 {
  margin: 0;
  font-family: Syne, "Segoe UI", sans-serif;
  font-size: 20px;
  color: #fff;
}
.view-all { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; }
.view-all:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  margin-bottom: 36px;
}
.rank {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.rank h3 {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: #fff;
}
.rank a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.rank a:hover { background: var(--hover); }
.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--muted);
  color: var(--text3);
  flex-shrink: 0;
}
.rank-num.top { background: var(--accent); color: var(--bg); }
.rank img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.rank .name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .cat { font-size: 10px; color: var(--text3); }
.rank .txt { min-width: 0; flex: 1; }

.page {
  max-width: var(--site);
  margin: 0 auto;
  padding: 32px 24px 48px;
  min-height: calc(100vh - 280px);
}
.page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.bar { width: 8px; height: 32px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 16px rgba(0,230,138,0.35); flex-shrink: 0; }
.page-title h1 {
  margin: 0;
  font-family: Syne, "Segoe UI", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-title p { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); }
.rule { height: 1px; flex: 1; background: var(--border); opacity: 0.5; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.poster {
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: 0.3s;
  animation: fade-in 0.45s both;
}
.poster:hover { transform: translateY(-6px); border-color: rgba(0,230,138,0.3); box-shadow: var(--shadow); }
.poster .art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--muted); }
.poster .art img { transition: transform 0.5s; }
.poster:hover .art img { transform: scale(1.1); }
.poster .body { padding: 12px; }
.poster h3 { font-size: 14px; margin-bottom: 6px; }
.live { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 0.04em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.rate { font-size: 10px; color: var(--accent); font-weight: 800; font-style: italic; }
.hot-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 800;
  font-style: italic;
  border-radius: 4px;
}

.search-box { max-width: 640px; margin-bottom: 40px; }
.search-label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.search-label .mark { width: 6px; height: 24px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 16px rgba(0,230,138,0.35); }
.search-label h1 { margin: 0; font-family: Syne, sans-serif; font-size: 20px; font-style: italic; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.search-row { position: relative; }
.search-row input {
  width: 100%;
  padding: 16px 120px 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.search-row input:focus { border-color: rgba(0,230,138,0.5); box-shadow: 0 0 0 4px rgba(0,230,138,0.05); }
.search-row button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
}
.search-row button:hover { background: var(--accent-hover); }
.hint { margin: 12px 0 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); }
.found { margin-bottom: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); }
.found b { color: var(--accent); }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text3);
  opacity: 0.7;
}
.empty .emo { font-size: 56px; margin-bottom: 16px; }
.empty p { letter-spacing: 0.2em; font-size: 12px; font-weight: 700; text-transform: uppercase; }

.crumb { max-width: var(--site); margin: 0 auto; padding: 14px 24px 0; font-size: 12px; color: var(--text3); }
.crumb a { color: var(--text2); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.game-layout {
  max-width: var(--site);
  margin: 0 auto;
  padding: 14px 24px 36px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
.player, .side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stage {
  position: relative;
  aspect-ratio: 16 / 12;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
a.cover-play { color: inherit; text-decoration: none; }
.cover-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cover-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.1); opacity: 0.6; }
.big-play {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,230,138,0.25);
  transition: 0.3s;
}
.cover-play:hover .big-play { transform: scale(1.1); }
.big-play svg { width: 36px; height: 36px; margin-left: 4px; fill: var(--bg); }
.cover-play span {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
}
.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text3);
  font-family: ui-monospace, monospace;
}
.player-bar .facts { display: flex; gap: 14px; flex-wrap: wrap; }
.fs-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.fs-btn:hover { border-color: var(--accent); color: var(--accent); }
.side-card h1 {
  margin: 0 0 8px;
  font-family: Syne, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.side-head, .side-body { padding: 16px; }
.side-head { border-bottom: 1px solid var(--border); }
.rating-line { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text2); }
.desc { font-size: 13px; color: var(--text2); line-height: 1.7; margin: 0 0 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat {
  background: var(--muted);
  border-radius: 6px;
  text-align: center;
  padding: 8px;
}
.stat b { display: block; color: var(--accent); font-size: 16px; }
.stat span { font-size: 10px; color: var(--text3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 230, 138, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}
.tag.alt { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.play-now {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.play-now:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(0,230,138,0.15); }
.related { max-width: var(--site); margin: 0 auto; padding: 8px 24px 28px; }

.doc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  color: var(--text2);
  line-height: 1.75;
  font-size: 14px;
}
.doc h2 { color: #fff; font-size: 16px; margin: 22px 0 8px; }
.doc h3 { color: #fff; font-size: 14px; margin: 18px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc a { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 12px; line-height: 1.55; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; text-align: left; }
.doc th { color: #fff; font-weight: 600; background: rgba(255,255,255,0.04); }

.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--text3);
  margin-top: 36px;
}
.footer-inner { max-width: var(--site); margin: 0 auto; padding: 36px 24px 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer .logo { font-size: 18px; }
.footer p { font-size: 12px; max-width: 240px; line-height: 1.6; }
.footer h4 { margin: 0 0 12px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a, .footer button.linkish {
  color: var(--text3);
  text-decoration: none;
  font-size: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.footer a:hover, .footer button.linkish:hover { color: var(--accent); }
.legal {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
}
.legal .brand { color: var(--accent); font-weight: 700; }
.legal nav { display: flex; gap: 16px; }

.missing, .status-line { padding: 80px 24px; text-align: center; color: var(--text2); }
.play-now:disabled { opacity: 0.45; cursor: not-allowed; }
.play-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #07070d;
}
.play-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.play-title {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.play-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.play-frame { flex: 1; width: 100%; border: 0; background: #000; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .hero, .split, .game-layout, .foot-grid { grid-template-columns: 1fr; }
  .rule { display: none; }
}
@media (max-width: 768px) {
  .nav, .search-link { display: none; }
  .header-inner { gap: 8px; min-width: 0; }
  .header .logo {
    flex: 1;
    min-width: 0;
    max-width: calc(100vw - 96px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .header-inner > div { flex-shrink: 0; }
  .menu-btn { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mobile-menu { display: block; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats { flex-direction: row; justify-content: space-between; gap: 12px; }
  .page-title { align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-cards, .poster-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site, .page, .hero, .related, .crumb, .game-layout { padding-left: 16px; padding-right: 16px; }
}
.adv{display:flex;flex-direction:column;align-items:center;}
