:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --red-900: #7f1d1d;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 32px rgba(225, 29, 72, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rose-100);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 17px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--slate-500);
  font-size: 12px;
}

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

.nav-link {
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-600);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 236px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-panel input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-panel button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
}

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

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav,
.mobile-category-links {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel nav a,
.mobile-category-links a {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--rose-50);
  color: var(--slate-700);
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(244, 63, 94, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100% - var(--container)) / 2));
  width: min(640px, calc(100% - 48px));
  color: var(--white);
  transform: translateY(-50%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.detail-meta-pills,
.card-meta,
.card-stats,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.26);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14);
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 40px;
  background: var(--white);
}

.stats-strip {
  width: min(100% - 32px, var(--container));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--rose-600);
  font-size: 30px;
  line-height: 1;
}

.stat-card span {
  color: var(--slate-500);
  font-size: 14px;
}

.page-stack {
  padding: 58px 0;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-more {
  color: var(--rose-600);
  font-weight: 900;
  white-space: nowrap;
}

.section-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--slate-200));
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-category,
.poster-duration,
.rank-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.poster-category {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.8);
}

.play-hover {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta,
.card-stats {
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--rose-300, #fda4af);
}

.tag-row {
  margin: 12px 0;
}

.tag-row span,
.tag-cloud span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 800;
}

.card-stats {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

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

.movie-card-horizontal .card-link {
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card-horizontal .poster-wrap {
  height: 100%;
  min-height: 178px;
  aspect-ratio: auto;
}

.movie-card-compact {
  border-radius: 16px;
}

.movie-card-compact .card-link {
  grid-template-columns: 108px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap {
  height: 120px;
  aspect-ratio: auto;
}

.movie-card-compact .card-body {
  padding: 12px;
}

.movie-card-compact .card-body h3 {
  min-height: auto;
  font-size: 15px;
}

.movie-card-compact .card-body p,
.movie-card-compact .tag-row,
.movie-card-compact .card-stats,
.movie-card-compact .poster-duration,
.movie-card-compact .play-hover {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% 20%;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
}

.category-tile strong {
  display: block;
  font-size: 26px;
}

.category-tile small,
.category-tile em {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-tile em {
  margin-top: 12px;
  font-size: 13px;
}

.gradient-rose { background: linear-gradient(135deg, #f43f5e, #db2777); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.gradient-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.gradient-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.gradient-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gradient-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.gradient-fuchsia { background: linear-gradient(135deg, #d946ef, #a21caf); }
.gradient-blue { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.gradient-slate { background: linear-gradient(135deg, #334155, #020617); }
.gradient-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }

.soft-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
}

.cta-panel {
  margin-bottom: 72px;
  padding: 54px 28px;
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: var(--shadow-card);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.cta-panel p {
  width: min(720px, 100%);
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.84);
}

.masonry-grid {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

.page-hero {
  padding: 78px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

.category-overview-card {
  padding: 26px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-overview-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-overview-head span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.category-overview-card h2 {
  margin: 0;
}

.category-overview-card p {
  color: var(--slate-500);
}

.category-overview-card ul {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--slate-700);
}

.category-overview-card li + li {
  margin-top: 7px;
}

.category-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 11px 14px;
}

.filter-count {
  min-width: 112px;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  text-align: center;
  font-weight: 800;
}

.ranking-hero,
.search-hero,
.sitemap-hero {
  background:
    radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.30), transparent 32%),
    linear-gradient(135deg, #0f172a, #881337 58%, #be123c);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) minmax(170px, 0.7fr) 78px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--rose-600);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-search {
  display: flex;
  width: min(720px, 100%);
  gap: 12px;
  margin-top: 20px;
}

.large-search input {
  flex: 1;
  padding: 14px 18px;
}

.large-search button {
  padding-inline: 26px;
}

.search-summary {
  padding: 18px 22px;
  border-radius: 18px;
  color: var(--slate-700);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.18);
  transform: scale(1.08);
  opacity: 0.48;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(136, 19, 55, 0.70));
}

.detail-hero-inner {
  position: relative;
  padding: 44px 0 56px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 22px;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 3 / 4;
  border: 5px solid rgba(255, 255, 255, 0.20);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
}

.detail-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-intro p {
  width: min(760px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta-pills {
  margin-bottom: 26px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 48px 0 40px;
}

.detail-main,
.detail-aside {
  display: grid;
  align-content: start;
  gap: 24px;
}

.player-card,
.detail-card,
.aside-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(225, 29, 72, 0.34), rgba(0, 0, 0, 0.52));
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30);
}

.player-start strong {
  font-size: 18px;
}

.player-start.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  pointer-events: none;
}

.detail-card,
.aside-card {
  padding: 26px;
}

.detail-card h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

.movie-info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.movie-info-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
}

.movie-info-list dt {
  color: var(--slate-500);
  font-weight: 800;
}

.movie-info-list dd {
  margin: 0;
  color: var(--slate-900);
}

.aside-related {
  display: grid;
  gap: 14px;
}

.aside-link {
  display: block;
  padding: 13px 15px;
  border-radius: 14px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-weight: 900;
}

.aside-link + .aside-link {
  margin-top: 10px;
}

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

.sitemap-group {
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.sitemap-group h2 {
  margin: 0 0 14px;
  color: var(--rose-600);
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.sitemap-group a:hover {
  color: var(--rose-600);
}

.site-footer {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.24), transparent 30%),
    linear-gradient(135deg, #881337, #500724 70%, #111827);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
  margin: 0 auto;
  padding: 52px 0 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 22px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.74);
}

.footer-column h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

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

@media (max-width: 820px) {
  .hero-carousel {
    height: 620px;
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    top: auto;
    bottom: 86px;
    transform: none;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid-three,
  .horizontal-grid,
  .category-grid,
  .category-overview-grid,
  .sitemap-grid,
  .footer-inner,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 18px;
  }

  .movie-card-horizontal .card-link,
  .movie-card-compact .card-link {
    grid-template-columns: 132px minmax(0, 1fr);
  }

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

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

  .rank-meta {
    display: none;
  }

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

  .detail-poster {
    width: min(260px, 70vw);
  }

  .large-search {
    flex-direction: column;
  }

  .masonry-grid {
    column-count: 1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-intro h1 {
    letter-spacing: -0.04em;
  }

  .section-heading {
    display: grid;
  }

  .soft-panel {
    padding: 20px;
  }

  .card-body {
    padding: 14px;
  }

  .movie-card-horizontal .poster-wrap,
  .movie-card-compact .poster-wrap {
    min-height: 132px;
    height: auto;
  }

  .sitemap-group ul {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .aside-card {
    padding: 20px;
  }

  .movie-info-list div {
    grid-template-columns: 1fr;
  }
}
