:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-500: #eab308;
  --dark: #1f2937;
  --muted: #6b7280;
  --soft: rgba(255, 255, 255, 0.82);
  --line: rgba(180, 83, 9, 0.16);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background:
    radial-gradient(circle at top left, rgba(252, 211, 77, 0.42), transparent 34rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fefce8 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.12);
}

.nav-shell,
.footer-shell,
.content-section,
.hero-section,
.category-strip,
.page-hero,
.detail-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 26px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-logo strong {
  font-size: 23px;
  line-height: 1;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #78350f;
  background: var(--amber-100);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 18px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--amber-100);
  color: var(--amber-700);
}

.hero-section {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 28px;
  padding: 36px 0 20px;
}

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

.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-backdrop,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(251, 191, 36, 0.35), transparent 22rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.62) 50%, rgba(31, 41, 55, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92%);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  color: #fff;
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.24);
  border: 1px solid rgba(252, 211, 77, 0.32);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-content p,
.page-hero p,
.detail-info p {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.34);
}

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

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 54px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--amber-300);
}

.hero-panel {
  display: grid;
  gap: 22px;
}

.hero-search-card,
.hero-rank-card,
.article-card,
.side-card,
.category-preview,
.soft-panel,
.toolbar,
.player-frame {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card,
.hero-rank-card {
  border-radius: 28px;
  padding: 26px;
}

.hero-search-card > span,
.section-title > span,
.page-hero > div > span,
.toolbar span,
.preview-head span {
  display: inline-flex;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-search-card h2 {
  margin: 14px 0 20px;
  font-size: 26px;
  line-height: 1.2;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 12px;
  color: var(--dark);
  background: transparent;
}

.search-box button {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: var(--amber-500);
}

.panel-title,
.preview-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-title {
  margin-bottom: 16px;
  font-size: 20px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 18px;
}

.category-strip a {
  padding: 11px 16px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-strip a:hover {
  transform: translateY(-2px);
  background: #fff;
}

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

.content-section.no-pad {
  padding: 0;
}

.soft-panel {
  width: min(1200px, calc(100% - 32px));
  padding: 34px;
  border-radius: 34px;
}

.section-title {
  margin-bottom: 28px;
}

.section-title h2,
.toolbar h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  color: var(--dark);
  background: #fff;
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 50px rgba(146, 64, 14, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.detail-poster img,
.category-hero img,
.ranking-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.image-missing {
  opacity: 0;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.duration,
.play-dot {
  position: absolute;
  z-index: 2;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.play-dot {
  left: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  font-size: 17px;
  line-height: 1.35;
}

.card-body em,
.card-genre,
.card-line {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-genre {
  color: var(--amber-700);
  font-weight: 800;
}

.tag-row,
.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.detail-tag-list span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

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

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(146, 64, 14, 0.17);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--amber-700);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}

.category-preview {
  border-radius: 30px;
  padding: 28px;
  margin-bottom: 26px;
}

.preview-head {
  margin-bottom: 20px;
}

.preview-head h3 {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
}

.preview-head a {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: var(--amber-500);
}

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

.two-column,
.full-ranking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 74px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-list .ranking-item {
  grid-template-columns: auto 64px 1fr;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: var(--amber-50);
}

.rank-number {
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ranking-item img {
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.rank-info em {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
}

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

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 300px;
  margin-top: 34px;
  padding: 44px;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(252, 211, 77, 0.34), transparent 18rem),
    linear-gradient(135deg, #78350f, #b45309 48%, #f59e0b);
  box-shadow: var(--shadow);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero .page-search {
  width: min(460px, 100%);
}

.category-hero img {
  width: 260px;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.inline-actions .ghost-button {
  color: #78350f;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.38);
}

.toolbar {
  padding: 22px;
  margin-bottom: 24px;
  border-radius: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.92)),
    radial-gradient(circle at 72% 22%, rgba(245, 158, 11, 0.4), transparent 22rem);
}

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 34px 0 56px;
}

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

.breadcrumb a:hover {
  color: var(--amber-300);
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-info p {
  color: rgba(255, 255, 255, 0.8);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  margin-top: -30px;
  position: relative;
  z-index: 4;
}

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

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

.center-play {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  font-size: 34px;
  line-height: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 34px;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.player-overlay.is-hidden,
.center-play.is-hidden {
  display: none;
}

.overlay-card {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.overlay-card span {
  color: rgba(255, 255, 255, 0.72);
}

.player-message {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 7;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(127, 29, 29, 0.82);
}

.player-message.show {
  display: block;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.article-card,
.side-card {
  border-radius: 26px;
  padding: 28px;
}

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

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-self: start;
  position: sticky;
  top: 100px;
}

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

.side-list .movie-card {
  grid-template-columns: 120px 1fr;
}

.side-list .poster-wrap {
  aspect-ratio: 16 / 11;
}

.side-list .tag-row,
.side-list .card-line {
  display: none;
}

.nav-card {
  display: grid;
  gap: 12px;
}

.nav-card a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #78350f;
  background: var(--amber-100);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #fffbeb;
  background: linear-gradient(135deg, #78350f, #92400e, #451a03);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.2fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 28px;
}

.footer-shell p,
.footer-shell a,
.footer-bottom {
  color: #fde68a;
}

.footer-shell p {
  max-width: 460px;
  line-height: 1.85;
}

.footer-shell h2 {
  margin: 0 0 16px;
  color: #fcd34d;
  font-size: 18px;
}

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

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

.footer-shell a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(253, 230, 138, 0.24);
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .hero-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-section,
  .hero-panel,
  .detail-grid,
  .page-hero,
  .footer-shell,
  .two-column,
  .full-ranking {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-content {
    min-height: 520px;
  }

  .hero-content {
    padding: 34px;
  }

  .hero-dots {
    left: 34px;
  }

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

  .category-card-grid,
  .category-card-grid.large {
    grid-template-columns: 1fr;
  }

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

  .toolbar,
  .preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    border-radius: 18px;
  }

  .ranking-item {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-score {
    display: none;
  }

  .side-list .movie-card {
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .footer-shell,
  .content-section,
  .hero-section,
  .category-strip,
  .page-hero,
  .detail-shell,
  .soft-panel {
    width: min(100% - 22px, 1200px);
  }

  .brand-copy em {
    display: none;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 500px;
  }

  .hero-content,
  .page-hero {
    padding: 26px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-line,
  .tag-row {
    display: none;
  }

  .player-overlay {
    padding: 18px;
  }

  .center-play {
    width: 68px;
    height: 68px;
  }
}
