*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(30, 41, 59, 0.78);
  --panel-solid: #1e293b;
  --panel-deep: #020617;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-strong: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.14), transparent 26rem),
    linear-gradient(135deg, #020617 0%, #0f172a 42%, #111827 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
}

.site-header.is-solid {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand b {
  color: var(--accent);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-size: 15px;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  padding: 24px 0;
}

.nav-menu {
  position: absolute;
  top: 64px;
  left: -18px;
  width: 180px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-dropdown:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-menu a:hover {
  background: rgba(251, 191, 36, 0.12);
}

.nav-search {
  width: min(280px, 26vw);
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 9px 10px 9px 14px;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
}

.mobile-panel a:hover {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent);
}

.hero-slider {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 68px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0 auto 22px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  width: min(800px, 100%);
  margin: 0 auto 26px;
  color: #d1d5db;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.movie-tags,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span,
.filter-row button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.64);
  color: #dbeafe;
}

.hero-tags span,
.detail-tags span {
  padding: 9px 15px;
  backdrop-filter: blur(10px);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(251, 191, 36, 0.26);
}

.ghost-btn {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--accent);
}

.page-main {
  padding-top: 92px;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.top-gap {
  margin-top: -24px;
}

.alt-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0));
}

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

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

.section-heading p,
.page-hero p,
.site-footer p,
.detail-article p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
}

.movie-card article {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover article {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.58);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow: 0 24px 60px rgba(251, 191, 36, 0.14);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

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

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.movie-pill,
.movie-year {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.movie-pill {
  left: 12px;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
}

.movie-year {
  right: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #111827;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-desc {
  margin: 0 0 14px;
  color: #94a3b8;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  justify-content: flex-start;
}

.movie-tags span {
  padding: 5px 9px;
  font-size: 12px;
  color: #cbd5e1;
}

.movie-card-compact .movie-info h3 {
  font-size: 17px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.16));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 22px;
  color: #fff;
}

.category-card em {
  margin-top: 8px;
  color: #d1d5db;
  font-style: normal;
  line-height: 1.6;
  font-size: 13px;
}

.category-card:hover img {
  opacity: 0.74;
  transform: scale(1.08);
}

.ranking-strip {
  border-block: 1px solid rgba(148, 163, 184, 0.14);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(30, 41, 59, 0.92);
}

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

.rank-item img {
  width: 76px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-text em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  margin-top: 5px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 54px;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
}

.page-search {
  width: min(760px, 100%);
  margin-top: 26px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.5);
}

.page-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 16px;
}

.page-search button,
.filter-row button {
  border: 0;
  cursor: pointer;
}

.page-search button {
  padding: 0 24px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: var(--accent);
}

.filter-row {
  justify-content: flex-start;
  margin-top: 18px;
}

.filter-row button {
  padding: 9px 14px;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #111827;
  background: var(--accent);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.72);
}

.category-image {
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
}

.category-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 2px 0 10px;
  font-size: 28px;
}

.category-overview-card h2 a:hover {
  color: var(--accent);
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sample-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
}

.sample-links a:hover {
  color: #111827;
  background: var(--accent);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.podium-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.32);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.podium-card span,
.podium-card h2,
.podium-card p {
  position: relative;
  z-index: 2;
}

.podium-card span {
  width: max-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  color: #111827;
  font-weight: 900;
  border-radius: 999px;
  background: var(--accent);
}

.podium-card h2 {
  margin: 0 0 10px;
}

.podium-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.7;
}

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

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #111827;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(251, 191, 36, 0.28);
  font-size: 28px;
}

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

.detail-article,
.poster-panel,
.side-box {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.detail-article {
  padding: 30px;
}

.detail-article .lead {
  color: #d1d5db;
  font-size: 18px;
}

.detail-article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-tags {
  justify-content: flex-start;
  margin-top: 18px;
}

.poster-panel {
  margin-top: 0;
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-panel div,
.side-box {
  padding: 20px;
}

.poster-panel h2,
.side-box h2 {
  margin: 0 0 12px;
}

.poster-panel p {
  margin: 8px 0;
  color: #94a3b8;
}

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

.side-recommend .movie-card article {
  display: grid;
  grid-template-columns: 130px 1fr;
}

.side-recommend .movie-thumb {
  height: 100%;
  aspect-ratio: auto;
}

.side-recommend .movie-desc,
.side-recommend .movie-tags,
.side-recommend .movie-play {
  display: none;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  color: #cbd5e1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  padding: 56px max(16px, calc((100% - 1180px) / 2)) 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions,
  .hero-tags {
    justify-content: flex-start;
  }

  .hero-content h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

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

  .movie-grid,
  .dense-grid,
  .category-grid,
  .rank-list,
  .rank-page-list,
  .podium-grid,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .page-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .page-search input {
    min-height: 44px;
  }

  .page-search button {
    min-height: 44px;
  }

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

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

  .detail-article {
    padding: 22px;
  }
}
