:root {
  --bg: #171615;
  --bg-2: #f7f2e4;
  --surface: #ffffff;
  --surface-soft: #fff7e3;
  --text: #241f19;
  --muted: #6c655d;
  --accent: #b02a1f;
  --accent-2: #ffc03a;
  --border: #ead9b6;
  --shadow: 0 18px 44px rgba(37, 25, 12, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(23, 22, 21, 0.8) 0, rgba(23, 22, 21, 0.12) 360px),
    repeating-linear-gradient(135deg, rgba(176, 42, 31, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #f7f2e4 0%, #efe0bd 100%);
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.container {
  width: min(1880px, calc(100vw - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #14120f, #2d1813);
  box-shadow: 0 10px 28px rgba(35, 18, 10, 0.24);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.brand span {
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 227, 0.92);
  transition: transform 0.15s ease, background 0.15s ease;
}

.top-nav a:hover {
  background: var(--accent-2);
  color: var(--accent);
  transform: translateY(-1px);
}

.search {
  margin-left: auto;
  flex: 0 0 min(420px, 28vw);
  position: relative;
}

.search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(255, 247, 227, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 192, 58, 0.24);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.98);
  box-shadow: 0 18px 44px rgba(37, 25, 12, 0.18);
  border: 1px solid rgba(234, 217, 182, 0.95);
}

.search-result,
.search-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
}

.search-result {
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.search-result:hover {
  background: var(--surface-soft);
}

.search-result img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.search-result span,
.search-empty {
  text-align: left;
}

.page-shell {
  padding: 18px 0 30px;
}

.player-card,
.strip-shell,
.seo-card,
.comments-card,
.recommend-shell {
  background: var(--surface);
  border: 1px solid rgba(234, 217, 182, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.stage-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1060px) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.player-column {
  min-width: 0;
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 0 6px;
}

.stage-head-copy {
  min-width: 0;
}

.stage-head h1,
.section-heading h2,
.seo-card h2,
.comments-card h2,
.player-overlay-card h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
}

.stage-head h1 {
  font-size: clamp(30px, 2.8vw, 48px);
  line-height: 1.05;
}

.thumb-rail {
  display: grid;
  gap: 10px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 10px;
  align-content: start;
  justify-content: start;
}

.rail-label {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(176, 42, 31, 0.09);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.rail-label-grid {
  grid-column: 1 / -1;
}

.rail-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #e8d3a8;
  box-shadow: 0 10px 18px rgba(37, 25, 12, 0.14);
}

.rail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.rail-card span {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.rail-card-plain span,
.thumb-grid .rail-card span {
  display: none;
}

.player-card {
  overflow: hidden;
  position: relative;
}

.player-screen {
  position: relative;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 192, 58, 0.12), rgba(176, 42, 31, 0.16)),
    #12100d;
}

#gameFrame {
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.18), rgba(14, 12, 10, 0.74));
  z-index: 2;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay-card {
  width: min(400px, calc(100% - 40px));
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.97);
  box-shadow: 0 20px 40px rgba(37, 25, 12, 0.34);
  text-align: center;
}

.player-overlay-thumb {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.player-overlay-card h2 {
  font-size: 34px;
}

.player-overlay-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.play-now-button {
  min-width: 164px;
  min-height: 58px;
  margin-top: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #b02a1f, #e05222);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(217, 228, 244, 0.85);
}

.player-toolbar-left,
.player-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  border: 1px solid rgba(234, 217, 182, 0.95);
  box-shadow: 0 2px 6px rgba(37, 25, 12, 0.08);
}

.toolbar-btn.active,
.toolbar-btn:hover {
  background: rgba(176, 42, 31, 0.1);
  color: var(--accent);
}

.toolbar-btn-strong {
  background: linear-gradient(90deg, var(--accent), #e05222);
  color: #fff;
  border-color: transparent;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.strip-shell,
.recommend-shell,
.seo-card,
.comments-card {
  margin-top: 16px;
  padding: 16px 18px 18px;
}

.adsterra-native-banner {
  margin-top: 16px;
  min-height: 1px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.quick-picks,
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 92px);
  gap: 10px;
  justify-content: start;
}

.quick-card,
.recommend-card {
  padding: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(176, 42, 31, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-card:hover,
.recommend-card:hover,
.rail-card:hover {
  transform: translateY(-3px);
}

.quick-thumb img,
.recommend-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.seo-card h2 {
  font-size: clamp(22px, 2.1vw, 30px);
}

.seo-body {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.seo-body h3 {
  margin: 28px 0 10px;
  color: var(--text);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.seo-body p,
.seo-body ul {
  margin: 0;
}

.seo-body ul {
  padding-left: 24px;
}

.seo-body li + li {
  margin-top: 8px;
}

.comments-card {
  position: sticky;
  top: 110px;
}

.comment-count {
  color: var(--muted);
  font-size: 12px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-item,
.empty-comment,
.empty-mini-card {
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-head strong {
  color: var(--text);
}

.comment-head span {
  color: var(--muted);
  font-size: 12px;
}

.comment-item p {
  margin: 0;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg-2);
  color: var(--text);
  resize: vertical;
}

.comment-form button {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), #e05222);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1560px) {
  .stage-shell {
    grid-template-columns: 92px minmax(0, 920px) minmax(320px, 1fr);
  }
}

@media (max-width: 1280px) {
  .stage-shell {
    grid-template-columns: 80px minmax(0, 760px) minmax(260px, 1fr);
  }

  .thumb-grid,
  .quick-picks,
  .recommend-grid {
    grid-template-columns: repeat(auto-fill, 80px);
  }

  .thumb-grid {
    grid-template-columns: repeat(3, 80px);
  }
}

@media (max-width: 1080px) {
  .topbar-inner,
  .player-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    margin-left: 0;
    flex-basis: auto;
  }

  .stage-shell {
    grid-template-columns: 1fr;
  }

  .thumb-rail,
  .thumb-grid {
    grid-template-columns: repeat(6, 92px);
  }

  .thumb-grid .rail-card span,
  .rail-card-plain span {
    display: block;
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .comments-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100vw - 20px, 100%);
  }

  .brand {
    font-size: 28px;
  }

  .player-screen {
    padding: 10px;
  }

  .thumb-rail,
  .thumb-grid,
  .quick-picks,
  .recommend-grid {
    grid-template-columns: repeat(2, 92px);
  }

  .player-overlay-card {
    width: calc(100% - 24px);
    padding: 18px;
  }
}

.site-footer {
  margin-top: 80px;
  padding: 60px 0 30px;
  background: linear-gradient(180deg, rgba(23, 22, 21, 0.95) 0%, rgba(23, 22, 21, 1) 100%);
  color: #f7f2e4;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-2);
}

.footer-section p {
  margin: 0;
  line-height: 1.6;
  color: #d4c9b3;
  font-size: 14px;
}

.footer-section nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section nav a {
  color: #d4c9b3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section nav a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(234, 217, 182, 0.2);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #a89a82;
}

@media (max-width: 820px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    margin-top: 60px;
    padding: 40px 0 20px;
  }
}
