main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Hero Spotlight */
.hero-spotlight {
  display: flex;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 0;
  border: 1px solid #d8dae0;
}

.hero-cover {
  width: 260px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cover .img-placeholder {
  width: 260px;
  height: 100%;
}

.hero-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-top-left {
  flex: 1;
  min-width: 0;
}

.hero-score-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-score-area .hero-review-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0d1117;
  line-height: 1.15;
  margin-bottom: 4px;
}

.hero-byline {
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-byline .separator {
  margin: 0 6px;
  color: var(--text-muted);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hero-platforms .plat-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  background: #f0f1f4;
  padding: 3px 8px;
  border-radius: 4px;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  min-height: 0;
  overflow: hidden;
}

.hero-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-right: 110px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-quote {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f6f7f9;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}

a.hero-quote:hover {
  background: #eef0f4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-quote-mark {
  font-size: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent-blue);
  line-height: 0.8;
  flex-shrink: 0;
  user-select: none;
}

.hero-quote-content {
  min-width: 0;
  flex: 1;
}

.hero-quote-text {
  font-size: 13px;
  font-style: italic;
  color: #3a3f4b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hero-quote-source {
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 4px;
  font-weight: 500;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-blue);
  color: #fff;
  transition: background 0.15s;
}

.hero-cta:hover {
  background: var(--accent-blue-dim);
}

/* hero 640px rules moved to bottom of file for correct cascade order */

/* Carousel */
.carousel {
  position: relative;
  margin-bottom: 36px;
}

.carousel-track {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-slide.exit-left {
  transform: translateX(-100%);
}

.carousel-slide.enter-right {
  transform: translateX(100%);
}

.carousel-slide.exit-right {
  transform: translateX(100%);
}

.carousel-slide.enter-left {
  transform: translateX(-100%);
}

.carousel-slide .hero-spotlight {
  height: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.carousel-arrow {
  position: absolute;
  top: 210px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d8dae0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  color: #0d1117;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0;
}

.carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d8dae0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--accent-blue);
}

/* On This Date slide */
.otd-slide {
  flex-direction: column;
}

.otd-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.otd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  flex: 1;
  min-height: 0;
}

.otd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.otd-cover {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #dfe1e6 0%, #e8eaef 50%, #dfe1e6 100%);
}

.otd-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otd-cover .img-placeholder {
  width: 100%;
  height: 100%;
}

.otd-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-year {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-align: center;
}

@media (max-width: 900px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

/* carousel/otd 640px rules moved to bottom for correct cascade */

/* Module layout */
.modules {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px 40px;
}

.module {
  min-width: 0;
}

.module-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d8dae0;
  padding-bottom: 8px;
}

.module-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0d1117;
}

.module-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Game row */
.game-row {
  display: flex;
  align-items: center;
  padding: 14px 8px 14px 0;
  gap: 14px;
  border-bottom: 1px solid #d8dae0;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.game-row:last-child {
  border-bottom: none;
}

.game-row:hover {
  background: rgba(0, 0, 0, 0.06);
}

.game-rank {
  position: absolute;
  top: -4px;
  left: -4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #1a1f2e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  line-height: 1;
}

