:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --amber-400: #f59e0b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.25);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 18%, #fff7f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.mobile-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--rose-600);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
}

.brand.light .brand-copy strong,
.brand.light .brand-copy small {
  color: #ffffff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-nav a,
.nav-dropdown button {
  border: 0;
  padding: 9px 0;
  background: transparent;
  color: var(--slate-700);
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
  color: var(--rose-600);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 220px;
  padding: 12px;
  transform: translateX(-50%) translateY(10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--slate-700);
}

.dropdown-panel a:hover {
  color: var(--rose-600);
  background: var(--rose-100);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 290px;
  padding: 5px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: #ffffff;
}

.nav-search input,
.mobile-search input,
.large-search input,
.list-filter input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--slate-800);
  background: transparent;
}

.nav-search input {
  padding: 0 12px;
}

.nav-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  cursor: pointer;
  white-space: nowrap;
}

.nav-search button {
  padding: 8px 14px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--rose-600);
}

.mobile-panel {
  display: none;
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 18px;
  background: var(--rose-50);
}

.mobile-search input {
  padding: 10px;
}

.mobile-search button {
  padding: 10px 18px;
}

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

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-700);
  background: #ffffff;
}

.mobile-panel nav a.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-500));
}

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

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

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

.hero-slide > img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.05) contrast(1.04);
}

.hero-backdrop,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.24), transparent 26%), linear-gradient(90deg, rgba(136, 19, 55, 0.9) 0%, rgba(190, 24, 93, 0.72) 48%, rgba(251, 146, 60, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 90px 22px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 27px);
  line-height: 1.55;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--rose-600);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: absolute;
  right: max(22px, calc((100vw - var(--container)) / 2 + 22px));
  bottom: 76px;
  z-index: 3;
  width: min(34vw, 360px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  transform: rotate(4deg);
}

.hero-poster img,
.movie-poster-link img,
.rank-cover img,
.rank-hero-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img,
.movie-card:hover .movie-poster-link img,
.rank-hero-card:hover img,
.detail-poster:hover img {
  transform: scale(1.07);
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.quick-search-band {
  position: relative;
  z-index: 5;
  margin-top: -44px;
  padding: 0 22px;
}

.quick-search-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search-inner h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.quick-search-inner p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.quick-search-inner form,
.large-search {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: var(--rose-50);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.quick-search-inner input,
.large-search input {
  padding: 0 16px;
}

.quick-search-inner button,
.large-search button {
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  cursor: pointer;
  white-space: nowrap;
}

.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 22px 0;
}

.compact-section {
  padding-top: 48px;
}

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

.section-heading.tight {
  margin-bottom: 18px;
}

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span:not(.category-icon) {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.25);
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.05em;
}

.section-heading > a {
  color: var(--rose-600);
  font-weight: 700;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  content: "";
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  font-weight: 800;
}

.category-icon.large {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  font-size: 30px;
}

.category-card strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.tone-pink,
.category-card.tone-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-orange,
.category-card.tone-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.tone-slate,
.category-card.tone-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.tone-red,
.category-card.tone-red {
  background: linear-gradient(135deg, #ef4444, #be123c);
}

.tone-violet,
.category-card.tone-violet {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.tone-amber,
.category-card.tone-amber {
  background: linear-gradient(135deg, #d97706, #f97316);
}

.tone-cyan,
.category-card.tone-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.tone-green,
.category-card.tone-green {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.tone-blue,
.category-card.tone-blue {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.22s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
  opacity: 1;
}

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

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

.movie-meta {
  margin-bottom: 8px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--rose-600);
}

.movie-card p {
  min-height: 54px;
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.chip-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

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

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 78px 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff7f8);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.09);
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rose-50);
}

.rank-number {
  font-size: 20px;
  font-weight: 900;
  color: var(--rose-600);
}

.rank-title {
  display: block;
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.35;
}

.rank-content p {
  margin: 6px 0;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.5;
}

.rank-content span {
  color: var(--slate-500);
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 90px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-500));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.category-hero::before,
.simple-hero::before,
.ranking-hero::before,
.search-hero::before {
  position: absolute;
  inset: -160px -80px auto auto;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.category-preview {
  max-width: var(--container);
  margin: 42px auto 0;
  padding: 26px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow-soft);
}

.category-preview .movie-card {
  color: var(--slate-800);
}

.category-preview-head {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.category-preview-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.category-preview-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-preview-head a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--rose-600);
  background: #ffffff;
  font-weight: 800;
}

.list-filter {
  width: min(360px, 100%);
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.16);
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.ranking-hero > div {
  width: 100%;
}

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

.rank-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.rank-hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.rank-hero-card span,
.rank-hero-card strong,
.rank-hero-card small {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.rank-hero-card span {
  top: 16px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: #ffffff;
  font-weight: 900;
}

.rank-hero-card strong {
  bottom: 44px;
  color: #ffffff;
  font-size: 20px;
}

.rank-hero-card small {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.large-search {
  max-width: 720px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.94);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

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

.detail-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 22px 70px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  border: 8px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-strong);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-info h1 {
  max-width: 920px;
}

.detail-line {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.7;
}

.detail-meta-grid {
  max-width: 820px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta-grid span {
  min-height: 70px;
  padding: 12px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.player-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 22px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #050608;
  box-shadow: var(--shadow-strong);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050608;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.play-overlay strong {
  font-size: clamp(24px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.play-overlay small {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

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

.story-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.story-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.accent-card {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
}

.accent-card h2,
.accent-card p {
  color: #ffffff;
}

.site-footer {
  margin-top: 76px;
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #9f1239, #c2410c);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

  .ranking-panel {
    position: static;
  }

  .hero-poster {
    width: 270px;
  }
}

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

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

  .hero-carousel {
    min-height: 660px;
  }

  .hero-content {
    padding-bottom: 280px;
  }

  .hero-poster {
    left: 22px;
    right: auto;
    bottom: 74px;
    width: 190px;
    transform: rotate(0);
  }

  .quick-search-inner,
  .footer-inner,
  .detail-wrap,
  .detail-content,
  .category-preview-head {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-grid.expanded,
  .movies-grid,
  .small-grid,
  .full-rank,
  .rank-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: 220px;
  }
}

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

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

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

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding: 58px 16px 260px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .hero-content p,
  .page-hero p,
  .detail-line {
    font-size: 17px;
  }

  .hero-poster {
    width: 160px;
  }

  .quick-search-band,
  .content-section,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-search-inner {
    padding: 18px;
  }

  .quick-search-inner form,
  .large-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .quick-search-inner input,
  .large-search input {
    min-height: 46px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .category-grid.expanded,
  .movies-grid,
  .small-grid,
  .full-rank,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 66px 16px;
  }

  .detail-wrap {
    padding: 56px 16px 50px;
    gap: 26px;
  }

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

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

  .story-card {
    padding: 22px;
  }

  .footer-inner {
    padding: 38px 16px;
  }
}
