:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --brown-900: #431407;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 20px 50px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf4 46%, #ffffff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-text {
  font-size: 24px;
  color: var(--orange-700);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.28);
  font-size: 14px;
}

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

.desktop-nav a {
  color: #5b4332;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange-700);
  border-bottom-color: var(--amber-500);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-card input,
.home-search-band input {
  width: 230px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-card input:focus,
.home-search-band input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search button,
.mobile-search button,
.home-search-band button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.home-search-band button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.28);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 20px 18px;
  background: white;
}

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

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

.mobile-panel a {
  font-weight: 800;
  color: #5b4332;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.4), transparent 35%), linear-gradient(135deg, #431407, #9a3412 45%, #f59e0b);
}

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

.hero-slide {
  display: none;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 96px 20px 110px;
}

.hero-slide.is-active {
  display: flex;
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: white;
  animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-content p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags .tag-pill {
  color: white;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.ghost-button,
.section-more,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover,
.section-more:hover,
.panel-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

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

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

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

.home-search-band,
.content-section,
.category-strip,
.two-column-section,
.filter-shell,
.ranking-list,
.article-page,
.detail-shell,
.related-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: -58px;
  padding: 28px;
  position: relative;
  z-index: 3;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  color: var(--brown-900);
}

.home-search-band p {
  margin: 0;
  color: var(--muted);
}

.home-search-band form {
  display: flex;
  gap: 10px;
}

.home-search-band input {
  width: min(360px, 42vw);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--brown-900);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-more,
.panel-link {
  color: var(--orange-700);
  background: #fff7ed;
  border: 1px solid var(--line);
}

.chip-row,
.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row a,
.filter-links a {
  border-radius: 999px;
  padding: 10px 16px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chip-row a:hover,
.filter-links a:hover {
  transform: translateY(-2px);
  background: #fed7aa;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(217, 119, 6, 0.13);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.16);
}

.poster-frame,
.ranking-cover,
.side-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(255, 237, 213, 0.68), transparent 30%), linear-gradient(135deg, #78350f, #ea580c 52%, #fbbf24);
}

.poster-frame {
  aspect-ratio: 2 / 3;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  background: rgba(67, 20, 7, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

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

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--brown-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card h3 a:hover,
.ranking-card h3 a:hover {
  color: var(--orange-700);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b4b35;
  font-size: 14px;
  line-height: 1.72;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel,
.filter-card,
.side-card,
.detail-content-card,
.player-card,
.article-page {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
  margin-top: 58px;
}

.ranking-panel h2,
.side-card h2,
.article-page h2 {
  margin: 0 0 18px;
  color: var(--brown-900);
  font-size: 24px;
  font-weight: 950;
}

.ranking-panel ol {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-panel li a:hover {
  transform: translateX(3px);
  background: #ffedd5;
}

.rank-num {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 950;
}

.rank-title {
  font-weight: 950;
  color: var(--brown-900);
}

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

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, #7c2d12, #ea580c 55%, #f59e0b);
  color: white;
  padding: 72px 20px;
}

.small-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.8;
}

.filter-shell {
  margin-top: 28px;
}

.filter-card {
  padding: 22px;
}

.filter-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--brown-900);
  font-weight: 950;
}

.filter-card input {
  width: min(560px, 100%);
  margin-bottom: 18px;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, #78350f, #c2410c 55%, #f59e0b);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(120, 53, 15, 0.22);
}

.category-card span {
  font-size: 13px;
  font-weight: 900;
  opacity: 0.78;
}

.category-card h3 {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: rgba(67, 20, 7, 0.76);
  font-weight: 950;
}

.ranking-card h3 {
  margin: 4px 0 10px;
  font-size: 24px;
  color: var(--brown-900);
  font-weight: 950;
}

.ranking-card p {
  color: #6b4b35;
  line-height: 1.78;
}

.empty-state {
  display: none;
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto;
  padding: 26px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
}

.empty-state.is-visible {
  display: block;
}

.detail-shell {
  padding-top: 28px;
}

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

.breadcrumb a {
  color: var(--orange-700);
}

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

.player-card {
  overflow: hidden;
  padding: 0;
  background: #120906;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.28), transparent 34%), #120906;
  cursor: pointer;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #120906;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-shell.is-playing .player-overlay {
  opacity: 0;
}

.player-start {
  pointer-events: auto;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.detail-content-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 16px 0 0;
  color: var(--brown-900);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.score-box {
  min-width: 92px;
  text-align: center;
  border-radius: 22px;
  padding: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.score-box strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.score-box span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  font-size: 13px;
}

.one-line {
  margin: 0 0 20px;
  color: #6b4b35;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 700;
}

.detail-content-card h2 {
  margin: 32px 0 14px;
  color: var(--brown-900);
  font-size: 26px;
  font-weight: 950;
}

.article-text p,
.article-page p {
  margin: 0 0 16px;
  color: #513728;
  line-height: 1.95;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-poster {
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: var(--brown-900);
  font-weight: 800;
}

.article-page {
  margin-top: 36px;
  padding: 34px;
}

.site-footer {
  margin-top: 78px;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #7c2d12 55%, #9a3412);
}

.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
  color: white;
  font-size: 22px;
}

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

.site-footer h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
  font-weight: 950;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-bottom: 10px;
  color: #fed7aa;
  font-weight: 700;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.16);
  padding: 18px 20px;
  text-align: center;
  color: #fed7aa;
}

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

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
    padding: 0 14px;
  }

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

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

  .hero-slide {
    padding: 74px 18px 96px;
  }

  .home-search-band {
    grid-template-columns: 1fr;
    margin-top: -34px;
    padding: 22px;
  }

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

  .home-search-band input {
    width: 100%;
  }

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

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

  .ranking-card {
    grid-template-columns: 106px 1fr;
    gap: 14px;
  }

  .ranking-card h3 {
    font-size: 19px;
  }

  .detail-content-card,
  .article-page,
  .filter-card {
    padding: 20px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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

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

  .hero-content h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

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

  .ranking-cover {
    max-width: 180px;
  }
}
