:root {
  --color-bg: #fff7ed;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #fed7aa;
  --color-orange: #ea580c;
  --color-orange-dark: #c2410c;
  --color-amber: #d97706;
  --color-yellow: #f59e0b;
  --color-dark: #0f172a;
  --shadow-soft: 0 20px 50px rgba(194, 65, 12, 0.14);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 1.55rem;
  background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.category-nav-wrap {
  border-top: 1px solid rgba(254, 215, 170, 0.74);
}

.category-nav {
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: thin;
}

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

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-yellow));
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--color-orange-dark);
  background: #ffedd5;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-orange-dark), var(--color-amber), var(--color-yellow));
}

.hero-slide {
  display: none;
  min-height: 600px;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 25%),
    radial-gradient(circle at 82% 14%, rgba(251, 191, 36, 0.24), transparent 22%),
    rgba(0, 0, 0, 0.28);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  align-items: center;
  gap: 52px;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.hero-desc,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.secondary-button,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-box button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.34);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover,
.search-box button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

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

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.search-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.8fr;
  gap: 22px;
  margin-top: -46px;
}

.search-box,
.quick-stats,
.filter-panel,
.side-card,
.detail-article,
.player-shell,
.text-page {
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.search-box {
  padding: 24px;
}

.search-box label,
.filter-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-orange-dark);
  font-weight: 900;
}

.search-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-box input,
.filter-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--color-text);
  background: #fff7ed;
  outline: none;
}

.search-box input:focus,
.filter-panel input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.quick-stats a {
  display: grid;
  place-items: center;
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid #ffedd5;
}

.quick-stats a:last-child {
  border-right: 0;
}

.quick-stats strong {
  color: var(--color-orange);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.quick-stats span {
  margin-top: 6px;
  color: var(--color-muted);
  font-weight: 700;
}

.content-section {
  padding: 70px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-more,
.text-link,
.mini-link-list a,
.sitemap-block a,
.text-page a {
  color: var(--color-orange-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.82);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(234, 88, 12, 0.45);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 54px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 800;
}

.large-tags span {
  padding: 7px 12px;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  margin-top: 13px;
  font-size: 0.92rem;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.86), #ffffff),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 30%);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-card strong {
  font-size: 1.2rem;
}

.category-card small,
.category-card p {
  color: var(--color-muted);
}

.category-card p {
  margin: 0;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange-dark), var(--color-amber), var(--color-yellow));
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}

.small-hero .container {
  padding: 76px 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 237, 213, 0.18), transparent 24%),
    rgba(0, 0, 0, 0.18);
}

.filter-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  margin-bottom: 0;
}

.filter-panel span {
  color: var(--color-orange-dark);
  font-weight: 900;
}

.overview-list {
  display: grid;
  gap: 18px;
  padding: 20px 0 70px;
}

.category-overview-block {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #ffffff;
}

.category-overview-block h2 {
  margin: 0 0 8px;
}

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

.category-overview-block strong {
  color: var(--color-orange-dark);
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.mini-link-list a {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7ed;
}

.detail-hero {
  min-height: 530px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 42px;
  min-height: 530px;
  padding: 76px 0;
}

.detail-poster {
  border-radius: var(--radius-xl);
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.main-detail,
.detail-sidebar {
  min-width: 0;
}

.player-shell {
  overflow: hidden;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #020617;
  cursor: pointer;
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  cursor: pointer;
}

.player-start.is-hidden {
  display: none;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.36);
  font-size: 2rem;
}

.player-status {
  padding: 14px 18px;
  color: var(--color-muted);
  background: #ffffff;
  font-weight: 700;
}

.detail-article,
.side-card,
.text-page {
  margin-top: 22px;
  padding: 24px;
}

.detail-article h2,
.side-card h2,
.text-page h2 {
  margin: 0 0 12px;
  color: var(--color-dark);
}

.detail-article p,
.text-page p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 1.02rem;
}

.side-card {
  position: sticky;
  top: 132px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.search-summary {
  margin: 16px 0 22px;
  color: var(--color-muted);
  font-weight: 800;
}

.text-page {
  margin-top: 70px;
  margin-bottom: 70px;
}

.sitemap-list {
  display: grid;
  gap: 24px;
  padding: 60px 0 80px;
}

.sitemap-block {
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #ffffff;
}

.sitemap-block h2 {
  margin: 0 0 14px;
}

.sitemap-block ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-block li a {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff7ed;
  color: #374151;
  font-weight: 700;
}

.sitemap-block li span {
  color: var(--color-muted);
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: #ffedd5;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255, 237, 213, 0.72);
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.is-hidden-card {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

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

  .nav-link.is-active::after {
    display: none;
  }

  .hero-content,
  .search-panel,
  .detail-hero-inner,
  .detail-layout,
  .category-overview-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 26px;
    padding: 58px 0 86px;
  }

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

  .search-panel {
    margin-top: 22px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .quick-stats a {
    border-right: 0;
    border-bottom: 1px solid #ffedd5;
  }

  .quick-stats a:last-child {
    border-bottom: 0;
  }

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

  .detail-hero-inner {
    align-items: start;
    min-height: auto;
  }

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

  .side-card {
    position: static;
  }
}

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

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .movie-grid,
  .movie-grid-featured,
  .category-grid,
  .sitemap-block ul {
    grid-template-columns: 1fr;
  }

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

  .search-box div {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    padding: 44px 0;
  }
}
