:root {
  color-scheme: light;
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #eab308;
  --dark: #111827;
  --gray: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --soft: #fff7ed;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-sm: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links,
.mobile-menu {
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.nav-links {
  display: flex;
}

.nav-links a,
.mobile-menu a {
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  height: clamp(520px, 72vw, 720px);
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(249, 115, 22, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.78));
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  padding: 48px 0 74px;
}

.hero-content {
  max-width: 900px;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.74);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

.hero-title {
  margin: 20px 0 14px;
  font-size: clamp(42px, 7.4vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 9px 30px rgba(0, 0, 0, 0.55);
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(18px, 2.25vw, 24px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.44);
}

.hero-actions,
.section-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.38);
}

.btn-light {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.94);
}

.btn-ghost {
  color: var(--orange);
  background: var(--soft);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 74px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-gray {
  background: #f3f4f6;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #1f2937;
}

.section-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

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

.movie-card,
.feature-card,
.category-card,
.rank-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.feature-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-wrap,
.feature-media,
.rank-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.poster-wrap {
  aspect-ratio: 4 / 5;
}

.feature-media {
  height: 290px;
}

.rank-media {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.feature-media img,
.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover img,
.feature-card:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.poster-gradient,
.feature-gradient,
.rank-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78));
}

.badge,
.rank-number,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 850;
}

.badge {
  top: 12px;
  right: 12px;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(10px);
}

.play-badge {
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.34);
}

.card-body,
.feature-body,
.rank-body {
  display: block;
  padding: 16px;
}

.movie-title,
.feature-title,
.rank-title {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-title {
  color: var(--white);
  font-size: 24px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.movie-meta,
.movie-genre,
.movie-desc,
.rank-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-overlay-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
}

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

.category-card {
  padding: 22px;
  min-height: 170px;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  color: var(--orange);
  background: var(--soft);
  font-weight: 900;
}

.category-name {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #1f2937;
}

.category-desc {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 68px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.20), transparent 26%),
    linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

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

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

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

.filter-status {
  min-height: 24px;
  margin: -10px 0 20px;
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: 55px 20px;
  text-align: center;
  border-radius: 24px;
  color: var(--muted);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
  display: block;
}

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

.rank-number {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.breadcrumbs {
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--orange);
  font-weight: 750;
}

.player-zone {
  padding: 34px 0;
  background: #000;
}

.player-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000;
}

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

.player-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.74));
}

.play-large {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.42);
  transform: translate(-50%, -50%);
}

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

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

.detail-card {
  padding: clamp(24px, 4vw, 36px);
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--gray);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #c2410c;
  background: var(--soft);
  font-size: 14px;
  font-weight: 750;
}

.detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 13px;
  font-size: 23px;
  font-weight: 900;
  color: #1f2937;
}

.one-line {
  margin: 0 0 14px;
  color: #ea580c;
  font-size: 18px;
  font-weight: 850;
}

.summary-text,
.review-text {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.review-text {
  padding: 18px;
  border-radius: 16px;
  background: #f9fafb;
  font-style: italic;
}

.side-card {
  padding: 20px;
}

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

.related-card {
  display: block;
}

.related-card .poster-wrap {
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}

.related-title {
  display: -webkit-box;
  margin: 8px 0 2px;
  overflow: hidden;
  color: #1f2937;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-meta {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 74px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .grid-cards,
  .rank-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .hero {
    height: 570px;
  }

  .section {
    padding: 54px 0;
  }

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

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

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

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

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

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

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 560px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .grid-featured,
  .grid-cards,
  .rank-list,
  .category-grid,
  .grid-small {
    grid-template-columns: 1fr;
  }

  .feature-media {
    height: 240px;
  }

  .page-hero {
    padding: 46px 0;
  }

  .detail-card {
    border-radius: 18px;
  }

  .play-large {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

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