:root {
  color-scheme: dark;
  --bg-main: #020617;
  --bg-deep: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(37, 99, 235, 0.28);
  --line-strong: rgba(6, 182, 212, 0.45);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --amber: #f59e0b;
  --red: #f43f5e;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.16), transparent 34%),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.26);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text,
.footer-logo {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #93c5fd);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.drop-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 190px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

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

.drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.drop-panel a:hover {
  color: var(--cyan);
  background: rgba(30, 58, 138, 0.45);
}

.top-search {
  margin-left: auto;
  width: min(340px, 30vw);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.big-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  padding: 10px 12px;
}

.top-search input:focus,
.big-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.top-search button,
.big-search button,
.primary-btn,
.ghost-btn,
.panel-link {
  border: 0;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
  padding: 10px 14px;
}

.top-search button:hover,
.big-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.panel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.22);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  padding: 8px 11px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.52);
}

.hero {
  position: relative;
  height: min(600px, 76vh);
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.25) 46%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2));
  bottom: 58px;
  width: min(760px, calc(100% - 48px));
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.quick-links a {
  display: inline-flex;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
}

.hero-tags span,
.detail-tags span,
.quick-links a {
  padding: 7px 12px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 0.76rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
}

.ghost-btn {
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(15, 23, 42, 0.66);
}

.ghost-btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: white;
  background: rgba(2, 6, 23, 0.45);
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.quick-search-section,
.section-wrap,
.filter-bar,
.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-section {
  position: relative;
  z-index: 6;
  margin-top: -42px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.big-search input {
  padding: 15px 16px;
}

.big-search button {
  padding: 15px 22px;
}

.quick-links {
  margin-top: 14px;
}

.quick-links a:hover {
  border-color: rgba(103, 232, 249, 0.52);
  color: white;
}

.section-wrap {
  padding: 68px 0 0;
}

.section-wrap.no-top {
  padding-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-title span {
  font-size: 1.6rem;
}

.section-title h2,
.page-hero h1,
.detail-copy h1,
.detail-text h2,
.side-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title p,
.page-hero p,
.overview-top p,
.detail-one-line,
.detail-text p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.section-title p {
  margin: 4px 0 0;
}

.section-title.with-link {
  justify-content: space-between;
}

.section-title.with-link a,
.panel-link {
  color: var(--cyan);
  font-weight: 900;
}

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

.category-tile,
.overview-card,
.rank-panel,
.recommend-panel,
.detail-text,
.side-panel,
.filter-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:before,
.overview-card:before,
.page-hero:before {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.22);
  filter: blur(20px);
}

.category-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--line-strong);
}

.category-tile span,
.overview-top span {
  font-size: 2.3rem;
}

.category-tile strong,
.overview-top h2 {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
}

.category-tile em,
.overview-top p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.6;
}

.tone-red {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.82), rgba(30, 41, 59, 0.9));
}

.tone-violet {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.82), rgba(30, 41, 59, 0.9));
}

.tone-amber {
  background: linear-gradient(145deg, rgba(146, 64, 14, 0.82), rgba(30, 41, 59, 0.9));
}

.tone-blue,
.tone-cyan {
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.82), rgba(30, 41, 59, 0.9));
}

.tone-pink {
  background: linear-gradient(145deg, rgba(157, 23, 77, 0.82), rgba(30, 41, 59, 0.9));
}

.tone-green {
  background: linear-gradient(145deg, rgba(20, 83, 45, 0.82), rgba(30, 41, 59, 0.9));
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover:after {
  opacity: 1;
}

.play-float {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(6, 182, 212, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: all 0.25s ease;
}

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

.duration,
.card-type,
.rank-badge {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.78);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
}

.card-type {
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: rgba(6, 182, 212, 0.9);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.4;
}

.movie-info h3 a:hover {
  color: var(--cyan);
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.rank-panel,
.recommend-panel,
.detail-text,
.side-panel {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 92px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(30, 41, 59, 0.7);
  transform: translateX(4px);
}

.rank-item img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: rgba(51, 65, 85, 0.96);
}

.rank-1 {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #64748b);
}

.rank-3 {
  background: linear-gradient(135deg, #f59e0b, #92400e);
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--subtle);
  font-style: normal;
  font-size: 0.86rem;
}

.rank-score {
  color: var(--cyan);
  font-weight: 900;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1280px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.7), rgba(15, 23, 42, 0.94));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 14px 0 0;
  font-size: 1.08rem;
}

.hero-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 2.4rem;
}

.crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--subtle);
  font-size: 0.92rem;
}

.crumbs a:hover {
  color: var(--cyan);
}

.crumbs em {
  color: var(--muted);
  font-style: normal;
}

.filter-bar {
  margin-top: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.5fr 220px 220px auto;
  align-items: end;
  gap: 14px;
}

.filter-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 0.88rem;
}

.filter-field input,
.filter-field select {
  padding: 13px 14px;
}

.filter-count {
  margin: 0;
  color: var(--cyan);
  font-weight: 900;
  white-space: nowrap;
}

.overview-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.overview-top {
  display: block;
  min-height: 160px;
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.overview-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.48;
}

.detail-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.25)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.08));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 5vw, 52px);
  align-items: end;
  padding: 72px 0 54px;
}

.detail-poster img {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.detail-one-line {
  max-width: 840px;
  margin: 18px 0;
  font-size: 1.15rem;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
}

.player-section {
  margin-top: -10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: #000;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.78;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), rgba(2, 6, 23, 0.7));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 46px rgba(6, 182, 212, 0.35);
  transform: translate(-50%, -50%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-text h2,
.side-panel h2 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.detail-text p {
  margin: 0 0 22px;
  font-size: 1.03rem;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
}

.info-list dt {
  color: var(--subtle);
}

.info-list dd {
  margin: 0;
  color: var(--text);
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
}

.side-links a:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.side-links em {
  color: var(--subtle);
  font-size: 0.86rem;
  font-style: normal;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  padding: 34px 0;
}

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

.footer-links a {
  color: var(--muted);
}

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

.hidden-by-filter {
  display: none;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .hero {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    bottom: 70px;
  }

  .big-search {
    grid-template-columns: 1fr;
  }

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

  .section-wrap {
    padding-top: 48px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .detail-poster img {
    width: 220px;
  }

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

  .rank-item {
    grid-template-columns: 36px 74px 1fr;
  }

  .rank-item img {
    width: 74px;
    height: 52px;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .quick-search-section,
  .section-wrap,
  .filter-bar,
  .detail-hero-inner,
  .footer-inner,
  .page-hero {
    width: min(100% - 20px, 1280px);
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    width: calc(100% - 28px);
    left: 14px;
  }

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

  .movie-cover {
    aspect-ratio: 16 / 9;
  }

  .detail-copy h1 {
    font-size: 2.2rem;
  }
}
