:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.nav-container {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 22px rgba(13, 148, 136, 0.25);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within,
.mobile-search:focus-within {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 4px 9px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--teal);
  background: transparent;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid var(--gray-100);
}

.mobile-nav nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  font-weight: 650;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(34, 211, 238, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(15, 118, 110, 0.98) 0%, rgba(8, 145, 178, 0.88) 48%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 78px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.section-kicker {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.18);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 24px);
}

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

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

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

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

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

.primary-button,
.secondary-button,
.section-more,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-width: 138px;
  padding: 13px 22px;
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.secondary-button {
  min-width: 118px;
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4.08;
  width: min(390px, 100%);
  justify-self: center;
  border-radius: 34px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 28px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel,
.content-section,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 4;
}

.quick-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.quick-card strong {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
  margin-bottom: 6px;
}

.quick-card span {
  color: var(--gray-600);
}

.content-section {
  padding-top: 64px;
  padding-bottom: 4px;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2,
.page-hero h1 {
  margin: 10px 0 6px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  max-width: 720px;
}

.section-more {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  padding: 10px 18px;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.16);
}

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

.compact-grid,
.category-movie-grid,
.search-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-link {
  display: block;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: var(--shadow-md);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #dbeafe;
  overflow: hidden;
}

.movie-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(8, 145, 178, 0.08));
}

.movie-type,
.movie-year {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  background: rgba(15, 118, 110, 0.9);
}

.movie-type {
  left: 10px;
}

.movie-year {
  right: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-link:hover .movie-hover {
  opacity: 1;
}

.play-circle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.92);
}

.movie-hover p {
  margin: 0;
  font-size: 14px;
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-link:hover h3 {
  color: var(--teal);
}

.movie-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.movie-meta span,
.detail-meta-row span,
.detail-meta-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 8px;
}

.rank-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.2);
}

.category-strip {
  max-width: 1280px;
  margin: 52px auto 0;
  padding: 42px 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(236, 254, 255, 0.95));
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-pills a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--teal-dark);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-weight: 750;
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-pills a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

.page-hero {
  padding: 76px 24px 70px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.35), transparent 30%),
    linear-gradient(135deg, var(--teal-dark), var(--cyan));
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover {
  background-size: cover;
  background-position: center;
  background-color: #ccfbf1;
}

.category-copy {
  padding: 24px;
}

.category-copy h2 {
  margin: 0 0 10px;
}

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

.category-copy span {
  color: var(--teal);
  font-weight: 750;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-search {
  flex: 1;
}

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

.filter-search input:focus,
.filter-selects select:focus {
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.11);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

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

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 48px 126px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.rank-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #ccfbf1;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--teal);
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
}

.rank-copy small {
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-action {
  padding: 8px 14px;
  color: #ffffff;
  background: var(--teal);
}

.detail-wrap {
  padding-top: 34px;
  padding-bottom: 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.66));
}

.player-overlay span {
  position: relative;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.detail-card,
.side-card {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-meta-row a {
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
}

.detail-tags span {
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 7px 12px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 20px;
}

.poster-card h2 {
  margin-top: 16px;
}

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

.side-poster {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #ccfbf1;
}

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

.related-card a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #ccfbf1;
}

.related-copy {
  min-width: 0;
}

.related-copy strong,
.related-copy small,
.related-copy em {
  display: block;
}

.related-copy strong {
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-copy small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.related-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.6fr) minmax(0, 1fr);
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #5eead4;
}

.footer-categories div {
  columns: 2;
}

[hidden],
.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search input {
    width: 160px;
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 58px;
  }

  .hero-poster {
    width: min(320px, 70vw);
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

  .small-rank-list,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 680px) {
  .nav-container,
  .mobile-nav,
  .quick-panel,
  .content-section,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p {
    font-size: 13px;
  }

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

  .category-card a {
    grid-template-columns: 118px 1fr;
  }

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

  .rank-action {
    display: none;
  }

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .related-card a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .footer-categories div {
    columns: 1;
  }
}
