:root {
  --bg: #faf7f2;
  --bg-strong: #f4efe7;
  --text: #231b14;
  --muted: #6f6256;
  --card: #ffffff;
  --line: rgba(120, 74, 34, 0.16);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #c2410c;
  --dark: #17120d;
  --shadow: 0 22px 50px rgba(66, 32, 6, 0.16);
  --soft-shadow: 0 12px 32px rgba(66, 32, 6, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 34rem), var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav {
  color: #fff;
  background: linear-gradient(90deg, #78350f, #9a3412 50%, #78350f);
  box-shadow: 0 16px 38px rgba(67, 20, 7, 0.32);
}

.nav-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.header-search input,
.mobile-search input {
  width: 210px;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 12px;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #7c2d12;
  font-weight: 800;
  background: #fef3c7;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

main {
  min-height: 70vh;
}

.hero-carousel {
  background: #140d09;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 12, 8, 0.94) 0%, rgba(17, 12, 8, 0.72) 44%, rgba(17, 12, 8, 0.28) 100%),
    radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.32), transparent 34rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 52px;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.hero-tags span,
.detail-facts span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-facts span {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.btn {
  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;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.32);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--amber-dark);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.home-search-panel,
.content-section,
.page-hero,
.detail-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
}

.big-search,
.quick-stats,
.filter-panel,
.hot-rank-box,
.player-panel,
.detail-article,
.side-card,
.category-card-large,
.category-tile,
.movie-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.big-search {
  padding: 24px;
  border-radius: var(--radius);
}

.big-search label {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.big-search div {
  display: flex;
  gap: 12px;
}

.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(120, 74, 34, 0.18);
  border-radius: 16px;
  outline: 0;
  padding: 14px 16px;
  color: var(--text);
  background: #fff;
}

.big-search button,
.filter-panel button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
}

.quick-stats span {
  color: var(--muted);
  font-size: 13px;
}

.quick-stats strong {
  display: block;
  color: var(--amber-dark);
  font-size: 26px;
}

.content-section {
  margin-top: 64px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p:last-child,
.page-hero p,
.category-card-large p,
.category-tile p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e7d8c7, #b98b57);
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0.76;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #7c2d12;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 900;
  background: #fef3c7;
}

.movie-info {
  padding: 16px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.28;
}

.movie-title a:hover {
  color: var(--amber-dark);
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  color: #8a3b0b;
  background: #fff7ed;
}

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

.hot-rank-box {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  padding: 22px;
}

.rank-box-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-box-head p {
  margin: 0;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rank-box-head h2 {
  margin: 0;
  font-size: 24px;
}

.rank-box-head a {
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
}

.rank-line {
  display: grid;
  grid-template-columns: 34px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank-line span {
  color: var(--amber-dark);
  font-weight: 900;
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-line em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-count {
  display: inline-flex;
  color: #8a3b0b;
  font-weight: 900;
}

.category-tile h2,
.category-card-large h2 {
  margin: 12px 0 0;
  font-size: 24px;
}

.category-tile strong {
  display: block;
  margin-top: 18px;
  color: var(--amber-dark);
}

.page-hero {
  margin-top: 42px;
  padding: 56px;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.42), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fef3c7;
}

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

.category-card-large {
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-links {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.category-card-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.category-card-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(130px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
}

.filter-panel label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-panel button {
  min-height: 52px;
}

.filter-count {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.rank-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-table-row {
  display: grid;
  grid-template-columns: 82px minmax(170px, 1fr) 90px 110px minmax(160px, 1fr) 70px;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.rank-table-row:first-child {
  border-top: 0;
}

.rank-table-row:hover {
  background: #fff7ed;
}

.rank-num,
.rank-table-row em {
  color: var(--amber-dark);
  font-style: normal;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #140d09;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
}

.detail-mask {
  background:
    linear-gradient(90deg, rgba(17, 12, 8, 0.96), rgba(17, 12, 8, 0.72) 52%, rgba(17, 12, 8, 0.34)),
    linear-gradient(0deg, #140d09 0%, transparent 38%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 38px;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1,
.detail-copy .eyebrow {
  color: #fff;
}

.detail-one-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.player-section {
  margin-top: -60px;
  position: relative;
  z-index: 8;
}

.player-panel {
  border-radius: 30px;
  padding: 18px;
}

.player-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 18px;
}

.player-head h2 {
  margin: 0;
  font-size: 28px;
}

.player-head span {
  color: var(--muted);
  font-weight: 800;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #070503;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #7c2d12;
  font-size: 34px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

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

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

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-article,
.side-card {
  border-radius: var(--radius);
  padding: 28px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 18px;
  color: #4d4035;
  text-align: justify;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.82);
  background: #17120d;
}

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

.footer-logo {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.64);
}

.footer-group {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
}

.footer-group a:hover {
  color: #fbbf24;
}

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

.is-hidden {
  display: none !important;
}

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

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

  .hero-content,
  .detail-layout,
  .split-section,
  .detail-body-grid,
  .home-search-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .hot-rank-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-inner,
  .mobile-nav,
  .home-search-panel,
  .content-section,
  .page-hero,
  .detail-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

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

  .hero-stage,
  .hero-content {
    min-height: 600px;
  }

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

  .hero-control {
    display: none;
  }

  .big-search div,
  .quick-stats,
  .section-heading,
  .player-head,
  .footer-bottom {
    display: grid;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    gap: 26px;
  }

  .detail-poster {
    width: min(280px, 88vw);
  }

  .rank-table-row {
    grid-template-columns: 60px 1fr 52px;
  }

  .rank-table-row span:nth-of-type(2),
  .rank-table-row span:nth-of-type(3),
  .rank-table-row span:nth-of-type(4) {
    display: none;
  }

  .side-card dl {
    grid-template-columns: 1fr;
  }
}
