:root {
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --warm: #f59e0b;
  --orange: #ea580c;
  --deep: #431407;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fffaf5;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.nav-wrap {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

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

.desktop-nav > a,
.nav-dropdown > a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  left: -18px;
  top: 66px;
  width: 180px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--soft);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search {
  position: relative;
  width: 255px;
}

.nav-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 44px 0 17px;
  outline: none;
  background: #fff7ed;
}

.nav-search input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.nav-search button {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #ffedd5;
  padding: 16px 22px 22px;
  background: #ffffff;
}

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

.mobile-panel a {
  font-weight: 700;
  color: #374151;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-search input,
.mobile-search button,
.filter-bar input,
.filter-bar select {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  outline: none;
}

.mobile-search button,
.filter-bar button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  cursor: pointer;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffbeb, #fed7aa 50%, #fee2e2);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.06);
  opacity: 0.28;
}

.hero-layer {
  background: radial-gradient(circle at 76% 30%, rgba(251, 146, 60, 0.28), transparent 30%), linear-gradient(90deg, rgba(255, 247, 237, 0.98), rgba(255, 237, 213, 0.9) 45%, rgba(124, 45, 18, 0.5));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.16);
  color: #c2410c;
  font-weight: 900;
  font-size: 14px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0;
  color: #111827;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
}

.ghost-btn {
  color: #c2410c;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 445px;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 30px 65px rgba(124, 45, 18, 0.25);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.hero-poster strong,
.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster strong {
  bottom: 56px;
  font-size: 24px;
}

.hero-poster span {
  bottom: 28px;
  color: #ffedd5;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.35);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ea580c;
}

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

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

.section-heading h2,
.player-section h2,
.story-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
  transition: 0.24s ease;
}

.poster-box {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.compact .poster-box {
  height: 205px;
}

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

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

.poster-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.6));
  opacity: 0.85;
}

.poster-badge,
.poster-meta {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #ffffff;
  background: #f59e0b;
}

.poster-meta {
  left: 14px;
  bottom: 14px;
  color: #ffffff;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.compact .card-body h2 {
  font-size: 17px;
}

.movie-card:hover .card-body h2 {
  color: var(--orange);
}

.card-body p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.warm-section {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.in-warm {
  padding-top: 66px;
  padding-bottom: 66px;
}

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

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

.rank-list a {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(124, 45, 18, 0.06);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.category-tile,
.overview-card {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
  transition: 0.24s ease;
}

.category-tile span,
.overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: #9a3412;
  font-size: 22px;
  font-weight: 900;
}

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

.overview-card {
  min-height: 230px;
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.overview-links a {
  color: #c2410c;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffbeb, #fed7aa);
}

.small-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.small-hero > div {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 58px 22px;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 19px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.07);
}

.empty-tip {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: #9a3412;
  background: #ffedd5;
  text-align: center;
  font-weight: 800;
}

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

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  min-height: 610px;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-layer {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.06);
  opacity: 0.38;
}

.detail-layer {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(67, 20, 7, 0.88), rgba(124, 45, 18, 0.58));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  color: #ffffff;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(251, 146, 60, 0.35);
}

.detail-copy .primary-btn {
  margin-top: 26px;
}

.player-section {
  padding-top: 64px;
}

.player-section h2 {
  margin-bottom: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.4);
  font-size: 32px;
}

.player-cover span:last-child {
  font-size: 18px;
  font-weight: 900;
}

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

.story-card {
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
}

.story-card p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  margin-top: 42px;
  color: #ffedd5;
  background: linear-gradient(180deg, #7c2d12, #431407);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 430px;
  color: #fed7aa;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  padding: 22px;
  color: #fed7aa;
  text-align: center;
}

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

  .hero-inner {
    grid-template-columns: 1fr 300px;
    gap: 36px;
  }

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

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

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

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

  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero-poster {
    max-width: 330px;
    min-height: auto;
  }

  .hero-poster img {
    height: 390px;
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .detail-poster img {
    height: 360px;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

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

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

  .hero-desc,
  .detail-line,
  .small-hero p {
    font-size: 17px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    grid-column: 2;
  }

  .content-section {
    padding: 52px 16px;
  }
}
