:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f0fdfa;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --teal: #14b8a6;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 32rem),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 72vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.34);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.nav-link,
.mobile-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  min-width: 78px;
  height: 42px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(37, 99, 235, 0.12));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.12));
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f766e;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.mobile-nav-link {
  height: 44px;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #020617;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.16)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 86px);
  bottom: clamp(84px, 14vw, 140px);
  width: min(620px, calc(100% - 48px));
  color: #ffffff;
  z-index: 3;
}

.hero-tags,
.detail-tags,
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.category-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

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

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-soft {
  color: #0f766e;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-side-card {
  position: absolute;
  right: clamp(20px, 4vw, 52px);
  top: 50%;
  z-index: 4;
  width: min(350px, 33vw);
  transform: translateY(-50%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.hero-side-card h2 {
  margin: 10px 0 10px;
  font-size: 2rem;
}

.hero-side-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d9488;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side-card .eyebrow {
  color: #7dd3fc;
}

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

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.22);
}

.related-card img {
  width: 58px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.related-card span {
  display: grid;
  min-width: 0;
}

.related-card strong {
  overflow: hidden;
  color: currentColor;
  font-size: 0.96rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-card em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 7vw, 86px);
  bottom: 44px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

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

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

.page-shell,
.content-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.content-shell {
  padding: 60px 0;
}

.section-stack {
  display: grid;
  gap: 72px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 100px;
  height: 100px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(37, 99, 235, 0.2));
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

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

.movie-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.featured-card .poster-wrap {
  aspect-ratio: 4 / 3;
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 48%);
  opacity: 0.9;
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-kicker,
.card-meta,
.detail-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-kicker span:first-child,
.card-meta span:first-child,
.detail-meta span:first-child {
  color: #0f766e;
  font-weight: 900;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  font-size: 1.1rem;
}

.featured-card .card-body h3 {
  min-height: auto;
  font-size: 1.24rem;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  line-height: 1.65;
}

.compact-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.compact-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12) 58%);
}

.compact-card strong,
.compact-card em,
.compact-play,
.rank-mini {
  position: absolute;
  z-index: 2;
}

.compact-card strong {
  left: 14px;
  right: 14px;
  bottom: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.compact-card em {
  left: 14px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-style: normal;
}

.compact-play {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.rank-mini {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.landing-panel,
.page-hero,
.detail-hero,
.filter-panel,
.copy-panel,
.player-shell,
.related-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 56px);
  margin: 34px auto 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 254, 255, 0.9)),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.25), transparent 22rem);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, #0f172a, #0d9488, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-bottom: 26px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #ffffff;
}

.search-box span {
  color: #0f766e;
  font-size: 1.4rem;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-row,
.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill,
.filter-select {
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
}

.filter-pill {
  padding: 0 16px;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.filter-select {
  padding: 0 18px;
  outline: 0;
}

.empty-state {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

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

.movie-card.is-hidden,
.compact-card.is-hidden {
  display: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(22px, 5vw, 46px);
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.9)),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 26rem);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  margin: 0;
  color: #334155;
  font-size: 1.16rem;
  line-height: 1.85;
}

.detail-tags span {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.18);
  background: rgba(20, 184, 166, 0.1);
}

.watch-section {
  padding-top: 34px;
}

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

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.36));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  font-size: 2.6rem;
}

.player-overlay strong {
  max-width: min(700px, calc(100% - 48px));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 800;
}

.copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding-top: 34px;
}

.copy-panel,
.related-panel {
  padding: clamp(22px, 4vw, 34px);
}

.copy-panel h2,
.related-panel h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.copy-panel p {
  margin: 0 0 20px;
  color: #334155;
  line-height: 1.95;
}

.copy-panel p:last-child {
  margin-bottom: 0;
}

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

.related-panel .related-card {
  color: var(--text);
  background: #f8fafc;
}

.related-panel .related-card em {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #0f766e;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 66px 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-row img {
  width: 104px;
  height: 132px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  min-width: 88px;
  text-align: center;
  color: #0f766e;
  font-size: 1.6rem;
  font-weight: 900;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-brand {
  color: #0f766e;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #0f766e;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-side-card {
    display: none;
  }

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-content {
    left: 22px;
    bottom: 86px;
  }

  .hero-dots {
    left: 22px;
    bottom: 38px;
  }

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

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

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

  .detail-hero,
  .copy-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 46px 78px minmax(0, 1fr);
  }

  .rank-row img {
    width: 78px;
    height: 104px;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    min-width: 0;
    font-size: 1.2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 24px, 1240px);
    height: 70px;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero,
  .page-shell,
  .content-shell,
  .footer-inner,
  .mobile-nav {
    width: calc(100% - 24px);
  }

  .hero {
    margin-top: 18px;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

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

  .btn-primary,
  .btn-ghost,
  .btn-soft {
    width: 100%;
  }

  .content-shell {
    padding: 44px 0;
  }

  .section-stack {
    gap: 52px;
  }

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

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-body {
    padding: 14px;
  }

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

  .player-shell {
    border-radius: 22px;
  }

  .play-ring {
    width: 68px;
    height: 68px;
    font-size: 2rem;
  }
}
