:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef8ff;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --cyan: #06b6d4;
  --cyan-soft: #67e8f9;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --purple: #8b5cf6;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(8, 47, 73, 0.96));
  border-bottom: 1px solid rgba(103, 232, 249, 0.2);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.3);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--cyan-soft);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--cyan-soft);
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(330px, 30vw);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.top-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(520px, 90vw);
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result:hover {
  background: #eff6ff;
  transform: translateX(2px);
}

.search-thumb {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.search-result img,
.search-result .search-thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.search-result h4 {
  margin: 0;
  font-size: 15px;
}

.search-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-search {
  width: 100%;
}

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #083344 100%);
}

.hero-section {
  min-height: 640px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 150px;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.24;
  pointer-events: none;
}

.hero-glow-one {
  top: -180px;
  right: -90px;
  background: var(--cyan);
}

.hero-glow-two {
  bottom: -210px;
  left: -120px;
  background: var(--blue);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-soft), #60a5fa, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p,
.page-hero p {
  max-width: 740px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.hero-tags span {
  padding: 12px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-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;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.3);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transform: rotate(1deg);
}

.hero-feature-poster {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

.hero-feature-poster img,
.detail-poster img,
.rank-thumb img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.hero-feature-info h2 {
  margin: 8px 0;
  font-size: 30px;
  line-height: 1.18;
}

.hero-feature-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-feature-info > span {
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 800;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-card-strip {
  margin-top: -118px;
  position: relative;
  z-index: 5;
}

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

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

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

.section-heading.no-margin {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-hero h1,
.detail-copy h1 {
  color: #ffffff;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

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

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

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

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

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

.poster,
.rank-thumb,
.detail-poster {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #dbeafe, #cffafe 45%, #e0e7ff);
}

.poster {
  aspect-ratio: 3 / 4.25;
}

.poster:hover img,
.movie-card:hover .poster img {
  transform: scale(1.055);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 58px;
  font-weight: 900;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.45), transparent 34%),
    linear-gradient(135deg, #1e3a8a, #0f172a);
}

.poster img,
.hero-feature-poster img,
.detail-poster img,
.rank-thumb img,
.search-result img {
  position: relative;
  z-index: 1;
}

img.is-missing {
  opacity: 0;
}

.poster-shade {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.score-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.play-badge {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.28);
}

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

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

.card-kicker a {
  color: var(--blue);
}

.movie-card h3 {
  margin: 8px 0 7px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.32;
}

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

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

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

.is-compact h3 {
  font-size: 15px;
}

.is-compact p {
  font-size: 13px;
}

.category-section {
  padding-top: 20px;
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.28), transparent 30%),
    linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-5px);
}

.category-tile span {
  color: var(--cyan-soft);
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
}

.category-tile small,
.overview-card p {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

.compact-section {
  padding-top: 0;
}

.ranking-panel {
  position: sticky;
  top: 102px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.compact-rank-list .rank-row {
  grid-template-columns: 38px 54px minmax(0, 1fr);
}

.compact-rank-list .rank-score {
  display: none;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-thumb {
  width: 70px;
  height: 92px;
  border-radius: 14px;
}

.compact-rank-list .rank-thumb {
  width: 54px;
  height: 72px;
}

.rank-main h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.28;
}

.rank-main p {
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 14px;
}

.rank-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.rank-score strong {
  color: var(--orange);
  font-size: 24px;
}

.rank-score span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.page-hero.slim-hero {
  padding: 74px 0 70px;
}

.page-hero .section-shell {
  position: relative;
  z-index: 2;
}

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

.overview-card {
  min-height: auto;
  color: #ffffff;
}

.overview-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.overview-head span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #0f172a;
  font-weight: 900;
  background: var(--cyan-soft);
}

.overview-head h2 {
  margin: 0;
  font-size: 26px;
}

.overview-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

.overview-meta strong {
  color: var(--cyan-soft);
  font-size: 34px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.overview-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-hero {
  padding: 48px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4.28;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.large-score {
  top: 16px;
  right: 16px;
  min-width: 58px;
  min-height: 36px;
  font-size: 16px;
}

.detail-copy h1 {
  max-width: 840px;
  font-size: clamp(36px, 6vw, 62px);
}

.detail-one-line {
  max-width: 860px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.detail-meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 900;
}

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

.player-section {
  padding: 58px 0 24px;
}

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

.site-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.92));
}

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

.player-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.32);
}

.player-cover strong {
  font-size: 28px;
}

.player-cover small {
  color: rgba(255, 255, 255, 0.72);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0 20px;
}

.detail-article {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
}

.site-footer {
  margin-top: 64px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #0f172a, #082f49);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 50px 0 34px;
}

.footer-shell h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-shell p {
  margin: 14px 0 0;
}

.footer-shell ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

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

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

  .nav-toggle {
    display: inline-block;
  }

  .hero-shell,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    max-width: 620px;
    transform: none;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .top-search {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-shell {
    padding: 70px 0 120px;
  }

  .hero-feature-card {
    grid-template-columns: 110px 1fr;
  }

  .hero-feature-poster {
    min-height: 168px;
  }

  .hero-feature-info h2 {
    font-size: 22px;
  }

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

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

  .detail-layout,
  .detail-text-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

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

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .nav-shell,
  .footer-shell,
  .hero-shell {
    width: min(100% - 22px, var(--max));
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-feature-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .hero-feature-poster {
    min-height: 360px;
  }

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

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

  .detail-meta-list {
    grid-template-columns: 1fr;
  }

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

.search-thumb img,
.search-thumb .search-thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
