:root {
  color-scheme: light;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --teal: #0d9488;
  --slate: #0f172a;
  --muted: #64748b;
  --soft: #f0fdfa;
  --paper: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #102033;
  background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #f0fdfa 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  box-shadow: 0 14px 35px rgba(8, 145, 178, 0.28);
}

.nav-container {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  padding: 9px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.top-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.primary-action,
.ghost-action,
.section-link,
.category-overview-head a,
.rank-watch,
.filter-reset {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button {
  color: var(--blue);
  background: #ffffff;
  padding: 8px 15px;
}

.top-search button:hover,
.primary-action:hover,
.ghost-action:hover,
.section-link:hover,
.category-overview-head a:hover,
.filter-reset:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #0891b2 0%, #2563eb 50%, #0d9488 100%);
  color: #ffffff;
}

.hero-bg-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(50px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-bg-glow.one {
  left: -120px;
  top: -120px;
}

.hero-bg-glow.two {
  right: -90px;
  bottom: -110px;
  animation-delay: 1.3s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

.hero-slider {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  padding: 64px 0 86px;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-art {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.65));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.02);
}

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

.eyebrow {
  display: inline-flex;
  color: #dffbff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
}

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

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #0f6c93;
  background: #ffffff;
  padding: 0 24px;
  box-shadow: 0 18px 35px rgba(255, 255, 255, 0.22);
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0 22px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.home-stats,
.page-section,
.sub-page,
.detail-page,
.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 36px;
  color: var(--cyan-dark);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.page-section {
  padding: 64px 0 0;
}

.page-section.no-top {
  padding-top: 30px;
}

.tint-section {
  background: rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  padding: 34px;
  margin-top: 64px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #1e293b;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.category-overview-head a,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 11px 18px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  white-space: nowrap;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(37, 99, 235, 0.2));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease;
}

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

.play-dot {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-size: 24px;
  text-indent: 4px;
}

.poster-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poster-badges span {
  display: inline-flex;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.86);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-badges span:nth-child(2) {
  background: rgba(37, 99, 235, 0.86);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  color: #1e293b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-body p {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  color: var(--cyan-dark);
  background: #ecfeff;
  padding: 4px 8px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  padding: 18px;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.82));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 20px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.sub-page,
.detail-page {
  padding: 28px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-size: 14px;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0891b2 0%, #2563eb 55%, #0d9488 100%);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(34px, 6vw, 70px);
}

.page-hero p {
  max-width: 760px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.category-overview-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  color: #1e293b;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 0.75fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-field label {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  padding: 12px 13px;
  color: #102033;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(8, 145, 178, 0.62);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-reset {
  height: 46px;
}

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

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

.rank-link {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--cyan-dark);
  background: #ecfeff;
  font-size: 20px;
  font-weight: 950;
}

.rank-row.top .rank-num {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.rank-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.rank-info strong {
  color: #1e293b;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-watch {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 10px 17px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(24px, 5vw, 52px);
  padding: clamp(24px, 5vw, 54px);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.1);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-info .lead {
  max-width: 820px;
}

.detail-tags {
  margin: 24px 0;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail-meta-grid span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  padding: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.detail-meta-grid strong {
  color: #dffbff;
  font-size: 12px;
}

.watch-section,
.content-section {
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 32px);
}

.watch-section h2,
.content-section h2 {
  margin: 0 0 18px;
  color: #1e293b;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.content-section h2:not(:first-child) {
  margin-top: 30px;
}

.content-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.24);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  font-size: 36px;
  text-indent: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

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

.related-section {
  padding-top: 34px;
}

.site-footer {
  margin-top: 74px;
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
  padding: 42px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 12px;
}

.footer-main p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 13px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(8, 145, 178, 0.42);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1180px) {
  .featured-grid,
  .wide-grid,
  .mini-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-container {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  .nav-links.is-open {
    display: flex;
  }
  .top-search {
    order: 4;
    width: 100%;
  }
  .top-search input {
    width: 100%;
  }
  .hero-section,
  .hero-slider {
    min-height: 760px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    align-content: start;
  }
  .hero-art {
    min-height: 320px;
  }
  .hero-art img {
    min-height: 320px;
  }
  .home-stats {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
  .filter-field.wide,
  .filter-reset {
    grid-column: span 2;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    max-width: 360px;
  }
  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-text {
    font-size: 18px;
  }
  .hero-section,
  .hero-slider {
    min-height: 820px;
  }
  .hero-copy p,
  .page-hero p,
  .detail-info .lead {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-action,
  .ghost-action {
    width: 100%;
  }
  .section-head,
  .category-overview-head,
  .footer-main {
    flex-direction: column;
    display: flex;
    align-items: flex-start;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .featured-grid,
  .wide-grid,
  .mini-grid,
  .library-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .tint-section {
    padding: 22px;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .filter-field.wide,
  .filter-reset {
    grid-column: span 1;
  }
  .rank-link {
    grid-template-columns: 42px 58px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .rank-link img {
    width: 58px;
    height: 78px;
  }
  .rank-watch {
    display: none;
  }
  .rank-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
  .content-section p {
    font-size: 15px;
  }
}
