:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.5);
  --border: rgba(51, 65, 85, 0.8);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --teal: #14b8a6;
  --cyan: #0891b2;
  --orange: #f97316;
  --red: #dc2626;
  --purple: #a855f7;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(51, 65, 85, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.24);
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.logo-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  padding: 14px 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #cbd5e1;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 2%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.45) 48%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 600px;
  align-content: center;
  max-width: 760px;
  padding: 76px 0 96px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.pill-teal {
  background: rgba(20, 184, 166, 0.92);
  color: #ffffff;
}

.pill-yellow {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(51, 65, 85, 0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d9488, #0284c7);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2));
  bottom: 44px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 30px;
  background: #5eead4;
}

.search-panel {
  position: relative;
  z-index: 4;
  margin-top: -48px;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
  color: #ffffff;
  padding: 0 16px;
  outline: none;
}

.search-input:focus {
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.section {
  padding: 72px 0 0;
}

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

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

.section-kicker {
  margin: 0 0 8px;
  color: #5eead4;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  color: #ffffff;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(45, 212, 191, 0.38);
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(168, 85, 247, 0.16)),
    #0f172a;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease;
}

.card:hover .card-cover::after {
  background: rgba(0, 0, 0, 0.52);
}

.play-icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.play-icon span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.9);
  color: #ffffff;
  font-weight: 900;
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.card:hover .play-icon {
  opacity: 1;
}

.card:hover .play-icon span {
  transform: scale(1.06);
}

.corner-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.card:hover .card-title {
  color: #5eead4;
}

.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.score {
  color: #facc15;
  font-weight: 850;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  background: rgba(30, 41, 59, 0.82);
  transform: translateX(4px);
}

.horizontal-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

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

.horizontal-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.horizontal-desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(168, 85, 247, 0.1)),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.4);
}

.category-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: #5eead4;
  font-weight: 850;
}

.page-hero {
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(168, 85, 247, 0.12)),
    rgba(15, 23, 42, 0.58);
  padding: 72px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

.movie-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 40px;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.video-shell video,
.video-shell .poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .video-overlay {
  visibility: hidden;
  opacity: 0;
}

.big-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.94);
  color: #ffffff;
  font-size: 32px;
  box-shadow: 0 16px 42px rgba(20, 184, 166, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.big-play:hover {
  transform: scale(1.08);
  background: #0d9488;
}

.source-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.88);
}

.source-btn {
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  padding: 8px 12px;
  cursor: pointer;
}

.source-btn.active,
.source-btn:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.detail-panel,
.sidebar-panel {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px;
}

.detail-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.detail-panel h2,
.sidebar-panel h2,
.sidebar-panel h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.detail-text {
  color: #cbd5e1;
  line-height: 1.9;
}

.review-box {
  margin-top: 22px;
  padding: 20px;
  border-left: 4px solid var(--teal);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.08);
}

.sidebar {
  display: grid;
  gap: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.related-item h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item:hover h4 {
  color: #5eead4;
}

.related-item p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 140px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.48);
}

.rank-no {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  font-weight: 900;
}

.rank-item:nth-child(-n + 3) .rank-no {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
}

.rank-desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #94a3b8;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.7);
  color: #ffffff;
  padding: 0 12px;
  outline: none;
}

.result-status {
  margin: 0 0 18px;
  color: #94a3b8;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.copyright {
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding: 18px 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.empty-state {
  padding: 64px 20px;
  border: 1px dashed rgba(51, 65, 85, 0.9);
  border-radius: 22px;
  color: #94a3b8;
  text-align: center;
}

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

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .horizontal-card,
  .rank-item {
    grid-template-columns: 120px 1fr;
  }

  .rank-no,
  .rank-score,
  .horizontal-card .btn {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 52px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-controls {
    right: 12px;
    bottom: 18px;
  }

  .hero-dots {
    left: 12px;
    bottom: 30px;
  }

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

  .section-header {
    display: block;
  }

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .horizontal-card,
  .related-item {
    grid-template-columns: 112px 1fr;
  }

  .movie-meta {
    gap: 8px;
  }

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