* {
  box-sizing: border-box;
}

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --pink-500: #ec4899;
  --yellow-300: #fde047;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --slate-950: #020617;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-600);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.3);
}

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

.nav-link {
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 190px;
  padding: 10px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  color: var(--gray-700);
  border-radius: 10px;
  font-weight: 700;
}

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

.header-search {
  position: relative;
  width: 260px;
}

.global-search-input,
.local-filter-input,
.local-filter-select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-input:focus,
.local-filter-input:focus,
.local-filter-select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.global-search-results.is-open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 14px;
}

.search-item:hover {
  background: var(--orange-50);
}

.search-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.search-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.search-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: var(--orange-50);
  border-radius: 12px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

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

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 0;
}

.mobile-nav-inner a {
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500) 52%, var(--pink-500));
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.hero-glow {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.32;
  mix-blend-mode: multiply;
  animation: blob 7s infinite;
}

.hero-glow.one {
  top: 82px;
  left: 8%;
  background: var(--yellow-300);
}

.hero-glow.two {
  top: 170px;
  right: 7%;
  background: #f472b6;
  animation-delay: 2s;
}

.hero-glow.three {
  bottom: 52px;
  left: 36%;
  background: #fb923c;
  animation-delay: 4s;
}

@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.08);
  }

  66% {
    transform: translate(-22px, 22px) scale(0.92);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 78px 0 46px;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--yellow-300);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--yellow-300);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-tags,
.detail-badges,
.card-meta,
.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-badges span,
.ranking-info span {
  padding: 6px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.hero-actions .btn.primary,
.btn.primary.light {
  color: var(--orange-600);
  background: var(--white);
}

.btn.ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn.ghost:hover {
  color: var(--orange-600);
  background: var(--white);
}

.btn.text {
  color: var(--white);
  padding-inline: 8px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 54%);
}

.hero-play,
.play-mark,
.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.hero-play {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  width: 70px;
  height: 70px;
  font-size: 28px;
}

.hero-controls {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

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

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

.hero-search-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(260px, 420px);
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.hero-search-panel strong,
.hero-search-panel span {
  display: block;
}

.hero-search-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-search-results {
  left: 0;
  right: auto;
  color: var(--gray-900);
}

.hero-chip-row,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chip,
.category-pill {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-chip:hover,
.category-pill:hover,
.category-pill.is-active {
  color: var(--orange-600);
  background: var(--white);
  transform: translateY(-2px);
}

.hero-thumb-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.hero-thumb img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section {
  padding: 76px 0;
}

.white-section {
  background: var(--white);
}

.soft-section {
  background: linear-gradient(135deg, var(--gray-50), var(--orange-50));
}

.dark-section {
  color: var(--white);
  background: var(--gray-900);
}

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

.section-head h2,
.page-hero h1 {
  margin: 7px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head p,
.page-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--gray-600);
}

.light-head p {
  color: rgba(255, 255, 255, 0.72);
}

.link-more {
  color: var(--orange-600);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
}

.compact-card .card-cover {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .card-cover img,
.rank-card:hover img,
.wall-item:hover img,
.category-card:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
}

.cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  font-size: 22px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

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

.card-meta {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.tag-line {
  overflow: hidden;
  margin-top: 10px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-card img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 13px;
  transition: transform 0.4s ease;
}

.rank-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--gray-600);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-card span:last-child {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.wall-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.wall-item {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 20px;
  break-inside: avoid;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.wall-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wall-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 62%);
}

.wall-item div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.wall-item h3,
.wall-item p {
  margin: 0;
}

.wall-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  color: var(--white);
  background: var(--gray-900);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.category-card div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.category-card span,
.overview-body span {
  color: var(--yellow-300);
  font-size: 13px;
  font-weight: 950;
}

.category-card h3,
.overview-body h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.category-card p,
.overview-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cta-section {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-600), var(--red-600));
  padding: 70px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-inner p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--red-600));
  padding: 74px 0;
}

.page-hero .section-kicker,
.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.overview-card {
  min-height: auto;
  background: var(--white);
  color: var(--gray-900);
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--gray-900);
}

.overview-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.overview-body {
  padding: 22px;
}

.overview-body p {
  color: var(--gray-600);
}

.category-pills {
  margin-top: 0;
  margin-bottom: 22px;
}

.category-pill {
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.category-pill.is-active,
.category-pill:hover {
  color: var(--white);
  background: var(--orange-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.local-filter-select {
  border-radius: 14px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  font-weight: 950;
}

.ranking-row img {
  width: 82px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.4s ease;
}

.ranking-info h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.ranking-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--gray-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-info span {
  color: var(--gray-600);
  background: var(--gray-100);
  border: 0;
}

.ranking-action {
  color: var(--orange-600);
  font-weight: 950;
}

.player-section {
  padding: 34px 0;
  background: var(--slate-950);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
  background: #000;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  font-size: 36px;
}

.player-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: var(--white);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 950;
  text-align: left;
}

.detail-content-section {
  background: var(--gray-50);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-main-card,
.detail-side-card,
.related-section {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-main-card {
  padding: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-badges span {
  color: var(--orange-600);
  background: var(--orange-50);
  border: 0;
}

.detail-main-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 20px;
}

.detail-genre {
  margin: 0 0 24px;
  color: var(--orange-600);
  font-weight: 900;
}

.detail-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-weight: 800;
}

.detail-side-card {
  height: fit-content;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.detail-side-card h2 {
  margin: 18px 0 14px;
  font-size: 22px;
}

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

.detail-side-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.detail-side-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.detail-side-card a {
  color: var(--orange-600);
}

.related-section {
  margin-top: 24px;
  padding: 30px;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo {
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--orange-500);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

@media (max-width: 1100px) {
  .hero-slide {
    grid-template-columns: 1fr 320px;
  }

  .hero-poster {
    min-height: 460px;
  }

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

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

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

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

  .detail-side-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .header-inner {
    gap: 12px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .hero-inner {
    padding-top: 42px;
  }

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

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster {
    min-height: 380px;
    transform: none;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-search-results {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .link-more {
    display: inline-block;
    margin-top: 12px;
  }

  .latest-grid,
  .movie-grid,
  .rank-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .ranking-action {
    display: none;
  }

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

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

  .logo,
  .footer-logo {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy h2 {
    font-size: 25px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

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

  .detail-main-card,
  .related-section {
    padding: 22px;
  }

  .player-title {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .big-play {
    width: 74px;
    height: 74px;
  }

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