:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --yellow-400: #facc15;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --emerald-500: #10b981;
  --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-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 34px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

figure {
  margin: 0;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-md);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--blue-900);
  background: var(--yellow-400);
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-link {
  position: relative;
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow-400);
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.45), transparent 30%), linear-gradient(90deg, var(--blue-950), var(--blue-700) 52%, var(--cyan-600));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.06), rgba(3, 7, 18, 0.28));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: linear-gradient(0deg, var(--gray-50), rgba(249, 250, 251, 0));
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
  min-height: 540px;
  padding: 72px 0 96px;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--yellow-400);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.25);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.hero-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-chips {
  margin-top: 24px;
}

.hero-chips span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--blue-900);
  background: var(--yellow-400);
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.filter-reset:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-media {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
  transition: transform 0.35s ease;
}

.hero-card:hover img {
  transform: scale(1.055);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-card:hover .hero-overlay {
  opacity: 1;
}

.play-circle,
.play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.play-circle {
  width: 78px;
  height: 78px;
  font-size: 28px;
}

.play-dot {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.play-dot.large {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 62px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--yellow-400);
}

.main-section {
  padding: 58px 0;
}

.tint-green {
  background: linear-gradient(90deg, #f0fdf4, #ecfdf5);
}

.tint-amber {
  background: linear-gradient(90deg, #fffbeb, #fefce8);
}

.tint-blue {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.heading-accent {
  width: 5px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-500), var(--red-500));
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.filter-panel {
  position: relative;
  z-index: 8;
  margin: -38px auto 34px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.filter-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.22fr)) auto;
  gap: 12px;
}

.filter-line input,
.filter-line select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--white);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-line input:focus,
.filter-line select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.filter-reset {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

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

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

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poster-card,
.category-card,
.info-panel,
.player-panel,
.text-panel {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-card:hover,
.category-card:hover,
.info-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.poster-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
  transition: transform 0.32s ease;
}

.poster-card:hover img,
.horizontal-card:hover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-card:hover .poster-shade {
  opacity: 1;
}

.region-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  left: 12px;
  top: 12px;
  background: var(--blue-600);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.74);
}

.poster-card .play-dot.large {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-card:hover .play-dot.large {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-body {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 16px;
}

.poster-body strong,
.horizontal-info strong,
.compact-info strong {
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.poster-card:hover strong,
.horizontal-card:hover strong,
.compact-card:hover strong {
  color: var(--blue-600);
}

.poster-body span,
.horizontal-info span {
  color: var(--gray-600);
  font-size: 14px;
}

.poster-body em,
.horizontal-info em,
.compact-info em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.poster-body small {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--gray-500);
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  border-radius: 12px;
  background: var(--white);
}

.compact-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.compact-link:hover {
  background: var(--gray-50);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.compact-poster img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
  transition: transform 0.28s ease;
}

.compact-poster .play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.compact-card:hover .play-dot {
  opacity: 1;
}

.compact-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.horizontal-link {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.horizontal-poster {
  position: relative;
  overflow: hidden;
}

.horizontal-poster img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
  transition: transform 0.32s ease;
}

.horizontal-poster .play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s ease;
}

.horizontal-card:hover .play-dot {
  opacity: 1;
}

.horizontal-info {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px 18px 18px 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 7px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 12px;
}

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

.category-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.category-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--blue-700);
  font-size: 22px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--blue-700);
  background: #dbeafe;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-samples a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--blue-700);
  background: #dbeafe;
}

.ranking-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank-item;
}

.rank-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-item a {
  display: grid;
  grid-template-columns: 78px 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-left: 10px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-weight: 900;
}

.rank-item img {
  width: 130px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
}

.rank-info {
  display: grid;
  gap: 8px;
}

.rank-info strong {
  color: var(--gray-900);
  font-size: 18px;
}

.rank-info span,
.rank-info em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--blue-700);
}

.detail-hero {
  color: var(--white);
  background: radial-gradient(circle at 72% 16%, rgba(34, 211, 238, 0.34), transparent 34%), linear-gradient(90deg, var(--gray-950), var(--blue-900));
  padding: 42px 0 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.55));
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.detail-actions {
  margin-top: 26px;
}

.player-section {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.player-panel {
  overflow: hidden;
  padding: 14px;
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--blue-700);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46));
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--white);
  font-size: 30px;
  box-shadow: var(--shadow-lg);
}

.player-box.is-playing .player-overlay {
  display: none;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding: 46px 0 64px;
}

.text-panel,
.info-panel {
  padding: 26px;
}

.text-panel + .text-panel {
  margin-top: 22px;
}

.text-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.info-table dt {
  color: var(--gray-500);
  font-weight: 700;
}

.info-table dd {
  margin: 0;
  color: var(--gray-800);
}

.tag-list {
  color: var(--blue-700);
}

.tag-list span {
  background: #dbeafe;
}

.empty-state {
  display: none;
  margin: 22px 0;
  padding: 18px;
  border-radius: 14px;
  color: var(--gray-600);
  background: var(--gray-100);
}

.empty-state.show {
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 34px;
  padding: 44px 0 34px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.site-footer li {
  margin: 8px 0;
  color: #9ca3af;
}

.site-footer a:hover {
  color: var(--cyan-500);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-slide,
  .detail-layout,
  .ranking-wrap,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding-top: 52px;
  }

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--blue-700);
    background: #dbeafe;
  }

  .nav-link.active::after {
    display: none;
  }

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

  .hero-slide {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 88px;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-dots {
    bottom: 42px;
  }

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

  .horizontal-link,
  .rank-item a {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .horizontal-info {
    padding: 12px 12px 12px 0;
  }
}

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

  .brand-text {
    font-size: 20px;
  }

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

  .card-grid,
  .card-grid.three,
  .card-grid.five,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-poster {
    max-width: 280px;
  }

  .poster-body {
    min-height: auto;
  }

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