:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--amber-50);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #d97706 100%);
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.32);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-icon {
  font-size: 30px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  margin: 6px 0;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 28%), linear-gradient(135deg, #f59e0b 0%, #f97316 45%, #f43f5e 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(255, 247, 237, 0.1) 62%, var(--amber-50) 100%);
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: #fff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.24);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 740px;
  margin: 0 0 30px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.page-actions,
.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.page-actions a,
.simple-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.simple-actions a:first-child {
  color: var(--orange-600);
  background: #fff;
}

.ghost-btn,
.page-actions a,
.simple-actions a:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.page-actions a:hover,
.simple-actions a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.hero-tags,
.detail-tags,
.movie-tags,
.tag-row,
.tag-cloud,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span,
.tag-row span,
.tag-cloud span,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: #ffedd5;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  transform: rotate(1.5deg);
  transition: transform 0.25s ease;
  background: linear-gradient(135deg, #92400e, #f97316);
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.45));
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

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

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.category-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.ribbon-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ribbon-scroll a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ribbon-scroll a:hover {
  transform: translateY(-2px);
  background: #ffedd5;
}

.search-panel {
  padding: 58px 0 12px;
}

.search-box-large {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(110deg, #9a3412, #ea580c 55%, #f59e0b);
  box-shadow: var(--shadow);
}

.search-box-large h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.search-box-large p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.home-search,
.filter-shell {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-shell input,
.filter-shell select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.26);
}

.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  background: var(--slate-900);
  font-weight: 800;
  cursor: pointer;
}

.section-wrap {
  padding: 74px 0;
}

.white-section {
  background: #fff;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

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

.movie-card.compact .movie-poster {
  min-height: 198px;
}

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

.movie-card.compact .movie-poster img {
  height: 210px;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.62));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.32);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 10px 0 8px;
  min-height: 54px;
  font-size: 18px;
  line-height: 1.5;
}

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

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

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.category-preview {
  padding-bottom: 76px;
}

.home-category-block {
  padding: 34px;
  margin-bottom: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.small-heading {
  margin-bottom: 22px;
}

.page-hero {
  color: #fff;
  padding: 92px 0;
  background: linear-gradient(135deg, #f59e0b, #f97316 55%, #f43f5e);
}

.warm-hero {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #d97706 100%);
}

.dark-hero {
  background: linear-gradient(135deg, #334155, #111827 70%, #0f172a);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.page-actions {
  margin-top: 28px;
}

.filter-bar {
  padding: 22px 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 68px;
  z-index: 35;
}

.filter-shell select {
  max-width: 190px;
}

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

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

.category-card {
  min-height: 300px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ffedd5;
  font-size: 28px;
}

.category-card h2 {
  margin: 18px 0 10px;
}

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

.category-samples {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  color: #9a3412;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.28;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88));
}

.detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 78px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #92400e, #f97316);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 26px;
  color: #fed7aa;
  font-weight: 800;
}

.player-section {
  padding: 58px 0;
  background: #0f172a;
  color: #fff;
}

.player-section h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 40px);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

.play-layer strong {
  display: block;
  font-size: 22px;
}

.play-round {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.play-layer:hover .play-round {
  transform: scale(1.08);
}

.video-shell.is-playing .play-layer {
  display: none;
}

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

.movie-article,
.side-panel,
.simple-page,
.support-grid article {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.movie-article h2,
.side-panel h2,
.simple-page h2,
.support-grid h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.movie-article p,
.simple-page p,
.support-grid p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

.side-panel {
  position: sticky;
  top: 104px;
}

.side-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.side-panel span {
  font-weight: 800;
}

.side-panel em {
  color: var(--orange-600);
  font-style: normal;
}

.site-footer {
  color: #fed7aa;
  background: linear-gradient(180deg, #78350f, #431407);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-grid p {
  color: #fed7aa;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #fed7aa;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  text-align: center;
  color: #fdba74;
}

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

.hidden-by-filter {
  display: none !important;
}

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

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

  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-inner {
    min-height: 760px;
    align-items: flex-start;
    padding-top: 56px;
  }

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

  .hero-poster {
    min-height: 270px;
  }

  .hero-poster img {
    height: 300px;
  }

  .hero-dots {
    bottom: 28px;
  }

  .search-box-large,
  .detail-shell,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    height: 390px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

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

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

  .home-search,
  .filter-shell,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search button {
    min-height: 48px;
  }

  .filter-shell select {
    max-width: none;
  }

  .grid-3,
  .grid-4,
  .category-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding: 50px 0;
  }

  .home-category-block,
  .movie-article,
  .side-panel,
  .simple-page,
  .support-grid article,
  .category-card {
    padding: 22px;
  }

  .detail-shell {
    padding: 54px 0;
  }

  .detail-poster img {
    height: 360px;
  }

  .play-round {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
