:root {
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --yellow: #eab308;
  --cyan: #06b6d4;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #0f172a;
  background: var(--soft);
  line-height: 1.6;
}

body.mobile-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.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(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
}

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

.nav-link,
.nav-button {
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

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

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-weight: 700;
}

.nav-dropdown-panel a:hover {
  background: #ecfeff;
  color: var(--teal);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 270px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.header-search input,
.mobile-search input,
.inline-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #0f172a;
}

.header-search button,
.mobile-search button,
.inline-search button {
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition: 0.2s ease;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
}

.mobile-link {
  display: block;
  padding: 13px 8px;
  border-radius: 12px;
  font-weight: 700;
  color: #334155;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: #ecfeff;
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: #0f172a;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(20, 184, 166, 0.5), transparent 36%),
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.48), transparent 32%),
    linear-gradient(135deg, #0f766e 0%, #2563eb 48%, #312e81 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.25) 87.5%, rgba(255,255,255,0.25)),
    linear-gradient(150deg, rgba(255,255,255,0.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.25) 87.5%, rgba(255,255,255,0.25)),
    linear-gradient(30deg, rgba(255,255,255,0.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.25) 87.5%, rgba(255,255,255,0.25)),
    linear-gradient(150deg, rgba(255,255,255,0.25) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.25) 87.5%, rgba(255,255,255,0.25));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
}

.hero-slides {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-kicker,
.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-kicker {
  margin-bottom: 18px;
}

.hero-kicker span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  padding: 6px 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-actions,
.promo-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--teal);
  background: white;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

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

.secondary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.9);
}

.secondary-button:hover {
  background: white;
  color: var(--teal);
}

.secondary-button.light {
  color: white;
  border-color: white;
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  background: rgba(15, 23, 42, 0.24);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.35);
  transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent 55%);
}

.hero-poster-glow {
  position: absolute;
  inset: auto 12% -18% 12%;
  height: 34%;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.45);
  filter: blur(36px);
  z-index: -1;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--soft), transparent);
}

.hero-stat-wrap {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}

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

.stat-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  min-height: 172px;
  padding: 28px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover,
.movie-card:hover,
.category-card:hover,
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.stat-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: white;
  font-weight: 900;
  font-size: 22px;
}

.stat-blue {
  background: linear-gradient(135deg, #60a5fa, var(--blue));
}

.stat-orange {
  background: linear-gradient(135deg, #fb923c, var(--orange));
}

.stat-card strong {
  font-size: 26px;
}

.stat-card em {
  color: var(--muted);
  font-style: normal;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: #f1f5f9;
}

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

.section-kicker {
  display: inline-flex;
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-heading h2,
.sub-hero h1,
.detail-card h1,
.promo-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.section-more {
  color: var(--teal);
  font-weight: 900;
}

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

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

.movie-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #134e4a);
}

.movie-card-featured .movie-cover {
  min-height: 330px;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.movie-region,
.movie-year {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.movie-region {
  top: 12px;
  left: 12px;
  background: var(--teal);
}

.movie-year {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-play-icon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  font-weight: 900;
  transition: 0.22s ease;
}

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

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.movie-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--teal);
}

.movie-card-body p {
  margin: 0;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #475569;
  font-size: 13px;
}

.movie-meta-row span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--teal);
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  min-height: 142px;
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-card span {
  position: relative;
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  z-index: 1;
}

.category-tile strong,
.category-card p {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
}

.accent-blue {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.accent-violet {
  background: linear-gradient(135deg, #6d28d9, #2563eb);
}

.accent-orange {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.accent-red {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.accent-pink {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.accent-yellow {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.accent-cyan {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

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

.accent-indigo {
  background: linear-gradient(135deg, #4f46e5, #0f766e);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.36), transparent 30%),
    linear-gradient(135deg, #0f766e, #2563eb 55%, #1e1b4b);
}

.sub-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 18px;
  color: #dbeafe;
}

.compact-hero {
  padding: 70px 0;
}

.rank-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.36), transparent 30%),
    linear-gradient(135deg, #0f172a, #7f1d1d 55%, #0f766e);
}

.search-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.36), transparent 30%),
    linear-gradient(135deg, #0f766e, #4f46e5 55%, #111827);
}

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

.category-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 34px;
  z-index: 1;
}

.category-sample-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1;
}

.category-sample-links a {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.library-cta,
.promo-panel {
  border-radius: 34px;
  padding: 52px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: var(--shadow);
}

.library-cta h2,
.promo-panel h2 {
  margin-bottom: 14px;
}

.library-cta p,
.promo-panel p {
  max-width: 690px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 18px;
}

.promo-panel span {
  color: #ccfbf1;
  font-weight: 900;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.inline-search {
  display: flex;
  align-items: center;
  width: min(430px, 100%);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px;
  background: white;
}

.inline-search input {
  padding: 0 14px;
}

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

.rank-mini-item {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.rank-mini-item:hover {
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
  font-weight: 900;
}

.rank-mini-item img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.rank-mini-text {
  min-width: 0;
}

.rank-mini-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mini-text em {
  display: block;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 16px;
  padding: 22px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fafc;
}

.search-empty {
  display: none;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.search-empty.is-active {
  display: block;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  background: white;
  box-shadow: var(--shadow-soft);
  color: #334155;
  font-weight: 800;
}

.pagination a.is-current {
  background: var(--teal);
  color: white;
}

.detail-wrap {
  padding: 32px 0 70px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
}

.player-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

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

.player-mask-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06), rgba(2,6,23,0.72));
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 34px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 14px;
}

.detail-one-line {
  margin: 0 0 24px;
  color: #0f766e;
  font-size: 20px;
  font-weight: 800;
}

.detail-card section {
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
  margin-top: 22px;
}

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

.detail-card p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.side-card {
  padding: 18px;
  margin-bottom: 22px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  background: #0f172a;
}

.primary-button.full {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
}

.side-related {
  display: grid;
  gap: 12px;
}

.side-related .rank-mini-item {
  grid-template-columns: 34px 62px minmax(0, 1fr);
  padding: 8px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.side-related .rank-mini-item img {
  width: 62px;
  height: 42px;
}

.site-footer {
  color: white;
  background: linear-gradient(135deg, #1e293b, #0f172a 48%, #134e4a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0;
}

.footer-brand {
  color: white;
  font-size: 22px;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #5eead4;
}

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

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

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

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

  body.mobile-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

  .hero-slides {
    min-height: 690px;
  }

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

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }

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

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

  .brand-text {
    font-size: 21px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 760px;
    padding: 46px 0 120px;
  }

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

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

  .hero-actions,
  .promo-actions,
  .sub-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .stat-grid,
  .category-overview-grid,
  .rank-list,
  .footer-grid,
  .detail-aside,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .movie-card-featured {
    grid-column: span 2;
  }

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

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

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

  .section {
    padding: 52px 0;
  }

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

  .sub-hero {
    padding: 58px 0;
  }

  .library-cta,
  .promo-panel {
    padding: 32px 20px;
  }

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

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

  .movie-card-featured {
    grid-column: auto;
  }

  .rank-mini-item {
    grid-template-columns: 34px 62px minmax(0, 1fr);
  }

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