:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #fff8ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --radius: 22px;
}

* {
  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;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.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.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(320px, 34vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-search-row button,
.primary-button,
.secondary-button {
  color: #ffffff;
  white-space: nowrap;
  font-weight: 800;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-search-row button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 16px;
}

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

.mobile-menu nav {
  display: grid;
  gap: 8px;
  width: min(640px, 100%);
  margin: 12px auto 0;
}

.mobile-search {
  display: flex;
  width: min(640px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.main-section,
.page-hero,
.detail-layout,
.index-section,
.category-section,
.sitemap-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle at top left, #fff7ed, #f3f4f6 38%, #111827 120%);
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.90) 44%, rgba(17, 24, 39, 0.30));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-eyebrow,
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-weight: 900;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffedd5;
}

.hero h1 {
  margin: 20px 0 16px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--orange);
}

.hero-title {
  display: block;
  margin-top: 10px;
  color: #111827;
}

.hero p {
  max-width: 700px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
}

.secondary-button {
  color: #92400e;
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

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

.hero-meta span,
.detail-meta span,
.tag-row span,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.hero-poster-card {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.hero-poster-wrap {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.28);
  transform: rotate(2deg);
}

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

.hero-score {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
  font-size: 24px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  right: clamp(28px, 5vw, 64px);
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-arrow-group {
  display: inline-flex;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #92400e;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #fed7aa;
  box-shadow: none;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.index-section,
.category-section,
.sitemap-section {
  padding: 64px 0 0;
}

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

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

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

.section-link {
  color: #ea580c;
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.movie-card[hidden] {
  display: none;
}

.poster-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #ffedd5, #fb923c 42%, #111827 110%);
}

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

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

.rating-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.3);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(17, 24, 39, 0.82);
}

.movie-card-body {
  padding: 14px 14px 16px;
}

.card-meta {
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
}

.stat-card,
.category-card,
.info-card,
.player-card,
.detail-text-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #ea580c;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.13);
}

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

.category-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

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

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

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

.page-headline {
  align-items: center;
}

.filter-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 26px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.filter-search-row {
  display: flex;
  gap: 12px;
}

.filter-search-row input {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
}

.filter-search-row button {
  border-radius: 16px;
}

.filter-select-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.filter-select-row label {
  display: grid;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.filter-select-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #f9fafb;
  color: #111827;
  outline: 0;
}

.empty-state {
  margin-top: 16px;
  padding: 18px;
  color: #92400e;
  border-radius: 18px;
  background: #fff7ed;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  padding: 42px 0 0;
}

.detail-title {
  grid-column: 1 / -1;
}

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

.player-card {
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  filter: blur(1px) saturate(0.9);
}

.player-cover-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
}

.play-orb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
  font-size: 30px;
}

.player-card.is-playing .player-cover {
  display: none;
}

.player-message {
  min-height: 24px;
  padding: 13px 18px;
  color: #6b7280;
  font-weight: 700;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

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

.info-card,
.detail-text-card {
  padding: 22px;
}

.info-card h2,
.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.info-list {
  display: grid;
  gap: 10px;
  color: #4b5563;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e5e7eb;
}

.info-list strong {
  color: #111827;
}

.detail-text-card {
  margin-top: 22px;
}

.detail-text-card p {
  color: #374151;
  margin: 0;
}

.detail-text-card p + p {
  margin-top: 16px;
}

.related-section {
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto 0;
}

.sitemap-list {
  column-count: 4;
  column-gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.sitemap-list a:hover {
  color: #ea580c;
}

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

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-inner p {
  max-width: 720px;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}

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

.copyright {
  color: #9ca3af;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.30);
}

.back-top.is-visible {
  display: block;
}

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

  .category-grid,
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding-bottom: 92px;
  }

  .hero-poster-card {
    min-height: 300px;
  }

  .hero-poster-wrap {
    width: min(260px, 80%);
  }

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

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

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

  .sitemap-list {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .main-section,
  .page-hero,
  .detail-layout,
  .index-section,
  .category-section,
  .sitemap-section,
  .stats-band,
  .filter-panel,
  .related-section,
  .footer-inner,
  .hero {
    width: min(100% - 20px, 1200px);
  }

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

  .hero {
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-search,
  .filter-search-row {
    flex-direction: column;
    border-radius: 20px;
  }

  .hero-search button,
  .filter-search-row button {
    border-radius: 0;
  }

  .hero-actions,
  .section-head,
  .page-headline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .category-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .sitemap-list {
    column-count: 1;
  }
}
