:root {
  --bg: #030712;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(3, 7, 18, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.brand-text,
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #34d399, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.top-search input,
.filter-form input,
.filter-form select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
  border-radius: 14px;
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-form input:focus,
.filter-form select:focus {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.top-search button,
.filter-form button {
  border: 0;
  color: white;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.top-search button:hover,
.filter-form button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.18);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 680px;
  opacity: 0;
  transform: scale(1.04);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.82) 46%, rgba(3, 7, 18, 0.25) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.1) 48%, rgba(3, 7, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 44px));
  padding-top: 132px;
  margin-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6ee7b7;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, #ecfdf5, #34d399 52%, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 720px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-size: 13px;
}

.hero-actions,
.detail-info .btn {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.btn.ghost {
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn.soft {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--emerald), var(--teal));
}

.home-search-wrap,
.content-section,
.page-shell,
.detail-shell {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
}

.home-search-wrap {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.filter-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.filter-title {
  margin-bottom: 12px;
  color: #a7f3d0;
  font-weight: 900;
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.7fr 1fr auto;
  gap: 10px;
}

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

.tight-section {
  padding-top: 32px;
}

.accent-section {
  width: 100%;
  max-width: none;
  margin-top: 74px;
  padding: 74px max(22px, calc((100vw - 1280px) / 2 + 22px));
  background: rgba(15, 23, 42, 0.36);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head.slim {
  align-items: center;
}

.section-head h2,
.watch-side h2,
.story-card h2,
.category-block h2,
.rank-detail h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.category-block p {
  margin: 7px 0 0;
  color: var(--muted);
}

.section-more {
  color: #6ee7b7;
  font-weight: 800;
}

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

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

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.04)),
    #111827;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.poster img,
.detail-poster img,
.horizontal-poster img,
.rank-cover img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.12);
}

.poster:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.9), transparent);
}

.card-badge,
.rank-num,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.card-badge {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  color: #ecfdf5;
  background: rgba(3, 7, 18, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.rank-num {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

.play-chip {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-height: 36px;
  color: white;
  background: rgba(16, 185, 129, 0.86);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 11px 4px 0;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover,
.rank-detail h2 a:hover {
  color: #6ee7b7;
}

.card-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(20, 184, 166, 0.04)),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 10px;
  color: #dbeafe;
  font-weight: 500;
}

.category-tile em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-style: normal;
}

.category-tile em a {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-panel,
.category-block,
.story-card,
.watch-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
}

.ranking-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

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

.horizontal-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.horizontal-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.26);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.horizontal-item:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.56);
  background: rgba(16, 185, 129, 0.07);
}

.horizontal-poster {
  position: relative;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.mini-rank {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.horizontal-info {
  min-width: 0;
}

.horizontal-info strong,
.horizontal-info em,
.horizontal-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-info strong {
  color: var(--text);
  font-size: 15px;
}

.horizontal-info em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.horizontal-info small {
  margin-top: 4px;
  color: #cbd5e1;
}

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

.page-hero {
  position: relative;
  padding: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 14%, rgba(16, 185, 129, 0.25), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.9));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

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

.category-block {
  padding: 24px;
}

.category-block-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.breadcrumb a:hover {
  color: #6ee7b7;
}

.detail-shell {
  padding-top: 34px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.75), rgba(3, 7, 18, 0.32)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.96), transparent 65%);
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  padding: 48px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 12px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}

.player-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: black;
  box-shadow: var(--shadow);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: black;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: white;
  background: black;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.big-play {
  position: relative;
  z-index: 3;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.35);
}

.player-error {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.82);
}

.watch-side {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.watch-side h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.story-card {
  padding: 28px;
}

.story-card p {
  margin: 16px 0 0;
  color: #d1d5db;
  font-size: 17px;
}

.accent-card {
  border-left: 4px solid var(--emerald);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.rank-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  font-weight: 900;
}

.rank-detail h2 {
  font-size: 24px;
}

.rank-detail p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}

.footer-inner {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.08);
}

.image-missing {
  opacity: 0;
}

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

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

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

  .split-section,
  .watch-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .watch-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: flex;
  }

  .hero,
  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 104px;
  }

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

  .filter-form input:first-child,
  .filter-form button {
    grid-column: 1 / -1;
  }

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

  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    padding: 30px;
  }

  .story-section,
  .horizontal-list.two-col {
    grid-template-columns: 1fr;
  }

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

  .rank-row .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 64px;
  }

  .home-search-wrap,
  .content-section,
  .page-shell,
  .detail-shell,
  .footer-inner {
    width: min(100% - 28px, 1280px);
  }

  .hero,
  .hero-slide {
    min-height: 590px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 92px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.05em;
  }

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

  .hero-dots {
    left: 14px;
    bottom: 28px;
  }

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

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

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

  .filter-form input:first-child,
  .filter-form button {
    grid-column: auto;
  }

  .page-hero {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .category-block-head,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-poster {
    max-width: 240px;
  }

  .watch-section,
  .story-section {
    gap: 16px;
  }

  .player-panel {
    border-radius: 20px;
  }

  .big-play {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

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

  .rank-cover {
    aspect-ratio: 16 / 9;
  }
}
