:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #fff7ed;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #0ea5e9;
  --teal: #14b8a6;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--orange);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
  -webkit-text-fill-color: #ffffff;
}

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

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 270px;
}

.header-search input,
.mobile-search input,
.hero-search-box input,
.filter-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.hero-search-box input:focus,
.filter-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-icon,
.filter-search span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid #f1f5f9;
}

.mobile-panel.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 0;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.mobile-search input {
  padding: 11px 16px;
}

.mobile-search button,
.hero-search-box button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  cursor: pointer;
  font-weight: 800;
}

.hero-section {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.hero-main {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-slide img,
.detail-bg img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.1)), linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 62%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 15vw, 200px);
  bottom: clamp(28px, 7vw, 72px);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.24);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(16px, 2.1vw, 21px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.primary-button,
.ghost-button,
.section-link,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.9);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  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: 28px;
  background: var(--orange);
}

.hero-side {
  border-radius: 32px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.hero-side h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-side p {
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-search-box form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.hero-search-box input {
  padding: 13px 16px;
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #fed7aa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.hero-mini-card img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini-card span {
  font-weight: 900;
  color: #111827;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-shortcuts a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffedd5;
  font-weight: 900;
  font-size: 13px;
}

main {
  overflow: hidden;
}

.content-section,
.category-strip,
.rank-section,
.detail-body,
.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px;
}

.content-section.tinted {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1240px) / 2 + 20px));
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.55), rgba(255, 255, 255, 0));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link,
.text-button {
  min-height: 40px;
  color: var(--orange);
  background: #ffedd5;
}

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

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

.category-tile,
.category-card {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  border-color: #fdba74;
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-card strong {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.category-tile span,
.category-card span {
  margin-top: 10px;
  color: var(--muted);
}

.category-card {
  min-height: 280px;
  overflow: hidden;
}

.category-card-posters {
  display: flex;
  margin-bottom: 18px;
  min-height: 116px;
}

.category-card-posters img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.14);
  border: 3px solid #ffffff;
}

.category-card-posters img + img {
  margin-left: -30px;
}

.category-card em {
  margin-top: auto;
  color: var(--orange);
  font-weight: 900;
  font-style: normal;
}

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

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

.movie-grid.full-grid {
  align-items: start;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.30);
}

.play-chip {
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 14px);
  opacity: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover {
  color: var(--orange);
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.rank-spotlight .movie-card {
  height: 100%;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: #fdba74;
}

.compact-card img {
  width: 66px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.compact-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.compact-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.wide-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #fb923c, #f97316 48%, #d97706);
  box-shadow: var(--shadow);
}

.wide-callout h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.wide-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  border-radius: 32px;
  padding: 42px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.simple-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.simple-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.orange-hero {
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.26), transparent 26%), linear-gradient(135deg, #fb923c, #f97316 48%, #d97706);
}

.blue-hero {
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, #38bdf8, #0ea5e9 45%, #14b8a6);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef2f7;
}

.filter-search {
  position: relative;
  min-width: min(520px, 100%);
  flex: 1;
}

.filter-search input {
  padding: 13px 18px 13px 44px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #ffffff;
  background: var(--orange);
}

.empty-state {
  display: none;
  padding: 50px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
  font-size: 20px;
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.76)), linear-gradient(0deg, #111827, rgba(17, 24, 39, 0.12) 54%);
}

.detail-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 42px;
}

.detail-poster img {
  width: 280px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-intro h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-intro p {
  max-width: 880px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 19px;
}

.tag-row.light span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: #020617;
  cursor: pointer;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
}

.player-cover.hidden {
  display: none;
}

.player-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.player-info {
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef2f7;
}

.player-info h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.player-info p {
  margin: 0;
  color: var(--muted);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  gap: 22px;
  padding-top: 0;
}

.story-card,
.meta-card {
  border-radius: 26px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.meta-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #475569;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.meta-card dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 20px 28px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #475569;
  font-weight: 700;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 28px auto 0;
  padding-top: 20px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
}

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

  .hero-section,
  .player-section,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero-side {
    order: -1;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .header-search {
    display: none;
  }

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .topbar {
    gap: 14px;
  }

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

  .category-grid,
  .category-grid.large,
  .footer-grid,
  .rank-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    width: min(260px, 100%);
  }

  .filter-bar,
  .section-head,
  .wide-callout {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-row .text-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-section,
  .content-section,
  .category-strip,
  .rank-section,
  .detail-body,
  .player-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-section {
    margin-top: 16px;
    gap: 16px;
  }

  .hero-main,
  .hero-side,
  .page-hero,
  .player-shell {
    border-radius: 22px;
  }

  .hero-main {
    min-height: 500px;
  }

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

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card h2 {
    font-size: 15px;
  }

  .tag-row span:nth-child(n+4) {
    display: none;
  }

  .page-hero {
    margin: 16px 14px 0;
    padding: 28px 22px;
  }

  .detail-content {
    padding: 28px 14px 46px;
  }

  .detail-intro h1 {
    font-size: 42px;
  }

  .player-play-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
