:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --gold: #fbbf24;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --soft: #fff7ed;
  --paper: rgba(255, 255, 255, 0.94);
  --shadow: 0 22px 60px rgba(194, 65, 12, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  min-height: 100vh;
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-dark), #92400e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(254, 215, 170, 0.56);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
  border-radius: 34px;
  min-height: 580px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #7c2d12;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 74px clamp(24px, 6vw, 72px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(124, 45, 18, 0.96), rgba(146, 64, 14, 0.6) 55%, rgba(120, 53, 15, 0.26));
}

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

.hero-copy,
.hero-cover {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.86);
  border-color: rgba(251, 146, 60, 0.2);
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-list span,
.movie-meta span {
  color: var(--orange-dark);
  background: #ffedd5;
  border-color: rgba(251, 146, 60, 0.12);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-btn {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff7ed;
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-cover {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.hero-controls button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-controls button.is-active {
  width: 38px;
  background: #fff;
}

.section-block,
.home-search-wrap,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-wrap,
.section-block {
  padding: 72px 0 0;
}

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.player-section h2,
.story-card h2 {
  margin: 10px 0 8px;
  color: #7c2d12;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.category-card p,
.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
  border-bottom: 2px solid rgba(249, 115, 22, 0.28);
}

.filter-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.1);
  margin-bottom: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px 150px;
  gap: 12px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 16px;
  padding: 0 16px;
  color: #7c2d12;
  background: #fffaf0;
  outline: 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.09);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(146, 64, 14, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.4s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.82);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 12px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 50px;
  overflow: hidden;
  color: #7c2d12;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.movie-meta {
  margin-bottom: 10px;
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.1);
  transition: 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.18);
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-posters img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-card strong {
  display: block;
  color: #7c2d12;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
}

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

.category-card-head {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.category-card-head h2 {
  margin: 10px 0 8px;
  color: #7c2d12;
  font-size: 28px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sample-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 68px 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.rank-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info a {
  color: #7c2d12;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 6px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.page-main {
  padding-bottom: 76px;
}

.page-hero {
  margin-top: 26px;
  padding: 58px;
  border-radius: 34px;
  color: #7c2d12;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 213, 0.86));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(38px, 5vw, 64px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 22px 0;
  color: #9a3412;
  font-weight: 700;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 540px;
  padding: 54px;
  border-radius: 34px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.96), rgba(124, 45, 18, 0.52));
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 2;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy {
  color: #fff;
  max-width: 820px;
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 18px 0 14px;
}

.large-tags {
  margin-bottom: 28px;
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.3), rgba(17, 24, 39, 0.42)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.22));
  cursor: pointer;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.42);
  font-size: 32px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.05em;
}

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

.story-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.1);
}

.story-card h2 {
  font-size: 28px;
}

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

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

.compact-card .movie-card-body p {
  -webkit-line-clamp: 4;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: #9ca3af;
}

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

.footer-links a {
  color: #d1d5db;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

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

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 247, 237, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 42px 24px 76px;
  }

  .hero-cover {
    max-width: 240px;
    transform: rotate(0deg);
  }

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

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

  .category-card-head,
  .detail-hero,
  .compact-card {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 30px;
  }

  .detail-poster {
    max-width: 260px;
  }
}

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

  .brand-text small {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .category-page-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 52px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .rank-info p {
    display: none;
  }

  .page-hero {
    padding: 34px 24px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }
}
