:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --card: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.12);
  --soft-shadow: 0 12px 30px rgba(124, 45, 18, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fff1f2 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316 55%, #f43f5e);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #9a3412;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f59e0b, #f97316, #fb7185);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 60px 0 92px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: blur(26px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.3;
  pointer-events: none;
}

.hero-shade {
  position: fixed;
  inset: 0;
  height: 620px;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.88), rgba(194, 65, 12, 0.62), rgba(244, 63, 94, 0.36));
  pointer-events: none;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.hero-copy h1 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.tag-row,
.detail-tags,
.card-meta,
.line-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span,
.card-meta span,
.line-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #9a3412;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 35px 80px rgba(80, 32, 11, 0.38);
  transform: rotate(2deg);
}

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

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

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

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

.intro-strip {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.intro-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 32px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.intro-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  gap: 10px;
}

.search-panel label {
  color: #9a3412;
  font-weight: 900;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.search-control input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
}

.search-control button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

.category-strip {
  padding: 38px 0 0;
}

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

.category-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 18px;
  color: #7c2d12;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.3);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  color: var(--orange-dark);
  box-shadow: var(--soft-shadow);
}

.content-section {
  padding-top: 58px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

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

.section-heading a {
  color: var(--orange-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(124, 45, 18, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.62) 100%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.compact-card .card-body h3 {
  font-size: 15px;
}

.card-body h3 a:hover,
.line-card h3 a:hover {
  color: var(--orange-dark);
}

.card-body p {
  min-height: 42px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.compact-card .card-body p {
  display: none;
}

.card-meta span {
  color: #7c2d12;
  background: #ffedd5;
  padding: 6px 9px;
}

.soft-panel {
  margin-top: 58px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: var(--soft-shadow);
}

.line-list {
  display: grid;
  gap: 16px;
}

.line-card {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.line-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.line-poster {
  overflow: hidden;
  border-radius: 14px;
}

.line-poster img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.line-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.line-content p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.line-meta span {
  color: #6b7280;
  background: #f9fafb;
  padding: 5px 8px;
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #b45309, #f97316 52%, #fb7185);
}

.small-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.all-movies-section {
  padding-bottom: 20px;
}

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

.side-panel {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: var(--soft-shadow);
}

.side-panel h2 {
  margin: 0 0 18px;
}

.side-list {
  display: grid;
  gap: 12px;
  max-height: 860px;
  overflow: auto;
}

.side-list .line-card {
  grid-template-columns: auto 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  box-shadow: none;
}

.side-list .line-poster img {
  width: 64px;
}

.side-list .line-content p,
.side-list .line-meta span:nth-child(n+3) {
  display: none;
}

.side-list .line-content h3 {
  font-size: 14px;
}

.side-list .rank-number {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-page {
  padding-bottom: 16px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #9a3412;
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.play-overlay span:last-child {
  font-weight: 900;
  font-size: 18px;
}

.detail-panel {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: var(--soft-shadow);
}

.detail-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.lead-text {
  font-size: 18px;
}

.detail-tags {
  margin: 20px 0;
}

.detail-tags span {
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
}

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

.meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fed7aa;
}

.meta-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.meta-grid strong {
  color: #9a3412;
}

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

.side-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.side-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-info dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-info dd {
  margin: -6px 0 8px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.5;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #ffedd5, #fed7aa);
  border-top: 1px solid rgba(251, 146, 60, 0.45);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #7c2d12;
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
  color: #9a3412;
  line-height: 1.6;
}

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

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slide,
  .intro-inner,
  .detail-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .intro-inner {
    margin-top: 0;
  }

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

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

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

  .brand-copy strong {
    font-size: 20px;
  }

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

  .hero-slide {
    padding: 46px 0 80px;
  }

  .hero-bg,
  .hero-shade {
    height: 560px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .intro-inner {
    padding: 22px;
  }

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

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

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

  .line-card {
    grid-template-columns: auto 74px minmax(0, 1fr);
    gap: 12px;
  }

  .line-poster img {
    width: 74px;
  }

  .line-content p {
    display: none;
  }

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

  .detail-panel {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .featured-grid,
  .compact-grid,
  .large-grid {
    grid-template-columns: 1fr;
  }

  .search-control {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rank-number {
    width: 38px;
    height: 38px;
  }
}
