* {
  box-sizing: border-box;
}

:root {
  --color-bg: #fff7ed;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-primary: #ea580c;
  --color-primary-dark: #9a3412;
  --color-amber: #f59e0b;
  --color-line: rgba(124, 45, 18, 0.12);
  --shadow-soft: 0 18px 45px rgba(124, 45, 18, 0.14);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf5 44%, #ffffff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #c2410c 52%, #78350f 100%);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.28);
}

.header-inner {
  width: min(100%, var(--container));
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

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

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

.desktop-nav a {
  padding: 8px 0;
  font-size: 15px;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fde68a;
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  border-radius: 999px;
  font: inherit;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 237, 213, 0.82);
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #7c2d12;
  font-weight: 700;
  background: #fef3c7;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.48), transparent 30rem),
    linear-gradient(135deg, #431407, #9a3412 46%, #111827 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.12) contrast(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(67, 20, 7, 0.55), rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.8), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 96px 20px 148px;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fde68a;
}

.hero-content h1 {
  max-width: 780px;
  margin: 16px 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn,
.hot-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.hot-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  box-shadow: 0 18px 32px rgba(251, 191, 36, 0.25);
}

.btn.ghost,
.hot-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  width: min(calc(100% - 40px), var(--container));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  cursor: pointer;
  text-align: left;
}

.hero-dot.is-active {
  border-color: rgba(253, 230, 138, 0.8);
  background: rgba(251, 191, 36, 0.2);
}

.hero-dot img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #9a3412);
}

.hero-dot span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content-section {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 52px 20px;
}

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

.section-heading h2,
.search-card h2,
.detail-text h2,
.sitemap-list h2 {
  margin: 8px 0 6px;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p,
.search-card p,
.intro-panel p,
.page-hero p,
.detail-text p,
.sitemap-list p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.section-more {
  color: #9a3412;
  background: #ffedd5;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 8rem),
    linear-gradient(135deg, #f59e0b, #9a3412);
}

.poster-link img,
.detail-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  background: #fef3c7;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

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

.movie-meta-line span {
  color: #9a3412;
  border: 0;
  background: #ffedd5;
  font-size: 12px;
  padding: 4px 8px;
}

.movie-card h3 {
  min-height: 56px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-table a:hover,
.category-samples a:hover,
.sitemap-list a:hover {
  color: var(--color-primary);
}

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

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

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  background: #fff7ed;
}

.intro-panel,
.split-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.intro-panel > div,
.search-card,
.split-layout > div,
.table-wrap,
.detail-text article,
.player-card,
.sitemap-list,
.filter-bar {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.intro-panel > div:first-child,
.search-card,
.split-layout > div,
.detail-text article,
.sitemap-list {
  padding: 28px;
}

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

.intro-stats div {
  display: grid;
  place-items: center;
  min-height: 130px;
}

.intro-stats strong {
  color: #c2410c;
  font-size: 38px;
  line-height: 1;
}

.intro-stats span {
  color: var(--color-muted);
  font-size: 14px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li + li {
  border-top: 1px solid var(--color-line);
}

.ranking-list a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.rank-number,
.rank-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  border-color: var(--color-line);
  padding: 14px 18px;
  background: #ffffff;
}

.large-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.page-hero {
  width: min(100%, var(--container));
  margin: 36px auto 0;
  padding: 64px 20px;
}

.slim-hero,
.category-hero {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.page-hero h1 {
  max-width: 850px;
  margin: 12px 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

.category-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 16rem),
    #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.category-count {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  background: #ffedd5;
}

.category-card h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

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

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

.category-samples a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  margin-bottom: 24px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  border-color: var(--color-line);
  padding: 12px 14px;
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  padding: 10px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.ranking-table th {
  color: #7c2d12;
  background: #fff7ed;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #1f1308;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(3px) saturate(1.18);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(251, 191, 36, 0.34), transparent 28rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(67, 20, 7, 0.74));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f59e0b, #9a3412);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

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

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.player-card {
  padding: 16px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  background:
    radial-gradient(circle at center, rgba(251, 191, 36, 0.26), transparent 14rem),
    rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

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

.play-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7c2d12;
  background: #fef3c7;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px 0;
  color: var(--color-muted);
}

.player-meta strong {
  color: #9a3412;
}

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

.detail-text p {
  font-size: 16px;
}

.search-status {
  margin: 18px 0 24px;
  color: var(--color-muted);
}

.sitemap-list ul {
  margin: 10px 0 28px;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

.sitemap-list .columns {
  columns: 2;
}

.sitemap-list .movie-columns {
  columns: 4;
}

.sitemap-list span {
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f, #9a3412, #78350f);
}

.footer-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer p,
.site-footer a {
  color: #ffedd5;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 7px;
}

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

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

  .detail-wrap {
    grid-template-columns: 240px 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    padding-top: 72px;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .intro-panel,
  .split-layout,
  .detail-text,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-list a {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .sitemap-list .columns,
  .sitemap-list .movie-columns {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 17px;
  }

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

  .hero-content,
  .content-section,
  .page-hero,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-dots {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .large-search,
  .mobile-search {
    flex-direction: column;
  }
}
