:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #141b31;
  --panel-soft: #1a2441;
  --text: #f7f9ff;
  --muted: #aab6d8;
  --accent: #ff4757;
  --accent-2: #64e3ff;
  --line: rgba(255,255,255,.12);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,71,87,.32), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(100,227,255,.22), transparent 30rem),
    linear-gradient(180deg, #080c18 0%, var(--bg) 50%, #090d18 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(8, 12, 24, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--accent), #ff8a34);
  box-shadow: 0 0 26px rgba(255,71,87,.45);
}

.header-actions,
.hero-links,
.form-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.nav-button,
.primary-cta,
.secondary-cta,
.comment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: rgba(255,255,255,.08);
}

.nav-button-alt,
.primary-cta,
.comment-form button {
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff8a34);
  box-shadow: 0 14px 34px rgba(255,71,87,.25);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: clamp(2.2rem, 7vw, 5.5rem) 0 2rem;
}

.hero-copy,
.bookmark-card,
.article-card,
.comments-section,
.recommend-section,
.game-section {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(20, 27, 49, .76);
  box-shadow: var(--shadow);
}

.hero-copy,
.bookmark-card,
.article-card,
.comments-section,
.recommend-section,
.game-section {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--accent-2);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  letter-spacing: -.08em;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  letter-spacing: -.04em;
}

.hero-text {
  max-width: 56rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.last-updated,
.source-note {
  color: var(--muted);
  font-size: .95rem;
}

.bookmark-card {
  background: linear-gradient(155deg, rgba(100,227,255,.16), rgba(255,71,87,.12));
}

.game-section,
.content-section,
.ad-section,
.recommend-section,
.comments-section {
  margin: 1.4rem 0;
}

.ad-section {
  min-height: 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: .75rem;
  background: rgba(20, 27, 49, .52);
  text-align: center;
}

.section-heading {
  margin-bottom: 1rem;
}

.player-shell {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #050814;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050814;
}

.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: .45rem;
  border: 0;
  color: var(--text);
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(8,12,24,.55), rgba(8,12,24,.88)),
    radial-gradient(circle at center, rgba(255,71,87,.38), transparent 28rem);
}

.start-overlay span {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -.06em;
}

.start-overlay small {
  color: var(--muted);
  font-size: 1rem;
}

.start-overlay.is-hidden {
  display: none;
}

.fullscreen-button {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .6rem .9rem;
  color: var(--text);
  font-weight: 850;
  background: rgba(8, 12, 24, .78);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.article-card p {
  color: #d5ddf5;
}

.faq-card {
  display: grid;
  gap: .9rem;
}

.faq-card details {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.045);
}

.faq-card summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-card details p {
  margin-bottom: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}

.game-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--panel-soft);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100,227,255,.55);
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #10172b;
}

.game-card span {
  display: block;
  padding: .45rem .55rem .55rem;
  font-weight: 850;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card small {
  display: none;
  padding: 0 .7rem .8rem;
  color: var(--muted);
  line-height: 1.35;
}

.comment-form {
  display: grid;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

.comment-form label {
  font-weight: 900;
}

.comment-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .9rem 1rem;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font: inherit;
}

.comment-form button {
  cursor: pointer;
}

#commentStatus {
  color: var(--muted);
}

.form-row {
  justify-content: space-between;
}

.comment-list {
  display: grid;
  gap: .8rem;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.055);
}

.comment-item time {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .85rem;
}

.comment-item p {
  margin: 0;
  white-space: pre-wrap;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.site-footer a {
  color: var(--text);
  text-decoration-color: rgba(255,255,255,.35);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .nav-button,
  .primary-cta,
  .secondary-cta,
  .comment-form button {
    width: 100%;
  }

  .player-frame {
    min-height: 260px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}