.game-thumb {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: visible;
  flex-shrink: 0;
  position: relative;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.game-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-info .game-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1f2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.game-info .game-platforms {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-info .game-detail {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Score circle */
.score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.score-green { background: #3da66a; }
.score-lime { background: #7ab33e; }
.score-amber { background: #d4911e; }
.score-orange { background: #d46a2a; }
.score-red { background: #c94444; }

/* Divisive: score range bar */
.score-range {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.range-avg-arrow {
  position: absolute;
  top: -2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.range-avg-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary, #1a1a2e);
  line-height: 1;
}

.range-avg-arrow .arrow-down {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-primary, #1a1a2e);
}

.range-bar {
  width: 100%;
  height: 12px;
  background: #cdd0d6;
  border-radius: 5px;
  position: relative;
  margin-top: 18px;
}

.range-fill {
  position: absolute;
  height: 100%;
  border-radius: 5px;
  opacity: 0.9;
  transition: left 0.4s ease, width 0.4s ease;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}


/* Placeholder */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dfe1e6 0%, #e8eaef 50%, #dfe1e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
}

.module-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 0;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .modules { gap: 32px 24px; }
  .hero-spotlight { padding: 24px; gap: 24px; }
  .hero-cover { width: 200px; }
  .hero-cover .img-placeholder { width: 200px; }
  .carousel-track { height: 380px; }
  .hero-description { margin-right: 0; }
}

@media (max-width: 768px) {
  main { padding: 24px 16px 60px; }
  .modules {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .score-range { width: 100px; }
  .carousel-track { height: 340px; }
  .otd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .otd-grid .otd-card:nth-child(n+4) { display: none; }
  .hero-spotlight { padding: 20px; gap: 16px; }
  .hero-cover { width: 120px; }
  .hero-cover .img-placeholder { width: 120px; }
  .hero-title { font-size: 22px; }
  .hero-description { -webkit-line-clamp: 2; }
}

@media (max-width: 640px) {
  .module-title { font-size: 18px; }

  /* Carousel: fixed height so every slide is identical size */
  .carousel-track { height: 500px; }
  .carousel-slide {
    position: relative;
    transform: none;
    transition: none;
    height: 500px;
  }
  .carousel-slide:not(.active) { display: none; }
  .carousel-slide .hero-spotlight {
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Carousel arrows: sit outside the card */
  .carousel { padding: 0 28px; }
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }
  .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 13px;
    border: none;
    background: transparent;
    color: #8b919e;
    box-shadow: none;
  }
  .carousel-arrow:hover { color: #0d1117; background: transparent; box-shadow: none; }

  /* OTD: hide 4th+ cards */
  .otd-grid .otd-card:nth-child(n+4) { display: none; }

  /* Spotlight: stack vertically with full-width cover banner */
  .hero-spotlight {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .hero-cover {
    width: 100%;
    max-width: 100%;
    height: 180px;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
  }
  .hero-cover img { width: 100%; height: 100%; object-fit: cover; }
  .hero-cover .img-placeholder { width: 100%; height: 180px; }
  .hero-details {
    gap: 4px;
    margin-top: 0;
    padding: 10px 16px 12px;
    flex: 1;
    min-height: 0;
  }
  .hero-top { gap: 10px; }
  .hero-title { font-size: 18px; }
  .hero-body { margin-top: 4px; gap: 6px; flex: 1; min-height: 0; }
  .hero-description { display: none; }
  .hero-quote { padding: 8px 10px; }
  .hero-quote-text { font-size: 12px; -webkit-line-clamp: 2; }
  .hero-quote-source { font-size: 11px; }
  .hero-footer { flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
  .hero-cta { width: 100%; justify-content: center; padding: 8px 16px; font-size: 13px; }

  /* OTD slide: stretch covers to fill the same height */
  .hero-spotlight.otd-slide {
    padding: 16px;
    gap: 0;
  }
  .otd-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
  }
  .otd-grid {
    gap: 10px;
    flex: 1;
    margin-top: 12px;
  }
  .otd-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .otd-cover {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
  }
  .otd-title { font-size: 12px; flex-shrink: 0; }
  .otd-year { font-size: 11px; flex-shrink: 0; }
}

@media (max-width: 480px) {
  main { padding: 16px 12px 48px; }
  .hero-spotlight { padding: 0; }
  .hero-spotlight.otd-slide { padding: 12px; }
  .carousel-track { height: 440px; }
  .carousel-slide { height: 440px; }
  .hero-cover { height: 140px; }
  .hero-cover .img-placeholder { height: 140px; }
  .hero-details { padding: 10px 12px 14px; }
  .hero-title { font-size: 18px; }
  .hero-label { font-size: 10px; }
  .hero-cta { padding: 8px 16px; font-size: 13px; }
  .game-row { padding: 10px 4px 10px 0; gap: 10px; }
  .game-thumb { width: 40px; height: 53px; }
  .game-info .game-title { font-size: 14px; }
  .score-circle { width: 38px; height: 38px; font-size: 14px; }
  .score-range { width: 80px; }
}
