:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 22px 50px rgba(17, 24, 39, 0.16);
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--primary-50), #fdf8f6 38%, #ffffff 72%);
  line-height: 1.65;
}

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

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

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.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 12px;
  color: var(--ink-600);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-muted {
  font-weight: 500;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-800);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-600);
  background: var(--soft);
  font-size: 14px;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--primary-700);
  background: var(--primary-100);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #0b0f19;
}

.hero-slide {
  min-height: 560px;
  display: none;
  align-items: center;
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, #0b0f19, rgba(11, 15, 25, 0));
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 16% 30%, rgba(249, 115, 22, 0.24), transparent 34%);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 92px;
  max-width: 780px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.dark-section .eyebrow,
.inverted .eyebrow {
  color: #fdba74;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--primary-700);
  border-radius: 999px;
  background: var(--primary-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-content .tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #fff;
  background: var(--primary-500);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--primary-500);
}

.section-pad {
  padding: 72px 0;
}

.soft-bg {
  background: rgba(255, 255, 255, 0.66);
}

.dark-section {
  color: #fff;
  background: #111827;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head a,
.text-link {
  color: var(--primary-600);
  font-weight: 800;
}

.inverted a {
  color: #fdba74;
}

.quick-entry {
  padding: 28px 0;
  background: #0b0f19;
}

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

.quick-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(255, 255, 255, 0.12));
}

.quick-card strong {
  font-size: 22px;
}

.quick-card span {
  color: rgba(255, 255, 255, 0.72);
}

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

.category-tile {
  min-height: 170px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  border-radius: 20px;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: var(--ink-800);
}

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  border-radius: 999px;
  background: var(--primary-500);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

.movie-card-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.3;
}

.movie-card-title a:hover {
  color: var(--primary-600);
}

.movie-card-desc {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
}

.page-hero {
  padding: 86px 0 72px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.34), transparent 28%), linear-gradient(135deg, #111827, #1f2937 58%, #0b0f19);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.category-overview-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.category-overview-card p {
  margin: 0;
  color: var(--ink-600);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-700);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.dark-section .rank-item {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.rank-no {
  display: inline-flex;
  justify-content: center;
  color: var(--primary-600);
  font-size: 24px;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.rank-body h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.rank-body h2 a:hover {
  color: var(--primary-600);
}

.rank-body p {
  margin: 0;
  color: var(--ink-600);
}

.dark-section .rank-body p {
  color: rgba(255, 255, 255, 0.72);
}

.rank-meta {
  margin-bottom: 6px !important;
  color: var(--ink-500) !important;
  font-size: 13px;
}

.dark-section .rank-meta {
  color: rgba(255, 255, 255, 0.5) !important;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.48)), var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: end;
}

.detail-cover {
  width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

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

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

.watch-panel,
.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.watch-panel {
  overflow: hidden;
  padding: 12px;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.34);
  font-size: 30px;
  text-indent: 4px;
}

.content-card,
.side-card {
  padding: 26px;
}

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

.content-card p {
  margin: 0;
  color: var(--ink-700);
  white-space: pre-line;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
}

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

.info-list dd {
  margin: 0;
  color: var(--ink-800);
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink-700);
  font-weight: 700;
}

.side-links a:hover {
  color: var(--primary-700);
  background: var(--primary-100);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #0b0f19;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a:hover {
  color: #fff;
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

@media (max-width: 720px) {
  .container,
  .header-inner,
  .footer-inner,
  .hero-content,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-slider,
  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

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

  .section-pad {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-flex;
    margin-top: 12px;
  }

  .quick-grid,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 78px 1fr;
    gap: 12px;
  }

  .rank-body h2 {
    font-size: 17px;
  }

  .rank-body p:not(.rank-meta) {
    display: none;
  }

  .detail-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-cover {
    width: 180px;
  }

  .detail-hero-inner {
    padding: 42px 0 52px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-inner {
    display: grid;
  }
}
