:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #fed7aa;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

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

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

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

.brand-text {
  font-size: 1.28rem;
}

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

.nav-link {
  padding: 9px 14px;
  color: #374151;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.header-search input,
.mobile-search input,
.large-search input {
  width: 220px;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button,
.mobile-search button,
.large-search button {
  height: 100%;
  padding: 10px 16px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 237, 213, 0.8);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 72px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(4px) saturate(1.18);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(251, 146, 60, 0.35), transparent 28rem),
    linear-gradient(120deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.8) 48%, rgba(245, 158, 11, 0.56));
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #fed7aa;
}

.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.3);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: #ffedd5;
}

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

.hero-poster {
  justify-self: center;
  width: min(360px, 100%);
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

.hero-dot.active {
  width: 28px !important;
  background: #ffffff !important;
}

.search-band,
.section-wrap,
.archive-wrap,
.filter-panel,
.breadcrumb,
.detail-layout,
.category-overview-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-text h2,
.search-result-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.large-search input {
  width: 100%;
  min-height: 56px;
  padding-left: 20px;
}

.large-search button {
  min-height: 56px;
  padding-inline: 24px;
  white-space: nowrap;
}

.section-wrap {
  margin-top: 54px;
}

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

.section-heading a,
.text-button {
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.movie-card,
.detail-info-card,
.detail-text article,
.filter-panel,
.archive-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.08);
}

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
}

.category-card img {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 110px;
  height: 160px;
  object-fit: cover;
  opacity: 0.28;
  border-radius: 18px;
  transform: rotate(8deg);
}

.category-card strong,
.category-card em,
.category-card p,
.category-icon {
  position: relative;
  z-index: 2;
}

.category-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.24rem;
}

.category-card em {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 18px;
  background: #ffedd5;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.52);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

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

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.26s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h2 {
  margin: 8px 0 6px;
  font-size: 1.06rem;
  line-height: 1.38;
}

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

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

.movie-card-compact h2 {
  font-size: 0.98rem;
}

.movie-card-compact p {
  display: none;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(30px, 6vw, 70px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(249, 115, 22, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.84));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.8;
}

.channel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.channel-stats span {
  padding: 10px 14px;
  color: var(--brand-dark);
  font-weight: 900;
  border-radius: 999px;
  background: #ffedd5;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 230px;
  background: #fed7aa;
}

.category-cover-strip img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.category-overview-body {
  padding: 24px;
}

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

.category-overview-body p {
  color: var(--muted);
  line-height: 1.75;
}

.category-overview-body strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
}

.filter-search-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.filter-search-row label {
  color: var(--brand-dark);
  font-weight: 900;
}

.filter-search-row input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 13px;
  color: #7c2d12;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7ed;
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.filter-count {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.62fr);
  gap: 24px;
  margin-top: 24px;
}

.video-player-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.movie-video,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.player-poster {
  z-index: 2;
  opacity: 0.78;
  filter: saturate(1.08);
}

.video-player-card.is-playing .player-poster,
.video-player-card.is-playing .play-overlay,
.video-player-card.is-playing .player-status {
  display: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding-left: 6px;
  font-size: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 1.15rem;
}

.player-status {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.46);
  backdrop-filter: blur(10px);
}

.detail-info-card {
  overflow: hidden;
}

.detail-cover {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

.detail-info-body {
  padding: 22px;
}

.detail-info-body h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

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

.detail-text article {
  padding: 26px;
}

.detail-text p:last-child {
  color: #374151;
  line-height: 1.9;
}

.archive-wrap {
  margin-top: 24px;
  padding: 12px;
}

.archive-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px 140px 120px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
}

.archive-item a {
  color: #111827;
  font-weight: 900;
}

.archive-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result-head {
  margin-bottom: 20px;
}

.search-result-head p {
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  color: #7c2d12;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid p {
  max-width: 620px;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #9a3412;
  font-weight: 800;
}

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-layout,
  .search-band {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-poster {
    width: min(300px, 78vw);
  }

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

  .category-overview-grid,
  .detail-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    width: min(100% - 24px, 1240px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-carousel,
  .search-band,
  .section-wrap,
  .archive-wrap,
  .filter-panel,
  .breadcrumb,
  .detail-layout,
  .category-overview-grid,
  .page-hero {
    width: min(100% - 24px, 1240px);
  }

  .hero-carousel {
    min-height: 720px;
    margin-top: 20px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-controls {
    right: 16px;
    bottom: 16px;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .video-player-card {
    min-height: 420px;
  }

  .filter-search-row,
  .archive-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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