:root {
  --bg: #fff8ea;
  --bg-soft: #fff3d4;
  --card: #ffffff;
  --ink: #3f2608;
  --muted: #7a5b34;
  --line: #f4d99c;
  --gold: #d97706;
  --gold-dark: #92400e;
  --orange: #ea580c;
  --shadow: 0 18px 50px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 12px 28px rgba(146, 64, 14, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
    linear-gradient(180deg, #fff7e6 0%, #fffaf1 36%, #fff8ea 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94), rgba(254, 243, 199, 0.94));
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--gold-dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.30);
}

.logo-text {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #92400e, #ea580c, #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  padding: 9px 13px;
  color: #7c4a13;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #78350f;
  background: rgba(251, 191, 36, 0.26);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input {
  width: 210px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(217, 119, 6, 0.64);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.20);
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-btn,
.secondary-btn,
.full-link,
.text-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-btn,
.full-link {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.26);
}

.secondary-btn,
.text-link {
  color: #78350f;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.full-link:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.22);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #3f2608;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 390px);
  align-items: center;
  gap: 54px;
  padding: 86px max(28px, calc((100vw - 1280px) / 2 + 24px));
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(25, 16, 5, 0.92), rgba(120, 53, 15, 0.70), rgba(217, 119, 6, 0.28)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.30), transparent 20rem),
    linear-gradient(0deg, rgba(63, 38, 8, 0.82), transparent 54%);
}

.hero-backdrop {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(63, 38, 8, 0.95), transparent);
  z-index: 1;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: 19px;
}

.hero-tags,
.detail-tags,
.mini-tags,
.detail-meta,
.rank-stats,
.movie-kicker,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  padding: 6px 10px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.hero-copy .hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 237, 213, 0.28);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  justify-self: end;
  width: min(390px, 100%);
  aspect-ratio: 3 / 4;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: #fbbf24;
}

.quick-search-panel {
  position: relative;
  z-index: 10;
  margin-top: -46px;
  padding: 0 24px;
}

.quick-search-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-inner h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--gold-dark);
}

.quick-search-inner p {
  margin: 0;
  color: var(--muted);
}

.hero-search input {
  width: 100%;
  min-height: 48px;
}

.hero-search button {
  min-height: 48px;
  white-space: nowrap;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 68px 24px;
}

.page-top {
  padding-top: 36px;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #78350f;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--gold-dark);
  font-weight: 900;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 45%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.92);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-kicker,
.rank-meta,
.rank-stats {
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 8px 0 7px;
  color: #3f2608;
  font-size: 17px;
  line-height: 1.25;
}

.movie-info p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.mini-tags span {
  padding: 4px 8px;
  font-size: 11px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(217, 119, 6, 0.20);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.20), transparent 12rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  min-height: 176px;
  padding: 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span,
.category-overview-text span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 10px 0;
  color: #78350f;
  font-size: 22px;
}

.category-tile small,
.category-overview-text p {
  color: var(--muted);
}

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

.hot-panel {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(217, 119, 6, 0.20);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hot-title {
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: 22px;
  font-weight: 900;
}

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.compact-card:hover {
  background: rgba(251, 191, 36, 0.18);
  transform: translateX(4px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card span {
  color: #4a2c08;
  font-weight: 800;
  line-height: 1.35;
}

.full-link {
  display: block;
  margin-top: 14px;
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 32px;
  padding: 44px;
  background:
    radial-gradient(circle at right top, rgba(251, 191, 36, 0.34), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.84));
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  margin-top: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #9a6014;
  font-weight: 800;
}

.breadcrumb strong {
  color: #4a2c08;
}

.filter-panel {
  margin: 0 0 30px;
  border: 1px solid rgba(217, 119, 6, 0.20);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

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

.library-filter label {
  display: grid;
  gap: 6px;
  color: #8a540c;
  font-size: 13px;
  font-weight: 900;
}

.library-filter input,
.library-filter select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  color: #3f2608;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-overview-text h2 {
  margin: 8px 0;
  font-size: 30px;
  color: #78350f;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.rank-number {
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 24px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.rank-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
}

.rank-cover {
  display: block;
  min-height: 190px;
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-content {
  padding: 18px 20px;
}

.rank-content h2 {
  margin: 8px 0;
  font-size: 24px;
  color: #3f2608;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at right top, rgba(251, 191, 36, 0.36), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.84));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.22);
}

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

.detail-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
}

.detail-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.detail-meta span,
.rank-stats span,
.rank-meta span,
.movie-kicker span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(251, 191, 36, 0.18);
}

.detail-tags {
  margin: 16px 0 24px;
}

.player-section {
  margin: 34px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #140d05;
  box-shadow: 0 28px 80px rgba(63, 38, 8, 0.30);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.24), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.detail-content article {
  border: 1px solid rgba(217, 119, 6, 0.20);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #78350f;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: #5f4321;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #78350f, #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(160px, 0.6fr));
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  color: #fed7aa;
}

.footer-logo {
  color: #fde68a;
  font-size: 22px;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #fef3c7;
  font-size: 18px;
}

.footer-links a {
  color: #fed7aa;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  padding: 18px 24px;
  text-align: center;
  color: #fed7aa;
}

.is-filtered-out {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

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

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

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 12px 18px;
  }

  .header-search {
    display: none;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 22px 96px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
  }

  .quick-search-inner,
  .split-section,
  .category-overview-card,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 42px 16px;
  }

  .quick-search-panel {
    padding: 0 16px;
  }

  .page-hero,
  .detail-hero {
    border-radius: 24px;
    padding: 24px;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .archive-grid,
  .related-grid,
  .category-grid,
  .category-preview-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .movie-info {
    padding: 12px;
  }

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

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

  .rank-number {
    min-height: 42px;
  }

  .rank-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rank-content h2 {
    font-size: 18px;
  }
}
