:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #07111f;
  --panel: #111827;
  --panel-soft: #1f2937;
  --line: #1f2937;
  --line-bright: #10b981;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --emerald: #10b981;
  --emerald-soft: #34d399;
  --teal: #14b8a6;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-nav {
  width: min(100%, var(--max));
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
  font-size: 14px;
  padding-left: 2px;
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--emerald-soft), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--emerald-soft);
  background: rgba(16, 185, 129, 0.1);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.8);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 18px;
  background: rgba(17, 24, 39, 0.98);
}

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

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

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

.hero-slide {
  display: none;
  position: relative;
  min-height: 70vh;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.82) 45%, rgba(3, 7, 18, 0.34) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  min-height: 70vh;
  margin: 0 auto;
  padding: 72px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--emerald-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-line {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  color: var(--emerald-soft);
  background: rgba(16, 185, 129, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  min-height: 32px;
  font-size: 13px;
}

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

.primary-button,
.secondary-button,
.panel-more,
.rank-watch,
.pager-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
}

.secondary-button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(209, 213, 219, 0.18);
  color: var(--text);
  background: rgba(17, 24, 39, 0.72);
}

.primary-button:hover,
.secondary-button:hover,
.panel-more:hover,
.rank-watch:hover,
.pager-links a:hover {
  transform: translateY(-2px);
}

.hero-search {
  margin-top: 28px;
  width: min(100%, 620px);
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(12px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(156, 163, 175, 0.16);
  outline: none;
  color: var(--text);
  background: rgba(3, 7, 18, 0.62);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
  font-weight: 800;
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--text);
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(209, 213, 219, 0.16);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}

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

.category-strip {
  width: min(100%, var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 6;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-strip a {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: var(--shadow);
}

.category-strip strong,
.category-strip span {
  display: block;
}

.category-strip strong {
  color: var(--text);
  font-size: 18px;
}

.category-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.content-section,
.split-section,
.page-main,
.detail-main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

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

.section-heading.left {
  align-items: start;
  justify-content: start;
}

.section-heading h2,
.page-hero h1,
.rank-panel h2,
.related-sticky h2,
.detail-panel h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading h2,
.rank-panel h2,
.related-sticky h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.section-heading p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

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

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

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--panel-soft);
}

.movie-card.is-compact .movie-poster {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .movie-poster img,
.related-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #052016;
  background: rgba(52, 211, 153, 0.92);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h2,
.movie-card h3,
.movie-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card h2 a,
.movie-card h3 a,
.movie-card h4 a {
  transition: color 0.2s ease;
}

.movie-card:hover h2 a,
.movie-card:hover h3 a,
.movie-card:hover h4 a {
  color: var(--emerald-soft);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.split-section {
  padding-top: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.rank-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.8);
  align-self: start;
  position: sticky;
  top: 96px;
}

.rank-list.compact {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.rank-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.54);
  transition: background 0.2s ease;
}

.rank-link:hover {
  background: rgba(16, 185, 129, 0.12);
}

.rank-link span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04130f;
  background: var(--emerald-soft);
  font-weight: 900;
}

.rank-link strong,
.rank-link small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-link small {
  color: var(--muted);
}

.panel-more {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 28px;
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(3, 7, 18, 0.88)),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero.narrow {
  margin-top: 22px;
}

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

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.filter-container {
  padding-top: 36px;
}

.filter-bar {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.filter-bar select {
  color: var(--muted-strong);
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(17, 24, 39, 0.72);
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.category-bg,
.category-overlay,
.category-card-content {
  position: absolute;
  inset: 0;
}

.category-bg {
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.category-overlay {
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.24));
}

.category-card-content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
}

.category-card strong {
  font-size: 24px;
  font-weight: 900;
}

.category-card small {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 14px;
}

.category-card:hover .category-bg {
  transform: scale(1.08);
}

.rank-list.full {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 108px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

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

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel-soft);
}

.rank-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rank-info h2 {
  margin: 0;
  font-size: 22px;
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
}

.rank-watch {
  min-height: 42px;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
}

.detail-main {
  padding-top: 24px;
}

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

.breadcrumb a:hover {
  color: var(--emerald-soft);
}

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.player-cover img {
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.82), rgba(3, 7, 18, 0.2));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04130f;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal));
  box-shadow: 0 0 0 12px rgba(52, 211, 153, 0.12), 0 24px 48px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  padding-left: 5px;
}

.detail-title-block {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
}

.detail-title-block h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-title-block p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(31, 41, 55, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.detail-panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
}

.detail-panel h2 {
  font-size: 24px;
  color: var(--emerald-soft);
}

.detail-panel p {
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
}

.two-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.two-tags .tag-row {
  margin-top: 14px;
}

.pager-links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.pager-links a {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(209, 213, 219, 0.16);
  background: rgba(17, 24, 39, 0.72);
}

.related-column {
  min-width: 0;
}

.related-sticky {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.78);
}

.related-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.related-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.54);
  transition: background 0.2s ease;
}

.related-card:hover {
  background: rgba(16, 185, 129, 0.12);
}

.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel-soft);
}

.related-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.related-info strong,
.related-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.related-info strong {
  -webkit-line-clamp: 2;
  font-size: 15px;
}

.related-info small {
  -webkit-line-clamp: 1;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 82px;
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.82);
}

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

.footer-inner h2 {
  margin: 0;
  color: var(--emerald-soft);
  font-size: 22px;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  color: var(--muted-strong);
}

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

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

  .hero-inner,
  .player-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(100%, 340px);
  }

  .rank-panel,
  .related-sticky {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .site-nav {
    height: 66px;
    padding: 0 16px;
  }

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

  .hero-inner {
    padding: 54px 18px 88px;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

  .category-strip {
    margin-top: 18px;
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .content-section,
  .split-section,
  .page-main,
  .detail-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content-section,
  .split-section {
    padding-top: 50px;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 84px minmax(0, 1fr);
  }

  .rank-watch {
    grid-column: 2 / -1;
  }

  .two-tags {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .movie-card-body {
    padding: 12px;
  }

  .movie-card h2,
  .movie-card h3,
  .movie-card h4 {
    font-size: 14px;
  }

  .movie-line {
    display: none;
  }

  .tag-row {
    display: none;
  }

  .detail-panel .tag-row,
  .hero-tags {
    display: flex;
  }

  .detail-title-block,
  .detail-panel,
  .related-sticky {
    padding: 20px;
  }

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

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
