@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap');

:root {
  --page-bg: #fff7ed;
  --paper: #fffbeb;
  --paper-strong: #fff1d6;
  --ink: #3f1717;
  --muted: #875a43;
  --brand: #991b1b;
  --brand-dark: #7f1d1d;
  --brand-soft: #fef3c7;
  --gold: #f59e0b;
  --line: rgba(127, 29, 29, 0.18);
  --shadow: 0 22px 60px rgba(127, 29, 29, 0.18);
  --radius: 22px;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

p,
h1,
h2,
h3,
dl {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.94), rgba(254, 226, 226, 0.96));
  border-bottom: 2px solid rgba(127, 29, 29, 0.32);
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff8dc;
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.26);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.04);
}

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

.brand-text strong {
  font-size: clamp(20px, 2vw, 27px);
  color: var(--brand-dark);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--brand-dark);
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--brand);
  transition: transform 0.22s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.78);
}

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

main {
  min-height: 70vh;
}

.hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2b0b0b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after,
.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(245, 158, 11, 0.28), transparent 28rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 640px;
  padding: clamp(38px, 7vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.eyebrow {
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 24px;
  color: #fff7d6;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(254, 243, 199, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #fff7dc;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.btn.primary,
.hero-search button {
  color: white;
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  box-shadow: 0 14px 32px rgba(127, 29, 29, 0.35);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(36px, 7vw, 78px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.hero-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-panel,
.ranking-panel,
.side-card,
.article-card,
.category-card,
.category-overview-card,
.movie-card {
  border: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.88);
  box-shadow: 0 16px 44px rgba(127, 29, 29, 0.1);
}

.search-panel {
  padding: 24px;
  border-radius: var(--radius);
}

.hero-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffaf0;
  outline: none;
  font: inherit;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(153, 27, 27, 0.7);
  box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.08);
}

.mini-feature-grid {
  display: grid;
  gap: 14px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.section-heading h2,
.panel-title h2,
.article-card h2,
.side-card h2 {
  margin-bottom: 0;
  color: var(--brand-dark);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(127, 29, 29, 0.17);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 24px;
}

.category-card small,
.category-count {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-weight: 800;
}

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

.category-samples {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: #6b211e;
  font-size: 13px;
}

.category-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-stat-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7ed;
  color: var(--muted);
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(127, 29, 29, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, #7f1d1d, #f59e0b),
    #7f1d1d;
}

.movie-card.compact .poster {
  aspect-ratio: 16 / 10;
}

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

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

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), transparent 48%);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  color: #fff7dc;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(127, 29, 29, 0.82);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: var(--radius);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid rgba(127, 29, 29, 0.1);
}

.rank-num {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  font-weight: 800;
}

.rank-title {
  color: var(--brand-dark);
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: clamp(42px, 8vw, 76px) 22px;
  border-radius: 0 0 34px 34px;
}

.compact-hero h1 {
  color: var(--brand-dark);
  font-size: clamp(40px, 6vw, 68px);
}

.compact-hero p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.86);
}

.result-count {
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  min-height: 620px;
  background: #2b0b0b;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 60px 22px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  color: white;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

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

.detail-info h1 {
  color: white;
}

.detail-one-line {
  max-width: 760px;
  color: #fff7d6;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #140606;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  background: black;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  border: 0;
  background: radial-gradient(circle at center, rgba(127, 29, 29, 0.2), rgba(0, 0, 0, 0.55));
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.play-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  padding-left: 4px;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: #fff7d6;
  font-size: 13px;
  pointer-events: none;
}

.article-card,
.side-card {
  padding: 24px;
  border-radius: var(--radius);
}

.article-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 100px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 14px;
  margin-bottom: 0;
}

.info-list dt {
  color: var(--brand);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

.responsive-table {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.9);
  box-shadow: var(--shadow);
}

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

.ranking-table th,
.ranking-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(127, 29, 29, 0.12);
  text-align: left;
}

.ranking-table th {
  color: var(--brand-dark);
  background: #fff1d6;
}

.ranking-table td {
  color: var(--muted);
}

.ranking-table a {
  color: var(--brand-dark);
  font-weight: 800;
}

.table-rank {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: #fdecc8;
  background: linear-gradient(135deg, #4c0d0d, #7f1d1d 58%, #3f1717);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 24px;
  font-weight: 800;
}

.site-footer p {
  color: #fdecc8;
  line-height: 1.8;
}

.site-footer h2 {
  color: #fbbf24;
  font-size: 18px;
}

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

.footer-links a {
  color: #fdecc8;
}

[data-search-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .hero,
  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    margin-top: 16px;
    padding: 0 14px;
  }

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

  .hero-content {
    padding: 30px;
  }

  .hero-search,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .filter-bar {
    display: grid;
  }

  .content-section {
    padding: 38px 14px;
  }

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

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 70px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

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

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

  .compact-hero {
    margin-top: 12px;
    padding: 36px 14px;
  }

  .detail-hero-inner {
    min-height: auto;
  }
}
