:root {
  --pink-50: #fff1f6;
  --pink-100: #ffe4ef;
  --pink-200: #ffc7df;
  --pink-400: #fb6aa7;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --orange-50: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.16);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 50px rgba(190, 24, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, var(--pink-50), #fff, var(--orange-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  background: linear-gradient(135deg, var(--pink-400), var(--rose-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 600;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-drop:hover > a {
  color: var(--pink-500);
}

.nav-drop {
  position: relative;
  padding: 26px 0;
}

.nav-menu {
  position: absolute;
  left: 0;
  top: 70px;
  min-width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
}

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

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
}

.nav-menu a:hover {
  background: var(--pink-50);
}

.top-search,
.mobile-search,
.search-band form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  margin-left: auto;
}

.top-search input,
.mobile-search input,
.search-band input,
.filter-panel input {
  border: 1px solid rgba(236, 72, 153, 0.18);
  outline: none;
  background: rgba(249, 250, 251, 0.9);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  transition: all 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-band input:focus,
.filter-panel input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
  background: #fff;
}

.top-search input {
  width: 220px;
}

.top-search button,
.mobile-search button,
.search-band button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  padding: 11px 20px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-band button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--pink-50);
  border-radius: 14px;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #374151;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

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

.mobile-panel nav {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.home-hero {
  position: relative;
  height: 570px;
  max-width: 1240px;
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, calc(100% - 120px));
  color: #fff;
}

.hero-label,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 20px 0;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pink-500);
  background: var(--pink-50);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  font-size: 34px;
  line-height: 1;
  z-index: 4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-nav.prev {
  left: 18px;
}

.hero-nav.next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: #fff;
}

.search-band,
.section-wrap,
.page-hero,
.detail-shell,
.watch-section {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: 24px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.search-band h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-band p {
  margin: 0;
  color: var(--muted);
}

.search-band input {
  width: min(380px, 48vw);
}

.section-wrap {
  padding: 54px 24px 0;
}

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

.section-heading.inside {
  padding: 0;
}

.section-heading.small {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--pink-500);
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.35s ease;
  z-index: -2;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.82));
  z-index: -1;
}

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

.category-card span,
.category-card p {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #fff;
}

.category-card span {
  bottom: 54px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.video-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card.is-hidden {
  display: none;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

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

.video-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.58));
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  z-index: 2;
  transition: all 0.25s ease;
}

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

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--pink-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta a {
  color: var(--pink-500);
  font-weight: 800;
}

.card-body h2 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--pink-500);
}

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

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

.ranking-box {
  position: sticky;
  top: 100px;
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(190, 24, 93, 0.08);
}

.rank-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pink-100);
}

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

.rank-cover strong {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  font-size: 13px;
}

.rank-title {
  display: block;
  margin: 3px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--pink-500);
}

.rank-card p,
.rank-card span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  margin-top: 26px;
  padding: 58px 24px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(244, 63, 94, 0.88)), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.42), transparent 35%);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero.slim {
  min-height: 230px;
  display: flex;
  align-items: center;
}

.page-hero span {
  color: var(--pink-500);
  background: #fff;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.08);
}

.filter-panel input {
  width: 100%;
}

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

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #4b5563;
  background: var(--pink-50);
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.empty-state {
  display: none;
  text-align: center;
  margin: 40px 0;
  color: var(--muted);
  font-size: 18px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 24px;
  background: #111827;
  color: #fff;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66));
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  background: var(--pink-100);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.tag-row.strong {
  margin-bottom: 24px;
}

.watch-section {
  padding: 38px 24px 0;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.55));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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

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

.story-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.prev-next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prev-next a {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--pink-500);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.08);
}

.prev-next a:last-child {
  text-align: right;
}

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

.site-footer {
  margin-top: 70px;
  padding: 48px 24px 34px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--pink-500);
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--pink-50);
  color: var(--pink-500);
  font-weight: 800;
  font-size: 13px;
}

.footer-links.compact a {
  font-size: 12px;
}

.copyright {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .ranking-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .home-hero {
    height: 520px;
    margin: 16px 14px 0;
    border-radius: 24px;
  }

  .hero-content {
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

  .search-band {
    margin: 18px 14px 0;
    padding: 20px;
    display: grid;
  }

  .search-band form {
    display: grid;
  }

  .search-band input {
    width: 100%;
  }

  .section-wrap {
    padding: 38px 14px 0;
  }

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

  .category-card {
    min-height: 160px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 16px;
  }

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

  .page-hero {
    margin: 18px 14px 0;
    padding: 42px 20px;
    border-radius: 26px;
  }

  .detail-hero {
    padding: 36px 16px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .watch-section {
    padding: 24px 14px 0;
  }

  .video-stage {
    border-radius: 20px;
  }

  .story-card {
    padding: 20px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

  .prev-next a:last-child {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .category-grid,
  .category-grid.large,
  .movie-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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