:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --danger: #fb7185;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #052e2b;
  background: linear-gradient(135deg, #6ee7b7, #14b8a6);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.22);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted-light);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 9px 13px;
  font-size: 14px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.68);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav a {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide {
  min-height: 72vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.26) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.22), transparent 32rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 44px;
  padding: 80px 0 120px;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.hero-site-title {
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ffffff, #a7f3d0 58%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-light);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.footer-tags,
.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.footer-tags a,
.hero-category-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(15, 23, 42, 0.52);
  font-size: 13px;
}

.hero-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 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #022c22;
  background: linear-gradient(135deg, #6ee7b7, #14b8a6);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.22);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-search {
  width: min(560px, 100%);
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.54);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 10px;
}

.hero-search button {
  border-radius: 13px;
  padding: 10px 18px;
  color: #022c22;
  font-weight: 800;
  background: #34d399;
}

.hero-panel {
  align-self: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  margin: 4px 0 12px;
  color: #ffffff;
  font-weight: 800;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: rgba(51, 65, 85, 0.64);
}

.hero-mini-card img {
  width: 70px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
}

.hero-dots,
.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: #34d399;
}

.hero-controls button,
.rail-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover,
.rail-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  transform: translateY(-2px);
}

.site-section {
  padding: 74px 0;
}

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

.section-heading h2,
.compact-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p,
.compact-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading > a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--accent-bright);
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(16, 185, 129, 0.08);
}

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

.category-card,
.category-overview-card,
.movie-card,
.ranking-item,
.side-card,
.text-panel,
.player-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius);
}

.category-card img,
.category-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08);
}

.category-card::after,
.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.14));
}

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

.category-card span {
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--muted-light);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 55%);
  opacity: 0.82;
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #022c22;
  background: #34d399;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.28);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb7185, #f59e0b);
}

.movie-card-body {
  padding: 15px;
}

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

.movie-meta-line span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.55);
}

.movie-card h3 {
  margin: 8px 0 6px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-mini-links a:hover {
  color: var(--accent-bright);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact {
  flex: 0 0 210px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

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

.movie-card-compact p {
  display: none;
}

.rail-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

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

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

.ranking-list {
  margin-top: 24px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 74px 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 12px;
  border-radius: 18px;
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.ranking-cover img {
  width: 74px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ranking-number {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-bright);
}

.ranking-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ranking-copy p {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  position: relative;
  padding: 74px 0 42px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.20), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.92));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-box label {
  display: grid;
  gap: 6px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 700;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.23);
  border-radius: 13px;
  outline: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.6);
}

.empty-state {
  margin: 32px 0 0;
  padding: 26px;
  text-align: center;
  color: var(--muted-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
}

.category-visual {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.category-visual span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
}

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

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-mini-links a {
  color: var(--muted-light);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.36);
  font-size: 13px;
}

.detail-hero {
  padding: 48px 0 34px;
  background:
    radial-gradient(circle at 10% 18%, rgba(16, 185, 129, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

.detail-main h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(51, 65, 85, 0.58);
  border: 1px solid var(--line);
}

.large-tags {
  margin-top: 18px;
}

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

.detail-content-main,
.detail-sidebar,
.side-related {
  display: grid;
  gap: 20px;
}

.player-card,
.text-panel,
.side-card {
  border-radius: var(--radius);
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

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

.player-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #022c22;
  font-size: 28px;
  background: linear-gradient(135deg, #6ee7b7, #14b8a6);
  box-shadow: 0 22px 44px rgba(16, 185, 129, 0.32);
}

.text-panel,
.side-card {
  padding: 24px;
}

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

.text-panel p {
  margin: 0;
  color: var(--muted-light);
  line-height: 1.9;
  font-size: 16px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.side-card dd {
  margin: 0;
  color: #ffffff;
}

.side-related .movie-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 0;
}

.side-related .poster-link img {
  height: 132px;
}

.side-related .tag-row,
.side-related .play-chip,
.side-related .movie-meta-line span:nth-child(n+3) {
  display: none;
}

.side-related .movie-card-body {
  padding: 12px;
}

.side-related .movie-card h3 {
  margin-top: 4px;
}

.side-related .movie-card p {
  min-height: 0;
  -webkit-line-clamp: 3;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a,
.footer-tags a {
  color: var(--muted-light);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-panel {
    display: none;
  }

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 78vh;
  }

  .hero-inner {
    padding: 56px 0 150px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-category-row {
    max-height: 84px;
    overflow: hidden;
  }

  .section-heading {
    display: block;
  }

  .section-heading > a {
    display: inline-flex;
    margin-top: 18px;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 24px, 1240px);
  }

  .nav-wrap {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1,
  .hero-site-title {
    font-size: 18px;
  }

  .hero-copy h2 {
    font-size: 44px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-actions,
  .hero-search {
    width: 100%;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search input {
    min-height: 42px;
  }

  .hero-bottom {
    bottom: 18px;
  }

  .site-section {
    padding: 52px 0;
  }

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

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

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

  .ranking-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 60px 42px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-cover img {
    width: 60px;
  }

  .ranking-number {
    font-size: 24px;
  }

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

  .detail-poster {
    width: 170px;
  }

  .detail-main h1 {
    font-size: 38px;
  }

  .detail-one-line {
    font-size: 16px;
  }

  .side-related .movie-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .side-related .poster-link img {
    height: 118px;
  }
}
