:root {
  --rose-950: #4c0519;
  --rose-900: #881337;
  --rose-800: #9f1239;
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --pink-50: #fdf2f8;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --gray-950: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(136, 19, 55, 0.14);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--gray-800);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 63, 94, 0.15), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(236, 72, 153, 0.14), transparent 26%),
    linear-gradient(180deg, #fff8fb 0%, #fff 36%, #fff7f9 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.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(159, 18, 57, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--rose-700), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--gray-500);
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-700);
  background: var(--rose-50);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.filter-controls input,
.filter-controls select {
  border: 0;
  outline: none;
  background: transparent;
}

.header-search input {
  width: 100%;
  padding: 11px 86px 11px 16px;
}

.header-search button,
.mobile-search button,
.home-search-panel button {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 16px;
  border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search-panel button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose-700);
  border-radius: 999px;
}

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

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

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

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  background: white;
}

.mobile-search button {
  padding: 0 18px;
  border-radius: 999px;
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--rose-50);
}

.hero {
  padding: 30px 0 18px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: min(680px, calc(100vh - 136px));
  min-height: 560px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(136, 19, 55, 0.26);
  background: var(--rose-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.17), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(76, 5, 25, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
  padding: 74px;
  color: white;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.detail-title-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-line,
.detail-title-copy p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.5;
  font-weight: 700;
}

.hero-summary {
  max-width: 710px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.hero-tags,
.card-tags,
.detail-meta,
.page-actions,
.meta-card dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.card-tags span,
.meta-card dd span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
}

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

.primary-button,
.ghost-button,
.page-actions a,
.section-head a,
.category-card-body span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster img,
.detail-poster img,
.card-cover img,
.wide-cover img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--rose-100), var(--pink-50));
}

.hero-poster span,
.detail-poster span,
.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  background: white;
}

.home-search-panel,
.section-wrap,
.page-hero,
.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-panel {
  margin-top: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.section-head h2,
.rank-panel-head h2,
.page-hero h1,
.detail-side h2,
.content-card h2,
.section-block h2 {
  margin: 0;
  color: var(--gray-950);
}

.home-search-panel p,
.page-hero p,
.category-card-body p,
.content-card p {
  color: var(--gray-600);
  line-height: 1.8;
}

.home-search-panel form {
  display: flex;
  padding: 6px;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  background: white;
}

.home-search-panel input {
  flex: 1;
  padding: 0 14px;
}

.home-search-panel button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
}

.section-wrap {
  margin-top: 54px;
}

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

.section-head span,
.rank-panel-head span,
.page-hero span {
  display: block;
  margin-bottom: 6px;
  color: var(--rose-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.section-head h2,
.rank-panel-head h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.section-head a,
.page-actions a,
.category-card-body span {
  padding: 10px 16px;
  color: var(--rose-700);
  background: var(--rose-50);
}

.section-head a:hover,
.page-actions a:hover,
.category-card:hover .category-card-body span {
  background: var(--rose-100);
}

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

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

.catalog-grid {
  margin-top: 22px;
}

.movie-card {
  border: 1px solid rgba(255, 228, 230, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(136, 19, 55, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rose-50);
}

.card-cover img,
.wide-cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.wide-card:hover .wide-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(76, 5, 25, 0.66));
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.play-dot {
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-category,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  right: 12px;
  top: 12px;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  color: var(--rose-700);
  background: white;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--gray-950);
  transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.wide-title:hover {
  color: var(--rose-700);
}

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

.card-meta,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-tags {
  margin-top: 12px;
}

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

.rank-panel,
.detail-side,
.filter-card,
.content-card {
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.rank-panel,
.detail-side {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(136, 19, 55, 0.14);
}

.wide-cover {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rose-50);
}

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  font-weight: 900;
}

.wide-title {
  display: block;
  margin: 4px 0 8px;
  color: var(--gray-950);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.wide-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.22);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(225, 29, 72, 0.28);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: auto;
  font-size: 16px;
}

.category-tile em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  margin-top: 30px;
  padding: 58px;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--rose-900), var(--pink-600));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: white;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-hero span {
  color: rgba(255, 255, 255, 0.78);
}

.soft-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #9f1239, #db2777 70%, #f43f5e);
}

.hot-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #4c0519, #be123c 52%, #ec4899);
}

.search-hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #831843, #e11d48);
}

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

.category-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(136, 19, 55, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 210px;
  overflow: hidden;
}

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--gray-950);
  font-size: 28px;
}

.filter-card {
  padding: 20px;
}

.filter-title {
  margin-bottom: 14px;
  color: var(--gray-950);
  font-size: 18px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 170px);
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  background: white;
  color: var(--gray-700);
}

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

.rank-list.large {
  margin-top: 22px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  padding: 34px 0 56px;
  background-size: cover;
  background-position: center;
  color: white;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(76, 5, 25, 0.74));
}

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

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

.breadcrumb a:hover {
  color: white;
}

.detail-title-wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-title-copy h1 {
  color: white;
}

.detail-meta {
  margin: 22px 0 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 63, 94, 0.18), transparent 24%),
    #111827;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.26);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #05050a;
}

.cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05050a;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(0, 0, 0, 0.46));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.meta-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-card dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rose-100);
}

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

.meta-card dd {
  margin: 0;
  color: var(--gray-800);
}

.section-block {
  margin-top: 12px;
}

.compact-head h2 {
  font-size: 30px;
}

.detail-side h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.detail-side .wide-card,
.side-rank .wide-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.detail-side .wide-title {
  font-size: 15px;
}

.detail-side .wide-body p,
.detail-side .wide-meta {
  font-size: 12px;
}

.detail-side .movie-grid,
.side-grid {
  display: grid;
  gap: 14px;
}

.side-grid .movie-card .card-body p,
.side-grid .movie-card .card-tags {
  display: none;
}

.site-footer {
  margin-top: 76px;
  color: white;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, var(--rose-950), var(--rose-900), var(--pink-600));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

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

.footer-links strong {
  display: block;
  margin-bottom: 14px;
  color: white;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

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

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 240px;
    padding: 44px;
  }

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

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

  .brand-text em {
    display: none;
  }

  .hero-shell {
    min-height: 660px;
    height: auto;
    border-radius: 24px;
  }

  .hero-slide {
    position: relative;
    min-height: 660px;
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 22px 86px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    margin: 0 auto;
    order: -1;
  }

  .hero-summary {
    display: none;
  }

  .hero-actions,
  .page-actions {
    flex-wrap: wrap;
  }

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

  .home-search-panel form {
    border-radius: 18px;
    flex-direction: column;
  }

  .home-search-panel input {
    min-height: 44px;
  }

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

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

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

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

  .wide-title {
    font-size: 16px;
  }

  .wide-body p {
    -webkit-line-clamp: 1;
  }

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

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

  .detail-hero {
    min-height: auto;
  }

  .meta-card dl div {
    grid-template-columns: 1fr;
  }

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

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

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

  .wide-card,
  .detail-side .wide-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .card-body h3 {
    font-size: 17px;
  }
}
