:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #38bdf8;
  --yellow: #facc15;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

button,
input {
  font: inherit;
}

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

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.logo-text {
  font-size: 20px;
  color: var(--white);
}

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

.nav-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--white);
  padding: 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 3px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  flex-direction: column;
  align-items: stretch;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 72px 0 56px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(37, 99, 235, 0.16), transparent 32rem);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  gap: 52px;
  align-items: center;
  min-height: 540px;
}

.hero-slide.is-active {
  display: grid;
  animation: softReveal 0.55s ease both;
}

.hero-copy h1 {
  margin: 18px 0;
  max-width: 780px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.8;
}

.hero-kicker,
.page-kicker,
.section-kicker,
.mini-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.tag-row span {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.hero-search button,
.hero-search a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.hero-search button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.2);
}

.btn-secondary,
.hero-search a {
  color: var(--white);
  background: rgba(15, 23, 42, 0.82);
  border-color: var(--line);
}

.btn-primary:hover,
.btn-secondary:hover,
.hero-search button:hover,
.hero-search a:hover {
  transform: translateY(-2px);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.8);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.78));
}

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

.hero-cover:hover img,
.movie-card:hover img,
.category-tile:hover img,
.poster-showcase:hover img {
  transform: scale(1.08);
}

.hero-play,
.hover-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(34, 211, 238, 0.86);
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.28);
}

.hero-play {
  left: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  font-size: 28px;
}

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.74);
  font-size: 28px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(16px);
}

.hero-search input,
.page-search {
  width: 100%;
  min-height: 46px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.48);
  padding: 0 18px;
}

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

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

.section-heading h2,
.panel-title span,
.side-panel h2,
.story-panel h2,
.info-panel h2 {
  margin: 12px 0 0;
  color: var(--white);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading p,
.page-hero p,
.category-overview-body p,
.story-panel p,
.info-panel dd,
.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 21 / 9;
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.74));
  opacity: 0.82;
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
}

.duration-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(250, 204, 21, 0.9);
  color: #111827;
}

.hover-play {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  padding: 16px;
}

.card-meta-row,
.card-foot,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.movie-card h3,
.horizontal-card h3 {
  margin: 12px 0 8px;
  color: var(--white);
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card h3 {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.horizontal-card:hover h3 {
  color: var(--cyan);
}

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

.featured-wrap .movie-card h3 {
  font-size: clamp(24px, 3vw, 36px);
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--panel);
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.category-tile small {
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.65;
}

.split-grid,
.ranking-layout,
.detail-body-grid,
.two-col-hero {
  display: grid;
  gap: 28px;
}

.split-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.ranking-panel,
.side-panel,
.story-panel,
.info-panel,
.filter-panel,
.category-overview-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.2);
}

.ranking-panel,
.side-panel,
.story-panel,
.info-panel,
.filter-panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title a,
.side-link-list a {
  color: var(--cyan);
}

.horizontal-card {
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.horizontal-card:hover {
  background: rgba(15, 23, 42, 0.78);
  transform: translateX(4px);
}

.horizontal-card a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.horizontal-card img {
  width: 112px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.horizontal-card h3 {
  font-size: 16px;
}

.muted-line {
  color: #64748b;
  font-size: 12px;
}

.page-hero {
  position: relative;
  padding: 86px 0 50px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0.7));
}

.page-hero h1 {
  margin: 16px 0;
  max-width: 820px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.small-hero p,
.category-hero p,
.ranking-hero p {
  max-width: 760px;
  font-size: 18px;
}

.two-col-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
}

.hero-mini-card .movie-card,
.poster-showcase {
  transform: rotate(1.5deg);
}

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

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

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.search-field {
  display: grid;
  gap: 9px;
  color: #cbd5e1;
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.42);
  padding: 9px 14px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #001018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.category-cover-link {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}

.category-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.category-cover-link span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  font-weight: 800;
  font-size: 24px;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  color: var(--white);
}

.compact-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.compact-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dbeafe;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 9px;
}

.compact-link small {
  color: var(--muted);
  white-space: nowrap;
}

.ranking-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

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

.ranking-list-large .horizontal-card {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
}

.side-panel {
  position: sticky;
  top: 92px;
}

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

.side-link-list a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
}

.poster-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

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

.poster-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.86));
}

.poster-showcase span {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
  font-weight: 800;
  font-size: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.26;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 46%, rgba(2, 6, 23, 0.64) 100%);
}

.detail-head {
  position: relative;
  z-index: 1;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 16px 0;
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  font-size: 19px;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.52);
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001018;
  font-size: 32px;
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
}

.detail-body-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.story-panel p {
  font-size: 17px;
  margin: 14px 0 26px;
}

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.info-panel div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-panel dt {
  color: #cbd5e1;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

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

.footer-links {
  align-items: flex-start;
  flex-direction: column;
}

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

.footer-bottom {
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 0 26px;
  font-size: 14px;
}

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

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .split-grid,
  .ranking-layout,
  .detail-body-grid,
  .two-col-hero {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-cover {
    aspect-ratio: 16 / 10;
  }

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

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

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

  .category-cover-link {
    min-height: 220px;
  }

  .detail-poster {
    width: min(260px, 100%);
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 64px;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.035em;
  }

  .hero-copy p,
  .small-hero p,
  .category-hero p,
  .ranking-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .horizontal-card a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .horizontal-card img {
    width: 96px;
    height: 72px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .video-shell {
    border-radius: 18px;
  }
}
