* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --soft: #fff1f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --accent: #f97316;
  --accent-2: #ec4899;
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

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

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

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

.top-search input,
.hero-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.top-search input {
  width: 230px;
}

.top-search button,
.hero-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.22);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--text);
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 68px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(236, 72, 153, 0.22)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.08);
}

.hero-copy,
.hero-poster,
.detail-layout {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.detail-info h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.hero-summary,
.detail-one-line,
.page-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #ffffff;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.30);
}

.ghost-btn {
  color: #ffffff;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-3px);
}

.hero-poster,
.detail-poster,
.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.hero-poster {
  width: min(390px, 100%);
  justify-self: end;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster img,
.detail-poster img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-empty::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: #9a3412;
  font-weight: 900;
  background: radial-gradient(circle at top left, #ffedd5, #fce7f3 48%, #ffffff);
}

.hero-dots {
  position: absolute;
  left: 68px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.quick-panel,
.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 50px rgba(249, 115, 22, 0.10);
}

.hero-search,
.search-panel,
.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-search input,
.search-panel input,
.filter-panel input {
  width: min(520px, 100%);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

.compact-heading {
  align-items: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: #111827;
}

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

.section-link {
  padding: 10px 16px;
  color: #c2410c;
  background: #ffedd5;
}

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

.category-tile,
.category-card-large,
.movie-card,
.prose-card,
.side-card,
.ranking-box,
.ranking-page-list {
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.10);
}

.category-tile {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 24px;
  transition: transform 0.2s ease;
}

.category-tile span,
.category-title {
  color: #ea580c;
  font-weight: 900;
}

.category-tile strong {
  font-size: 20px;
  line-height: 1.25;
}

.category-tile em,
.category-card-large p,
.movie-card p,
.meta-row,
.rank-row em,
.side-card dd {
  color: var(--muted);
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.movie-card p {
  min-height: 52px;
  margin: 8px 0 12px;
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.meta-row a {
  color: #ea580c;
  font-weight: 800;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ranking-box,
.ranking-page-list {
  overflow: hidden;
  border-radius: 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row strong {
  color: #ec4899;
  font-size: 18px;
}

.rank-row span {
  font-weight: 850;
}

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

.feature-stack .movie-card .poster {
  aspect-ratio: 16 / 11;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 56px;
  background: linear-gradient(135deg, #111827, #7c2d12 52%, #831843);
}

.small-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}

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

.category-card-large {
  padding: 24px;
  border-radius: 26px;
}

.category-title {
  display: inline-block;
  font-size: 26px;
  margin-bottom: 12px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 700;
}

.filter-panel {
  margin-top: 24px;
}

.detail-hero {
  min-height: 560px;
  background: #111827;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: end;
  padding: 70px;
  min-height: 560px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-tags span {
  background: rgba(255, 237, 213, 0.88);
}

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

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.20), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

.play-cover span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
}

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

.player-shell.is-playing .play-cover {
  display: none;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
}

.prose-card,
.side-card {
  border-radius: 26px;
  padding: 26px;
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #374151;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  margin-top: 16px;
  color: #9a3412;
  font-weight: 900;
}

.side-card dd {
  margin: 4px 0 0;
}

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

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.80);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
}

.footer-brand .brand-text strong {
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .split-section,
  .article-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 260px;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-stage,
  .hero-slide {
    min-height: 560px;
  }

  .hero-slide,
  .small-hero,
  .detail-layout {
    padding: 30px;
  }

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

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

  .hero-dots {
    left: 30px;
    bottom: 26px;
  }

  .quick-panel,
  .section-heading,
  .hero-search,
  .search-panel,
  .filter-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

@media (max-width: 520px) {
  .movie-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .feature-stack {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .quick-links {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .quick-links a {
    width: 100%;
  }
}
