:root {
  --sky: #0ea5e9;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --yellow: #facc15;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #7c3aed;
  --green: #10b981;
  --red: #ef4444;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 34%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-nav {
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.25);
}

.nav-inner {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(14, 165, 233, 0.15);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #ffffff;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fef08a;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 650;
}

.nav-dropdown-link:hover {
  background: #e0f2fe;
  color: var(--blue);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.nav-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 750;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 21px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(90deg, #06b6d4, #2563eb 55%, #0ea5e9);
}

.hero-track {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 42px;
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 88px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.12);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.95), rgba(37, 99, 235, 0.82), rgba(15, 23, 42, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fef3c7;
  font-weight: 800;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

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

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 850;
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.75));
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 28px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

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

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

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

.section {
  padding: 56px 0;
}

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

.section-title span {
  display: inline-flex;
  margin-bottom: 6px;
  font-weight: 900;
  color: var(--orange);
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

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

.compact-title {
  align-items: start;
  flex-direction: column;
  gap: 0;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card-poster .movie-thumb {
  aspect-ratio: 3 / 4;
}

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

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

.movie-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.62));
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-number {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(90deg, #e0f2fe, #cffafe);
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

.highlight-panel {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(90deg, #fff7ed, #fef3c7);
}

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

.movie-card-poster .movie-info {
  position: relative;
  padding: 13px;
}

.movie-card-poster .movie-info p,
.movie-card-poster .tag-row {
  display: none;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 30px;
  align-items: start;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 132px;
}

.movie-card-wide .movie-thumb {
  aspect-ratio: auto;
  height: 100%;
}

.ranking-box,
.side-card,
.category-overview {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.rank-mini-list,
.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-mini-list .rank-row {
  grid-template-columns: 34px 68px minmax(0, 1fr);
}

.rank-row:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.rank-index {
  font-weight: 950;
  color: var(--orange);
  text-align: center;
}

.rank-row img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-mini-list .rank-row img {
  width: 68px;
  height: 46px;
}

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

.rank-title strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
}

.rank-heat {
  color: var(--blue);
  font-weight: 850;
}

.rank-mini-list .rank-tags,
.rank-mini-list .rank-heat {
  display: none;
}

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

.category-card {
  min-height: 220px;
  border-radius: 28px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.category-card div {
  display: grid;
  gap: 8px;
}

.category-card div a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.accent-blue,
.category-card.accent-blue {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.accent-orange,
.category-card.accent-orange {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.accent-cyan,
.category-card.accent-cyan {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.accent-purple,
.category-card.accent-purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.accent-amber,
.category-card.accent-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.accent-pink,
.category-card.accent-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.accent-indigo,
.category-card.accent-indigo {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.accent-green,
.category-card.accent-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.accent-red,
.category-card.accent-red {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.accent-slate,
.category-card.accent-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 2fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.filter-search-wrap input,
.filter-selects select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 999px;
  padding: 12px 15px;
  color: #111827;
  background: #ffffff;
}

.filter-search-wrap input:focus,
.filter-selects select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.empty-state {
  display: none;
  padding: 58px 20px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.empty-state.is-visible {
  display: block;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.ranking-hero,
.gradient-page {
  background: linear-gradient(90deg, #0ea5e9, #2563eb, #7c3aed);
}

.category-overview-list {
  padding: 48px 0;
  display: grid;
  gap: 28px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: #ffffff;
}

.category-overview-head span {
  font-size: 28px;
  font-weight: 950;
}

.category-overview-head h2 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.category-overview-head a {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 850;
}

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

.full-rank-list {
  background: #ffffff;
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 54px;
}

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

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

.detail-intro {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.detail-cover {
  width: 250px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.detail-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.detail-intro p {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-section,
.detail-section {
  margin-bottom: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.player-section h2,
.detail-section h2,
.side-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.74));
  transition: opacity 0.22s ease;
}

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

.overlay-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
  max-width: min(80%, 620px);
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.25;
  text-align: center;
}

.side-list .movie-card-wide {
  grid-template-columns: 120px minmax(0, 1fr);
}

.side-list .movie-info p,
.side-list .tag-row {
  display: none;
}

.site-footer {
  margin-top: 30px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .all-grid,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    color: #0f172a;
  }

  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8fafc;
    margin-top: 8px;
  }

  .nav-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .nav-search input {
    width: 100%;
    border: 1px solid var(--line);
  }

  .hero,
  .hero-track {
    min-height: 650px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    justify-self: center;
  }

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

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

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

  .small-wide-list {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(240px, 72vw);
  }

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

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

  .section {
    padding: 38px 0;
  }

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

  .feature-grid,
  .all-grid,
  .poster-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card-wide .movie-info p,
  .movie-card-wide .tag-row {
    display: none;
  }

  .rank-row,
  .full-rank-list .rank-row {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .rank-tags,
  .rank-heat {
    display: none;
  }

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

  .highlight-panel,
  .ranking-box,
  .side-card,
  .player-section,
  .detail-section {
    border-radius: 22px;
    padding: 18px;
  }
}
