:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  font-size: 13px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-title {
  color: var(--ink);
  font-size: 20px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
  padding: 10px 12px;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  background: #f9fafb;
}

.hero {
  position: relative;
  height: 64vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1240px) / 2 + 20px));
  padding-bottom: 58px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-pill i {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-title {
  margin: 20px 0 16px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.intro-actions a,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.intro-actions a:first-child,
.filter-panel button {
  color: var(--white);
  background: var(--blue);
}

.primary-button:hover,
.intro-actions a:first-child:hover,
.filter-panel button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.ghost-button,
.intro-actions a:last-child {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.ghost-button:hover,
.intro-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  width: min(680px, calc(100% - 40px));
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  height: 46px;
  padding: 0 24px;
  border: 0;
  color: var(--white);
  background: var(--blue);
  border-radius: 16px;
  font-weight: 800;
}

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

.home-layout {
  padding: 38px 0 64px;
}

.content-section,
.ranking-panel,
.intro-card,
.detail-article,
.player-section {
  margin-bottom: 48px;
}

.intro-card,
.ranking-panel,
.detail-article,
.player-section,
.filter-panel,
.category-card,
.page-hero {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.intro-card {
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.intro-card h2,
.section-head h2,
.detail-article h2,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.intro-card p,
.page-hero span,
.category-card p,
.detail-article p {
  color: var(--muted);
  line-height: 1.85;
}

.intro-actions a:last-child {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: transparent;
}

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

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head.with-link a,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

.is-featured .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-fade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), transparent);
}

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  right: 10px;
}

.year-badge {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: var(--blue);
}

.movie-info {
  display: block;
  padding: 14px;
}

.movie-info strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
  color: var(--blue);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span:first-child {
  max-width: 58%;
  overflow: hidden;
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 220px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  color: #374151;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  font-size: 26px;
}

.review-list {
  display: grid;
  gap: 16px;
}

.review-row {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.review-poster {
  position: relative;
  flex: 0 0 170px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 14px;
}

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

.review-poster span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.review-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.review-copy span {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-copy em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.category-strip {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

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

.category-pill-grid a {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.category-pill-grid strong {
  color: var(--blue);
  font-size: 18px;
}

.category-pill-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-two-col {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 13px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--blue-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--blue);
  border-radius: 10px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-score {
  color: var(--blue);
  font-weight: 900;
  text-align: right;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 32px 0;
  padding: 38px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.page-hero p {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 12px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 62px;
}

.category-card {
  overflow: hidden;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 168px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.category-body {
  padding: 22px;
}

.category-body h2 {
  margin: 0;
  font-size: 24px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  padding: 6px 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 -10px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.breadcrumb.light {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.light a {
  color: var(--white);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-panel button {
  align-self: end;
  min-height: 44px;
  border: 0;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  background: var(--white);
  border-radius: 18px;
  text-align: center;
}

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

.ranking-page-row {
  display: grid;
  grid-template-columns: 58px 1fr 160px 72px;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ranking-page-row:hover {
  background: #eff6ff;
}

.ranking-page-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--blue);
  border-radius: 11px;
  font-weight: 900;
}

.ranking-page-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-page-row em {
  color: var(--muted);
  font-style: normal;
}

.ranking-page-row b {
  color: var(--blue);
  text-align: right;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  padding: 44px 0 72px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.detail-copy {
  max-width: 780px;
  color: var(--white);
}

.detail-copy h1 {
  margin: 20px 0 16px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.detail-meta-grid b {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.detail-main {
  padding: 42px 0 64px;
}

.player-section,
.detail-article {
  padding: 24px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  color: var(--blue);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.player-cover strong {
  max-width: 80%;
  overflow: hidden;
  font-size: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p + h2 {
  margin-top: 30px;
}

.detail-article p {
  margin-bottom: 0;
  font-size: 17px;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 36px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 430px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

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

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1120px) {
  .desktop-nav a:nth-last-child(-n + 3) {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 42px);
    margin-left: 21px;
  }

  .hero-arrow {
    display: none;
  }

  .featured-grid,
  .home-two-col,
  .category-overview,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel label:first-child {
    grid-column: 1 / -1;
  }

  .filter-panel button {
    grid-column: 1 / -1;
  }

  .detail-layout {
    gap: 26px;
  }

  .detail-poster {
    width: min(320px, 80vw);
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .page-shell,
  .footer-inner {
    width: calc(100% - 28px);
    padding-left: 0;
    padding-right: 0;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-content p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-dots {
    bottom: 146px;
  }

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

  .rail-item {
    flex-basis: 176px;
  }

  .review-row {
    gap: 12px;
  }

  .review-poster {
    flex-basis: 118px;
  }

  .review-copy strong {
    font-size: 16px;
  }

  .review-copy span {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .page-hero,
  .intro-card,
  .ranking-panel,
  .player-section,
  .detail-article {
    padding: 20px;
  }

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

  .ranking-page-row {
    grid-template-columns: 42px 1fr 50px;
  }

  .ranking-page-row em {
    display: none;
  }

  .detail-hero {
    min-height: auto;
    padding: 30px 0 42px;
  }

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

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

@media (max-width: 420px) {
  .movie-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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