:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --red-600: #dc2626;
  --green-600: #16a34a;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.28);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--orange-500);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.brand-icon span {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
  margin-left: 3px;
}

.brand-text strong,
.brand-text em {
  display: block;
  font-style: normal;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-text em {
  margin-top: 3px;
  color: #bfdbfe;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fed7aa;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
}

.hero-slider {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #172554, #1d4ed8 52%, #172554);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.38) 48%, rgba(0,0,0,0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  max-width: 640px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.genre-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #1f2937;
  background: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-orange {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.btn-orange:hover {
  background: var(--orange-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(10px);
}

.hero-poster {
  flex: 0 0 270px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  text-align: center;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange-500);
}

.page-stack {
  padding: 48px 0 64px;
}

.section-block,
.category-section,
.filter-panel,
.info-card,
.side-panel,
.rank-list {
  margin-bottom: 56px;
}

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

.section-title h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.section-title a {
  color: var(--blue-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0,0,0,0.28);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge,
.card-year {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 10px;
  background: var(--orange-500);
}

.card-year {
  right: 10px;
  background: rgba(0,0,0,0.72);
}

.card-body {
  display: block;
  padding: 14px;
}

.card-body strong,
.card-body small {
  display: block;
}

.card-body strong {
  min-height: 48px;
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .card-body strong {
  color: var(--orange-600);
}

.card-body small {
  margin-top: 8px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-section {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(90deg, #f0fdf4, #eff6ff);
}

.category-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.overview-card {
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--blue-600);
  font-weight: 900;
}

.category-card strong,
.overview-main strong {
  color: var(--gray-800);
  font-size: 19px;
  font-weight: 900;
}

.category-card em,
.category-card i,
.overview-main em,
.overview-main i {
  display: block;
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
}

.category-card i,
.overview-main i {
  margin-top: 4px;
  color: var(--orange-600);
  font-weight: 800;
}

.category-red .category-icon,
.category-red .overview-main .category-icon {
  background: #ef4444;
}

.category-blue .category-icon,
.category-blue .overview-main .category-icon {
  background: #3b82f6;
}

.category-green .category-icon,
.category-green .overview-main .category-icon {
  background: #22c55e;
}

.category-orange .category-icon,
.category-orange .overview-main .category-icon {
  background: #f97316;
}

.category-purple .category-icon,
.category-purple .overview-main .category-icon {
  background: #a855f7;
}

.category-pink .category-icon,
.category-pink .overview-main .category-icon {
  background: #ec4899;
}

.category-teal .category-icon,
.category-teal .overview-main .category-icon {
  background: #14b8a6;
}

.category-indigo .category-icon,
.category-indigo .overview-main .category-icon {
  background: #6366f1;
}

.filter-panel {
  padding: 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr 190px auto auto;
  gap: 14px;
  align-items: end;
}

.filter-form label span {
  display: block;
  margin-bottom: 7px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--gray-50);
  outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-form button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
}

.filter-form button[data-reset-filter] {
  color: var(--gray-700);
  background: var(--gray-100);
}

.filter-count {
  margin: 12px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.stats-panel {
  border-radius: 24px;
  padding: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  text-align: center;
}

.stats-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.stats-panel p {
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: 18px;
}

.stats-panel div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
  gap: 24px;
}

.stats-panel span,
.stats-panel strong,
.stats-panel em {
  display: block;
}

.stats-panel strong {
  font-size: 36px;
  line-height: 1.1;
}

.stats-panel em {
  color: #ffedd5;
  font-style: normal;
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.blue-orange {
  background: linear-gradient(90deg, var(--blue-600), var(--orange-600));
}

.orange-red {
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
}

.category-hero.category-red { background: linear-gradient(90deg, #dc2626, #f97316); }
.category-hero.category-blue { background: linear-gradient(90deg, #2563eb, #1e40af); }
.category-hero.category-green { background: linear-gradient(90deg, #16a34a, #0f766e); }
.category-hero.category-orange { background: linear-gradient(90deg, #ea580c, #dc2626); }
.category-hero.category-purple { background: linear-gradient(90deg, #7c3aed, #1d4ed8); }
.category-hero.category-pink { background: linear-gradient(90deg, #db2777, #f97316); }
.category-hero.category-teal { background: linear-gradient(90deg, #0d9488, #2563eb); }
.category-hero.category-indigo { background: linear-gradient(90deg, #4f46e5, #1e3a8a); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.breadcrumb strong {
  color: rgba(255,255,255,0.66);
  font-weight: 600;
}

.overview-card {
  overflow: hidden;
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.overview-links {
  display: grid;
  gap: 1px;
  background: var(--gray-100);
}

.overview-links a {
  padding: 10px 16px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-links a:hover {
  color: var(--orange-600);
}

.rank-box {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy em,
.rank-copy i {
  display: block;
  font-style: normal;
}

.rank-copy strong {
  color: var(--gray-800);
  font-weight: 900;
}

.rank-copy em {
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-copy i {
  color: var(--gray-500);
  font-size: 13px;
}

.rank-row b {
  color: var(--blue-600);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  color: var(--white);
  background: var(--gray-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(1px);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.94), rgba(17,24,39,0.72));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 44px 0;
}

.detail-hero h1 {
  max-width: 960px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
}

.detail-hero p {
  max-width: 850px;
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 36px 0 64px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.player-cover.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.big-play {
  position: absolute;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 18px 42px rgba(249,115,22,0.38);
  font-size: 34px;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .big-play {
  background: var(--orange-600);
  transform: scale(1.05);
}

.info-card,
.side-panel {
  margin-top: 24px;
  border-radius: 18px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.meta-row span,
.meta-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.meta-row a {
  color: #1e40af;
  background: #dbeafe;
}

.info-card .tag-row {
  margin-bottom: 22px;
}

.info-card .tag-row span,
.info-card .genre-pill {
  color: var(--gray-700);
  background: var(--gray-100);
}

.info-card .genre-pill {
  color: #6b21a8;
  background: #f3e8ff;
}

.info-card h2,
.side-panel h2 {
  margin: 24px 0 12px;
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 900;
}

.info-card h2:first-of-type,
.side-panel h2:first-of-type {
  margin-top: 0;
}

.info-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.review-box {
  border-left: 4px solid var(--orange-500);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--gray-800);
  background: #fff7ed;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 88px;
}

.side-list {
  display: grid;
  gap: 16px;
}

.side-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
}

.side-card img {
  width: 86px;
  height: 116px;
  border-radius: 10px;
  object-fit: cover;
}

.side-card strong,
.side-card em,
.side-card i {
  display: block;
  font-style: normal;
}

.side-card strong {
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-card:hover strong {
  color: var(--orange-600);
}

.side-card em,
.side-card i {
  color: var(--gray-500);
  font-size: 13px;
}

.side-more {
  display: block;
  margin-top: 20px;
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--orange-500);
  text-align: center;
  font-weight: 900;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #fed7aa;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1180px) {
  .home-grid,
  .all-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: var(--blue-800);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .hero-content {
    justify-content: center;
  }

  .hero-poster {
    display: none;
  }

  .home-grid,
  .all-grid,
  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-slider,
  .hero-content {
    min-height: 480px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .page-stack {
    padding: 32px 0 48px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-grid,
  .all-grid,
  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .category-section,
  .stats-panel {
    padding: 22px;
  }

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

  .filter-form {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .rank-row b {
    display: none;
  }

  .player-card {
    border-radius: 12px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .info-card,
  .side-panel {
    padding: 20px;
  }

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