:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --cyan: #0891b2;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f6 52%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.3);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, var(--primary-dark), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #334155;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--primary-dark);
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 32vw);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button {
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.header-search button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(20, 184, 166, 0.26), transparent 33%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.36) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
  min-height: 650px;
  padding: 90px 0 80px;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #14b8a6;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
}

.hero-desc {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.detail-meta span,
.poster-badge,
.poster-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span {
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.28);
}

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(8, 145, 178, 0.92));
  font-weight: 900;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  width: 48px;
  background: #14b8a6;
}

.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stats-grid div {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.stats-grid strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 800;
}

.section-block {
  padding: 72px 0 0;
}

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

.section-heading h2,
.panel-title h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 10px 18px;
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta,
.movie-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--primary-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #475569;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-foot {
  justify-content: space-between;
  margin-top: 16px;
}

.movie-card-foot a {
  color: var(--primary-dark);
}

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  font-size: 0.98rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.side-card,
.content-card,
.filter-panel,
.table-wrap {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-row:hover {
  background: #ecfeff;
}

.rank-number {
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.rank-title {
  display: grid;
  gap: 2px;
  font-weight: 900;
}

.rank-title small {
  color: var(--muted);
  font-weight: 700;
}

.category-tiles-section {
  padding-top: 72px;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow-soft);
}

.category-tile span,
.overview-card span {
  display: block;
  font-size: 1.28rem;
  font-weight: 900;
}

.category-tile small,
.overview-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.13);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 40px;
  color: #fff;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: var(--shadow);
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
  color: #fff;
}

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

.page-hero {
  padding: 92px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.35), transparent 34%),
    linear-gradient(135deg, #0f172a, #164e63);
}

.compact-hero {
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.filter-panel {
  margin-bottom: 30px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 9px 12px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.filter-summary button {
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  font-weight: 900;
}

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

.overview-card {
  min-height: 170px;
  color: #fff;
  background: #0f172a;
}

.overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transition: transform 0.3s ease;
}

.overview-card:hover img {
  transform: scale(1.06);
}

.overview-card span,
.overview-card small {
  position: relative;
  z-index: 2;
}

.table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rank-table th {
  color: var(--muted);
  font-size: 0.85rem;
}

.table-rank {
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.table-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.table-title img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-hero {
  min-height: 560px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  min-height: 560px;
  padding: 86px 0 72px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 1.3rem;
  font-weight: 900;
}

.detail-copy h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
  text-align: center;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.32);
  font-size: 1.8rem;
}

.player-overlay strong {
  font-size: 1.15rem;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.76);
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 1.05rem;
}

.tag-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-cloud a {
  padding: 8px 12px;
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  font-weight: 700;
}

.next-prev {
  display: grid;
  gap: 12px;
}

.next-prev a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 800;
}

.next-prev a:hover {
  color: var(--primary-dark);
  background: #ecfeff;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand .brand-text {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

img.is-missing {
  opacity: 0;
}

.poster-wrap.has-missing-image::before,
.hero-poster.has-missing-image::before,
.overview-card.has-missing-image::before,
.detail-poster.has-missing-image::before {
  content: "高清影片";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #0f766e, #0891b2);
  font-weight: 900;
  letter-spacing: 0.1em;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .header-search {
    width: 100%;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

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

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

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 12px;
  }

  .site-nav {
    top: 112px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding: 70px 0;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .hero-arrow {
    display: none;
  }

  .stats-grid,
  .movie-grid,
  .small-grid,
  .library-grid,
  .category-tiles,
  .overview-grid,
  .footer-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    gap: 28px;
    align-items: center;
    padding: 64px 0;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 34px 46px 1fr;
  }

  .rank-row strong {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .detail-meta span,
  .hero-tags span {
    font-size: 0.78rem;
  }
}
