:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --text: #191311;
  --muted: #6f625c;
  --line: #f2d7c7;
  --red: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 18px 55px rgba(154, 52, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf5 0%, #fff7ed 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(248, 187, 151, 0.45);
  box-shadow: 0 8px 30px rgba(127, 29, 29, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong,
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: #51413a;
  font-weight: 700;
  border-radius: 14px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  background: #fff6ef;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 5px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  padding: 8px 15px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1e7;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #7c2d12;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav,
.mobile-categories {
  display: grid;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.mobile-link,
.quick-category {
  padding: 11px 13px;
}

.mobile-categories,
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-category {
  color: #7c2d12;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #1c0f0b;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(249, 115, 22, 0.28), transparent 24rem),
    linear-gradient(90deg, rgba(24, 9, 5, 0.95) 0%, rgba(65, 20, 12, 0.84) 42%, rgba(24, 9, 5, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 44px;
  min-height: 560px;
  padding: 56px 0 94px;
}

.hero-text {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #fff7ed;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 237, 213, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  padding: 7px 12px;
}

.section-kicker {
  color: var(--red);
  background: #fff1e7;
  border-color: #fed7aa;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero p,
.page-hero p,
.detail-line {
  margin: 0;
  color: rgba(255, 247, 237, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: #ffedd5;
  padding: 6px 10px;
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 237, 213, 0.28);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.3);
  padding: 0 22px;
}

.ghost-button,
.section-link {
  color: #7c2d12;
  border: 1px solid rgba(254, 215, 170, 0.9);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 18px;
}

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

.hero-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 237, 213, 0.32);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  padding: 16px;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.hero-card strong {
  font-size: 20px;
}

.hero-card span {
  color: #fed7aa;
  font-size: 14px;
}

.hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 462px;
  padding-bottom: 28px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  font-size: 30px;
  border-radius: 50%;
}

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

.hero-dot {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 12px;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.content-section,
.category-section,
.hot-layout,
.player-section,
.detail-content {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 12px 0 4px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

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

.category-tile,
.category-card {
  min-height: 164px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.18), transparent 8rem),
    #ffffff;
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.08);
  transition: 0.2s ease;
  padding: 22px;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card-head span {
  display: block;
  color: #7c2d12;
  font-size: 21px;
  font-weight: 900;
}

.category-tile em,
.category-card-head em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

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

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

.filter-bar {
  margin-bottom: 24px;
}

.filter-input,
.search-page-form input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 18px;
  box-shadow: 0 10px 26px rgba(154, 52, 18, 0.06);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
  transition: 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1c0f0b;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  padding: 5px 9px;
}

.card-content {
  padding: 15px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a {
  color: var(--red);
}

.movie-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card.compact .poster img {
  height: 100%;
  min-height: 170px;
}

.movie-card.compact .tag-row {
  display: none;
}

.hot-layout {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 26px;
}

.hot-panel,
.story-card,
.side-card,
.player-shell {
  border: 1px solid #fed7aa;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 46px rgba(154, 52, 18, 0.1);
}

.hot-panel {
  padding: 24px;
}

.rank-list,
.full-rank-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list a,
.rank-row a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: #fff7ed;
  padding: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-title,
.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-list em,
.rank-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(251, 146, 60, 0.34), transparent 22rem),
    linear-gradient(135deg, #1c0f0b, #7f1d1d 58%, #c2410c);
}

.compact-hero .container {
  padding: 74px 0;
}

.page-hero p {
  max-width: 760px;
}

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.search-page-form input {
  border-radius: 999px;
}

.search-results {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
}

.search-result-card img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.search-result-card h3 {
  margin: 0 0 6px;
}

.search-result-card p,
.search-result-card span {
  color: var(--muted);
  margin: 0;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(10px);
  transform: scale(1.06);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(24, 9, 5, 0.96), rgba(127, 29, 29, 0.76));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  border: 1px solid rgba(255, 237, 213, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
  font-weight: 700;
}

.detail-info h1 {
  max-width: 900px;
}

.detail-line {
  max-width: 820px;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  color: #fff7ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  padding: 7px 11px;
}

.slim-actions {
  margin-top: 22px;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #0f0705;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0705;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(28, 15, 11, 0.08), rgba(28, 15, 11, 0.72));
}

.play-overlay[hidden] {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.38);
}

.play-overlay strong {
  font-size: 22px;
}

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

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.story-card p {
  color: #3f332d;
  font-size: 17px;
  margin: 0 0 24px;
}

.side-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

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

.side-card dd {
  margin: -8px 0 4px;
  color: #2c201b;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prev-next a {
  color: #9a3412;
  border-radius: 14px;
  background: #fff7ed;
  padding: 10px;
}

.site-footer {
  margin-top: 76px;
  color: #fff7ed;
  background: linear-gradient(135deg, #1c0f0b, #7f1d1d);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 42px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 247, 237, 0.72);
  margin: 0;
}

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

.footer-links a {
  border: 1px solid rgba(255, 237, 213, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-bottom {
  color: rgba(255, 247, 237, 0.62);
  text-align: center;
  border-top: 1px solid rgba(255, 237, 213, 0.12);
  padding: 16px;
}

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

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

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

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

  .hero-card {
    display: none;
  }

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

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

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

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

  .header-inner {
    height: 68px;
  }

  .brand-copy em {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 44px 0 132px;
  }

  .hero-controls {
    align-items: flex-start;
    margin-top: 500px;
  }

  .hero-dots {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .category-movie-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-grid {
    gap: 22px;
    padding: 48px 0;
  }

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

  .search-page-form {
    flex-direction: column;
  }
}
