:root {
  --color-bg: #fff8ed;
  --color-bg-soft: #fffdf7;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: rgba(120, 53, 15, 0.14);
  --color-amber: #b45309;
  --color-amber-dark: #78350f;
  --color-amber-light: #f59e0b;
  --color-card: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 18px 55px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 12px 32px rgba(31, 41, 55, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.28), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf3 45%, #ffffff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

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

.top-strip {
  color: #fff7ed;
  background: linear-gradient(90deg, #92400e, #b45309, #d97706);
}

.top-strip-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 0;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--color-amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #78350f;
}

.mobile-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel a {
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #78350f;
  font-weight: 700;
}

.hero-section {
  padding: 24px 0 0;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.38), transparent 24rem),
    linear-gradient(135deg, #78350f, #111827 56%, #0f172a);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.1) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.66) 43%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--color-amber);
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.4vw, 23px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #78350f;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.detail-copy .hero-tags span,
.hero-content .hero-tags span,
.page-hero .hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.btn {
  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, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 15px 32px rgba(180, 83, 9, 0.28);
}

.btn-secondary {
  color: #78350f;
  background: #fffbeb;
  border: 1px solid rgba(180, 83, 9, 0.18);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.quick-search-panel,
.section-block {
  margin-top: 40px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.quick-search-panel h2,
.section-heading h2,
.highlight-box h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.big-search-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(180, 83, 9, 0.20);
  border-radius: 999px;
  background: white;
  color: #111827;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
}

.search-form input:focus,
.big-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading p,
.highlight-box p,
.site-footer p {
  max-width: 780px;
  margin: 0;
  color: var(--color-muted);
}

.small-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, #92400e, #1f2937);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.35s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.82));
}

.category-card strong,
.category-card em,
.category-card b {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  margin-top: 104px;
  font-size: 22px;
  font-style: normal;
}

.category-card em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
}

.category-card b {
  margin-top: 12px;
  color: #fde68a;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.no-margin {
  margin-top: 0;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.14);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  font-weight: 950;
}

.rank-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.wide-btn {
  width: 100%;
  margin-top: 20px;
}

.highlight-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.24), transparent 15rem),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.stats-grid strong {
  padding: 18px;
  border-radius: 18px;
  background: white;
  color: #92400e;
  font-size: 30px;
  line-height: 1;
  box-shadow: var(--shadow-card);
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(120, 53, 15, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 25% 18%, rgba(251, 191, 36, 0.38), transparent 12rem),
    linear-gradient(135deg, #78350f, #1f2937);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-frame img,
.rank-card:hover img {
  transform: scale(1.06);
}

.poster-badge,
.rank-cover span {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #78350f;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card h3,
.rank-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card p,
.rank-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.inline-link {
  color: var(--color-amber);
  font-size: 14px;
  font-weight: 900;
}

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

.movie-card-compact h3 {
  font-size: 17px;
}

.page-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, #92400e, #111827);
}

.channel-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.35), transparent 22rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.30));
}

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

.text-only-hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.35), transparent 20rem),
    linear-gradient(135deg, #78350f, #111827);
}

.warm-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.38), transparent 19rem),
    linear-gradient(135deg, #92400e, #1f2937);
}

.index-list,
.site-map-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.index-list li,
.site-map-list li {
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 16px;
  background: #fffaf0;
}

.index-list a,
.site-map-list a {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
}

.index-list strong,
.site-map-list strong {
  color: #111827;
  font-size: 16px;
}

.index-list span,
.site-map-list span,
.index-list em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

.rank-grid {
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #78350f, #111827);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.search-page-panel {
  margin-top: 34px;
  padding: 24px;
  border-radius: 24px;
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.16);
}

.big-search-input {
  min-height: 58px;
  font-size: 18px;
}

.search-count {
  margin: 10px 0 0;
  color: var(--color-muted);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #78350f, #111827);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(2px) saturate(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.48));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 68px 0;
}

.tall-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.70));
  cursor: pointer;
}

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

.player-overlay span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
}

.player-overlay strong {
  font-size: 18px;
}

.player-message {
  margin: 0;
  padding: 12px 16px;
  color: #fde68a;
  background: rgba(17, 24, 39, 0.96);
  font-size: 13px;
}

.detail-info-grid {
  align-items: start;
}

.long-text {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.spacious-tags {
  margin-top: 18px;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 0;
  color: #fef3c7;
  background: linear-gradient(135deg, #78350f, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 20px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
  color: #fde68a;
}

.is-image-missing {
  position: relative;
}

.is-image-missing::before {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.30), transparent 12rem),
    linear-gradient(135deg, #92400e, #1f2937);
}

[data-search-hidden="true"] {
  display: none !important;
}

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

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

  .detail-hero-inner {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .top-strip-inner {
    gap: 12px;
    font-size: 12px;
  }

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

  .quick-search-panel,
  .section-split,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-summary,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

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

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

  .quick-search-panel,
  .section-block {
    padding: 22px;
    border-radius: 22px;
  }

  .rank-list a {
    grid-template-columns: 46px 1fr;
  }

  .rank-list em {
    grid-column: 2;
  }
}
