:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --yellow-400: #facc15;
  --red-500: #ef4444;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --radius-xl: 1.25rem;
  --radius-lg: 0.875rem;
  --shadow-soft: 0 25px 60px rgba(2, 6, 23, 0.45);
  --shadow-card: 0 16px 36px rgba(2, 6, 23, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-100);
  background: var(--slate-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.18), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.16), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

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: 60;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.32);
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-300);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan-400);
}

.header-search {
  position: relative;
  width: min(260px, 26vw);
}

.header-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  color: var(--gray-100);
  border: 1px solid rgba(71, 85, 105, 0.75);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.86);
}

.header-search input {
  height: 42px;
  padding: 0 16px;
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(460px, 92vw);
  max-height: 470px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(51, 65, 85, 0.86);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-soft);
}

.search-result {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--gray-300);
}

.search-result:hover {
  background: rgba(30, 41, 59, 0.86);
  color: var(--cyan-400);
}

.search-result img {
  width: 50px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-800);
}

.search-result strong {
  display: block;
  color: var(--white);
  line-height: 1.25;
}

.search-result span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(30, 41, 59, 0.85);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 46%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 680px;
  padding-top: 50px;
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-tags span {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: var(--cyan-500);
}

.hero-tags strong {
  color: var(--cyan-400);
}

.hero-tags em {
  color: var(--gray-400);
  font-style: normal;
}

.hero h1,
.hero h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--gray-300);
  font-size: 1.15rem;
}

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

.btn-primary,
.btn-ghost,
.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 28px;
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover,
.btn-mini:hover {
  transform: translateY(-2px);
  background: #0891b2;
}

.btn-ghost {
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--gray-100);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.72);
  color: var(--cyan-400);
  transform: translateY(-2px);
}

.btn-mini {
  min-height: 38px;
  padding: 0 18px;
  color: var(--white);
  background: var(--cyan-500);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.62);
  background:
    radial-gradient(circle at 18% 15%, rgba(6, 182, 212, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
}

.page-hero h1 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-300);
  font-size: 1.1rem;
}

.eyebrow,
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb:hover {
  color: #67e8f9;
}

.content-section {
  padding: 76px 0;
}

.gradient-section {
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900));
}

.dark-section {
  background: rgba(15, 23, 42, 0.76);
}

.slate-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.82));
}

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

.section-head h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-400);
}

.section-link {
  flex: 0 0 auto;
  color: var(--cyan-400);
  font-weight: 800;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 248px;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.58);
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.44);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.52);
  transform: translateY(-8px);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0));
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(6, 182, 212, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.9);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--cyan-400);
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-400);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.82rem;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--cyan-400);
  font-size: 0.75rem;
  background: rgba(6, 182, 212, 0.1);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

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

.category-tile {
  position: relative;
  min-height: 162px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.68);
  border-radius: var(--radius-xl);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-card);
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 1;
}

.category-tile strong {
  bottom: 48px;
  color: var(--white);
  font-size: 1.35rem;
}

.category-tile em {
  bottom: 18px;
  color: var(--gray-300);
  overflow: hidden;
  font-size: 0.9rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-card);
}

.ranking-panel h2 {
  margin: 0 0 20px;
  color: var(--white);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.64);
}

.rank-item:hover {
  background: rgba(51, 65, 85, 0.78);
}

.rank-num {
  color: var(--cyan-400);
  font-weight: 900;
  font-size: 1.08rem;
}

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

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

.rank-info strong {
  color: var(--white);
  line-height: 1.3;
}

.rank-info em {
  margin-top: 5px;
  color: var(--gray-400);
  font-size: 0.78rem;
  font-style: normal;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: var(--shadow-card);
}

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

.category-preview img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-card-body h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.55rem;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--gray-400);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 18px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.66);
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.84);
}

.rank-cover {
  position: relative;
}

.rank-cover img {
  width: 120px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.rank-card-body h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.45rem;
}

.rank-card-body p {
  margin: 0 0 18px;
  color: var(--gray-300);
}

.detail-top {
  padding: 42px 0 36px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  margin-top: 22px;
}

.detail-primary h1 {
  margin: 26px 0 14px;
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.1));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.big-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding-left: 6px;
  font-size: 2.4rem;
  background: rgba(6, 182, 212, 0.94);
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.32);
}

.video-shell.player-error::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-100);
  content: "视频暂时无法播放";
  background: rgba(2, 6, 23, 0.86);
}

.text-panel,
.review-panel,
.side-box {
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.68);
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: var(--shadow-card);
}

.text-panel {
  margin-top: 20px;
}

.text-panel h2,
.review-panel h2,
.side-box h2 {
  margin: 0 0 14px;
  color: var(--white);
}

.text-panel p,
.review-panel p {
  margin: 0;
  color: var(--gray-300);
  font-size: 1.05rem;
}

.review-panel p + p {
  margin-top: 12px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.detail-side {
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-box dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-box dt {
  color: var(--gray-500);
}

.side-box dd {
  margin: 0;
  color: var(--gray-100);
}

.detail-tags {
  margin-top: 18px;
}

.related-block {
  margin-top: 44px;
}

.site-footer {
  padding: 58px 0 28px;
  color: var(--gray-400);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), #020617);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}

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

.site-footer p {
  margin: 0;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(51, 65, 85, 0.66);
  color: var(--gray-500);
  text-align: center;
  font-size: 0.9rem;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid.six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .header-search {
    width: min(360px, 45vw);
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .header-search {
    display: none;
  }

  .mobile-nav.open {
    display: grid;
  }

  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-section {
    padding: 52px 0;
  }

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

  .horizontal-row {
    grid-auto-columns: 210px;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

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

  .rank-card {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .rank-cover img {
    width: 92px;
    height: 124px;
  }

  .side-poster {
    display: none;
  }

  .text-panel,
  .review-panel,
  .side-box {
    padding: 18px;
  }

  .footer-grid {
    gap: 24px;
  }
}
