:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --green: #10b981;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef6f8 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 26px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 280px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.top-search input,
.mobile-search input,
.local-tools input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.top-search input,
.mobile-search input {
  padding: 10px 14px 10px 18px;
}

.top-search button,
.mobile-search button {
  border: 0;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  background: #f3f4f6;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

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

.mobile-nav nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-left: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
  padding: 96px 0;
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 7px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-actions,
.quick-links,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.quick-links a,
.category-card span,
.category-overview-main span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-links a:first-child,
.category-card span,
.category-overview-main span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.26);
}

.ghost-button,
.quick-links a {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.quick-links a:hover,
.category-card:hover span,
.category-overview-main:hover span {
  transform: translateY(-2px) scale(1.02);
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.intro-panel {
  padding-top: 58px;
  padding-bottom: 40px;
}

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

.section-heading.centered {
  display: block;
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.story-block h2,
.side-card h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.side-note p,
.footer-inner p {
  color: var(--muted);
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

.section-heading.dark h2,
.section-heading.dark a {
  color: #ffffff;
}

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

.compact-grid,
.library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f3f4f6, #e0f2fe);
}

.movie-card-small .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  font-size: 13px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

.tag-row span {
  padding: 4px 9px;
  color: #374151;
  background: linear-gradient(135deg, #ffedd5, #cffafe);
  font-size: 12px;
}

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

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

.category-card,
.category-overview-card,
.side-note,
.side-card,
.detail-info-card,
.player-card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.category-card,
.category-overview-main {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.category-card h3,
.category-overview-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-overview-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-covers.wide {
  grid-template-columns: repeat(4, 1fr);
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  background: #e5e7eb;
}

.category-overview-card {
  overflow: hidden;
}

.category-hot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 0 18px 18px;
}

.category-hot-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.ranking-section {
  background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.28), transparent 35%), linear-gradient(135deg, #111827, #0f172a);
}

.ranking-inner {
  color: #ffffff;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 86px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.rank-number {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.rank-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-body strong,
.rank-body em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-body strong {
  color: inherit;
  font-weight: 900;
}

.rank-body em {
  color: rgba(229, 231, 235, 0.82);
  font-size: 13px;
  font-style: normal;
}

.rank-heat {
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-size: 13px;
  font-weight: 900;
}

.local-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.local-tools input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #f9fafb;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 17px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  transform: translateY(-1px);
}

.empty-state {
  border-radius: 18px;
  padding: 28px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 15%, rgba(249, 115, 22, 0.32), transparent 30%), linear-gradient(135deg, #111827, #0f172a 62%, #164e63);
}

.page-hero > div {
  max-width: 980px;
  margin: 0 auto;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
}

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

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

.side-note,
.side-card {
  padding: 24px;
}

.side-note h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-wrap {
  padding-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.video-frame video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), rgba(0, 0, 0, 0.76));
}

.player-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.34);
  font-size: 28px;
}

.player-cover strong {
  position: relative;
  z-index: 2;
  font-size: 20px;
}

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

.player-cover.is-loading .player-icon {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.detail-info-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-info-card h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta-list span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
}

.detail-tags a {
  padding: 8px 13px;
  color: #374151;
  background: linear-gradient(135deg, #ffedd5, #cffafe);
  font-size: 14px;
}

.story-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.story-block h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.story-block p {
  color: #374151;
  text-align: justify;
}

.review-block {
  border-radius: 18px;
  border-top: 0;
  padding: 22px;
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
}

.section-inline {
  border-radius: var(--radius);
}

.detail-side .rank-item {
  grid-template-columns: 34px 76px 1fr;
  color: var(--ink);
  border-color: var(--line);
  background: #f9fafb;
}

.detail-side .rank-body em {
  color: var(--muted);
}

.detail-side .rank-heat {
  display: none;
}

.sticky-side {
  position: sticky;
  top: 96px;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
}

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

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

  .nav-inner {
    gap: 14px;
  }

  .top-search {
    margin-left: auto;
  }

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

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

@media (max-width: 860px) {
  .hero {
    min-height: 590px;
  }

  .hero-content {
    margin-left: 0;
    padding: 86px 24px 110px;
  }

  .top-search {
    display: none;
  }

  .section-heading,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .two-column-feature,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .nav-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .section-wrap,
  .detail-wrap {
    padding: 48px 16px;
  }

  .page-hero {
    padding: 72px 16px;
  }

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

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

  .movie-card-body h3 {
    min-height: auto;
    font-size: 16px;
  }

  .movie-card-body p,
  .tag-row {
    display: none;
  }

  .rank-item,
  .detail-side .rank-item {
    grid-template-columns: 34px 66px 1fr;
  }

  .rank-heat {
    display: none;
  }
}
