:root {
  --bg: #fff8f0;
  --bg-soft: #fff3e0;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #f3d3a3;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --accent-deep: #9a3412;
  --shadow: 0 20px 60px rgba(154, 52, 18, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, #fff 45%, #fff8f0 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 {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(243, 211, 163, 0.75);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--accent-deep);
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-strong);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: #fff7ed;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.top-search input,
.filter-grid input,
.filter-grid select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  color: var(--text);
}

.top-search input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.top-search button,
.filter-grid button,
.primary-button,
.ghost-button,
.section-action,
.card-actions a {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.primary-button,
.filter-grid button,
.card-actions a:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 25px rgba(234, 88, 12, 0.24);
}

.top-search button {
  padding: 10px 16px;
}

.primary-button,
.ghost-button,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.primary-button.small {
  padding: 10px 18px;
  font-size: 14px;
}

.ghost-button,
.section-action,
.card-actions a:last-child {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.top-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.card-actions a:hover,
.filter-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.24);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--accent-deep);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 48%, #fee2e2 100%);
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  position: absolute;
  right: 8%;
  top: 7%;
  width: min(42vw, 520px);
  height: 78%;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 35px 80px rgba(154, 52, 18, 0.28);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(245, 158, 11, 0.23), transparent 18rem),
    radial-gradient(circle at 15% 18%, rgba(251, 146, 60, 0.24), transparent 16rem),
    linear-gradient(90deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 247, 237, 0.88) 44%, rgba(255, 237, 213, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
}

.hero-content > * {
  max-width: 620px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-text,
.page-hero p {
  margin: 22px 0 0;
  font-size: 20px;
  color: #4b5563;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

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

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: var(--accent-strong);
}

.hero-thumbs {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, 110px);
  gap: 12px;
}

.hero-thumb {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(154, 52, 18, 0.18);
}

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

.hero-thumb span {
  display: block;
  padding: 7px 8px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-strip {
  width: min(100% - 32px, var(--container));
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

.soft-section {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100vw - var(--container)) / 2));
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.4), rgba(255, 237, 213, 0.55));
}

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

.section-header h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.05em;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(243, 211, 163, 0.75);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(154, 52, 18, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(154, 52, 18, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #fb923c, #ef4444);
}

.movie-card.compact .poster-frame {
  height: 230px;
}

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

.poster-frame:hover img {
  transform: scale(1.06);
}

.poster-fallback {
  position: absolute;
  inset: auto 16px 16px 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 46px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: opacity 0.2s ease;
}

.poster-frame:hover .play-mark {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  flex: 1;
}

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

.movie-meta-line span:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
  color: #d97706;
}

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

.movie-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions a {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
}

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

.category-tile a,
.category-overview-card {
  display: block;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.1);
}

.category-tile h3,
.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  color: #111827;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

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

.mini-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(251, 146, 60, 0.28), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #ffedd5);
}

.page-hero > div {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.compact-hero {
  min-height: 330px;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border-radius: 16px;
}

.filter-grid button {
  padding: 12px 16px;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.rank-list,
.rank-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 92px 1fr 160px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-index {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster img {
  width: 92px;
  height: 122px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--accent-strong);
  font-size: 24px;
}

.rank-score span,
.rank-score a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.category-overview-card {
  min-height: 0;
}

.category-sample-posters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.category-sample-posters a {
  position: relative;
  min-width: 0;
}

.category-sample-posters img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-sample-posters span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 28px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--accent-strong);
}

.player-card {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  padding: 22px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
  box-shadow: var(--shadow);
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  min-height: 460px;
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.34), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 34px;
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.38);
}

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

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

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.player-info h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.player-info p {
  color: #4b5563;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  margin-top: 34px;
}

.detail-poster {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.detail-content {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 17px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.info-table div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-table dt {
  color: #9a3412;
  font-weight: 900;
  font-size: 13px;
}

.info-table dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 800;
}

.prose-section {
  max-width: 880px;
  font-size: 18px;
}

.site-footer {
  margin-top: 60px;
  background: #7c2d12;
  color: #ffedd5;
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-links {
  margin: 18px 0;
  color: #fed7aa;
}

.copyright {
  margin: 0;
  color: #fdba74;
  font-size: 14px;
}

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

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

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

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

  .hero-slide img {
    opacity: 0.34;
    right: -4%;
    width: 60vw;
  }

  .hero-thumbs {
    display: none;
  }

  .player-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin: 6px 0;
    box-shadow: none;
  }

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

  .hero-content h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-text,
  .page-hero p {
    font-size: 17px;
  }

  .hero-slide img {
    width: 78vw;
    height: 56%;
    top: 34%;
    right: -12%;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 44px 70px 1fr;
  }

  .rank-score {
    grid-column: 2 / -1;
    text-align: left;
  }

  .rank-poster img {
    width: 70px;
    height: 95px;
  }

  .filter-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .video-wrap,
  .movie-player {
    min-height: 260px;
  }
}
