:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #0ea5e9;
  --green: #10b981;
  --gold: #eab308;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  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;
}

.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.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark,
.footer-brand span,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 18px;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 32vw);
}

.site-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.site-search button,
.btn.primary {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.25);
  white-space: nowrap;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, 88vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff7ed;
}

.search-result img {
  width: 68px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.search-result strong,
.compact-card strong {
  display: block;
  color: #111827;
}

.search-result em,
.compact-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
}

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

.mobile-nav.is-open {
  display: grid;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: #111827;
}

.hero-viewport {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  opacity: 0;
  pointer-events: none;
  padding: 80px max(32px, calc((100vw - 1180px) / 2)) 92px;
  isolation: isolate;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.12);
  opacity: 0.45;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.66) 48%, rgba(17, 24, 39, 0.92));
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.28);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 800px;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 780px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: white;
  padding: 10px 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1f2937;
}

.hero-poster span,
.play-dot,
.player-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.36);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.hero-controls button {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  min-width: 36px;
  min-height: 36px;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  min-width: 10px;
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--orange);
}

.category-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -42px;
}

.category-chip {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid rgba(255, 237, 213, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-chip strong {
  color: #c2410c;
  font-size: 18px;
}

.category-chip span {
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  margin-top: 72px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 16px;
}

.section-icon.red {
  background: linear-gradient(135deg, var(--red), #ec4899);
}

.section-icon.blue {
  background: linear-gradient(135deg, var(--blue), #06b6d4);
}

.section-icon.green {
  background: linear-gradient(135deg, var(--green), #059669);
}

.section-icon.gold {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-more,
.text-link {
  color: #ea580c;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card.large .poster-link {
  aspect-ratio: 21 / 9;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.66));
  opacity: 0.85;
}

.duration,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

.showcase-stack {
  display: grid;
  gap: 36px;
}

.category-showcase h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.ranking-list,
.side-list {
  display: grid;
  gap: 10px;
  border-radius: 24px;
  padding: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.compact-card {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #fff7ed;
}

.compact-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: #e5e7eb;
}

.compact-card b {
  color: var(--muted);
  font-size: 13px;
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.page-hero {
  padding: 72px 0;
  color: white;
  background:
    radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(135deg, #111827, #1f2937 52%, #431407);
}

.page-hero.slim {
  padding: 58px 0;
}

.page-hero .eyebrow {
  color: #fed7aa;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-cover-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #e5e7eb;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 220px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.detail-hero {
  padding: 32px 0 0;
}

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

.player-section {
  margin-bottom: 24px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background:
    linear-gradient(rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.78)),
    var(--poster) center / cover;
  text-align: center;
}

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

.player-play {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 54px rgba(249, 115, 22, 0.38);
  font-size: 28px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
  color: #fed7aa;
  font-style: normal;
  font-weight: 800;
}

.detail-card,
.side-card {
  padding: 24px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

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

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

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.detail-meta {
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-tags {
  margin-bottom: 20px;
}

.lead-text {
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

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

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 16px;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prev-next a {
  color: #ea580c;
  font-weight: 800;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  background: #e5e7eb;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.side-card .compact-card {
  grid-template-columns: auto 64px minmax(0, 1fr);
  padding: 8px;
}

.side-card .compact-card img {
  width: 64px;
  height: 44px;
}

.side-card .compact-card b {
  display: none;
}

.site-footer {
  margin-top: 86px;
  color: white;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 20px;
}

.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fdba74;
}

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

.footer-tags {
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

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

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

  .site-search {
    width: min(420px, 44vw);
    margin-left: auto;
  }

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

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

  .large-feature-grid,
  .detail-layout,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .site-search {
    order: 3;
    width: 100%;
  }

  .hero-carousel,
  .hero-viewport {
    min-height: 720px;
  }

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

  .hero-poster {
    width: min(260px, 72vw);
    justify-self: center;
  }

  .category-strip,
  .movie-grid.four,
  .footer-grid,
  .filter-bar,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .compact-card b {
    display: none;
  }

  .prev-next {
    flex-direction: column;
  }
}
