:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.6;
}

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 rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.main-nav > a,
.nav-dropdown > button {
  position: relative;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.main-nav a:hover,
.nav-dropdown button:hover,
.main-nav .active {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 64px;
  width: 220px;
  padding: 12px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

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

.nav-dropdown:hover .dropdown-panel {
  display: grid;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.26), transparent 34%),
    linear-gradient(135deg, #111827 0%, #1f2937 48%, #7c2d12 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.82)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  opacity: 0.72;
  transition: background-image 0.45s ease;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 20px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 48px;
  align-items: center;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fdba74;
}

.hero-copy {
  max-width: 710px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.pill,
.card-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--orange-dark);
  background: #fff;
  border-color: #fed7aa;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.search-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  background: var(--orange);
  cursor: pointer;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}

.search-results a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.side-feature {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
}

.side-feature img {
  width: 126px;
  height: 168px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.side-feature h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.side-feature p {
  margin: 0 0 14px;
  color: #e5e7eb;
  font-size: 14px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.slider-dots button {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.slider-dots button.active {
  width: 58px;
  background: #fdba74;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-tight {
  padding-top: 30px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.86);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

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

.movie-card:hover .poster {
  transform: scale(1.06);
}

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 13px;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  min-height: 44px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-box {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #991b1b);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.18);
}

.category-box:nth-child(2n) {
  background: linear-gradient(135deg, #111827, #ea580c);
}

.category-box:nth-child(3n) {
  background: linear-gradient(135deg, #7c2d12, #fb923c);
}

.category-box h2,
.category-box h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-box p {
  margin: 0;
  color: #ffedd5;
  font-size: 14px;
}

.page-hero {
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 34%),
    linear-gradient(135deg, #111827, #7c2d12);
  color: #fff;
}

.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 20px;
}

.page-title p {
  color: #ffedd5;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.filter-bar input {
  flex: 1 1 260px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 94px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.rank-item img {
  width: 94px;
  height: 126px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.rank-item p {
  margin: 0 0 12px;
  color: #4b5563;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

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

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

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

.player-card,
.detail-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(17, 24, 39, 0.34);
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.96);
  box-shadow: 0 16px 42px rgba(234, 88, 12, 0.45);
  font-size: 28px;
}

.player-caption {
  padding: 20px 22px 24px;
}

.player-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.player-caption p {
  margin: 0;
  color: #4b5563;
}

.detail-card {
  padding: 22px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.content-block {
  margin-top: 30px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-block p {
  margin: 0 0 16px;
  color: #374151;
}

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

.compact-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.compact-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.compact-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.compact-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

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

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

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > button {
    padding: 12px;
  }

  .nav-dropdown:hover .dropdown-panel,
  .dropdown-panel {
    position: static;
    width: 100%;
    display: grid;
    margin-top: 6px;
    box-shadow: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-slider {
    min-height: 480px;
  }

  .hero-panel {
    margin-top: 26px;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 84px;
  }

  .hero-slider {
    min-height: 520px;
  }

  .side-feature {
    grid-template-columns: 90px 1fr;
  }

  .side-feature img {
    width: 90px;
    height: 120px;
  }

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

  .section {
    padding: 38px 14px;
  }

  .page-title {
    padding: 46px 14px;
  }

  .detail-wrap {
    padding: 24px 14px 48px;
  }

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .rank-item img {
    width: 76px;
    height: 102px;
  }

  .rank-item p {
    display: none;
  }

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