:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --yellow-soft: #fef3c7;
  --bg: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 32px rgba(249, 115, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

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

.brand-name {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #374151;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--orange);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
}

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

.hero-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5 0%, #fffbeb 54%, #fef3c7 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 28px;
  font-size: 20px;
  color: #4b5563;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.chip-row,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button,
.poster-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button,
.poster-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  color: #374151;
  background: var(--white);
  border: 2px solid #e5e7eb;
}

.primary-button:hover,
.secondary-button:hover,
.poster-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-pills {
  margin-top: 28px;
}

.hero-pills a,
.chip-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(251, 146, 60, 0.32);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-pills a:hover,
.chip-link:hover,
.chip-link.active {
  color: var(--white);
  background: var(--orange);
}

.hero-feature {
  display: grid;
  gap: 16px;
  transform: rotate(-2deg);
}

.hero-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:nth-child(2) {
  margin-left: 48px;
}

.hero-card:nth-child(3) {
  margin-left: 24px;
}

.hero-card:hover {
  transform: translateY(-4px) rotate(2deg);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
}

.hero-card img {
  width: 138px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  background: #fed7aa;
}

.hero-card span {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.hero-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.22;
}

.orb-one {
  top: 46px;
  left: 6vw;
  width: 160px;
  height: 160px;
  background: #fb923c;
}

.orb-two {
  right: 8vw;
  bottom: 48px;
  width: 220px;
  height: 220px;
  background: #f59e0b;
}

.orb-three {
  top: 42%;
  left: 48%;
  width: 190px;
  height: 190px;
  background: #facc15;
}

.section-block {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.white-block {
  background: var(--white);
}

.soft-block {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

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

.section-head.centered {
  text-align: center;
  justify-content: center;
}

.section-head.slim {
  margin-bottom: 20px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

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

.text-link {
  color: var(--orange-deep);
  font-weight: 800;
}

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

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

.ranking-grid,
.category-list {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffedd5;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 42px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-layer {
  opacity: 1;
  background: rgba(0, 0, 0, 0.34);
}

.type-pill,
.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  background: var(--orange);
}

.type-pill {
  top: 12px;
  right: 12px;
}

.year-pill {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-title a {
  transition: color 0.25s ease;
}

.movie-card:hover .card-title a {
  color: var(--orange);
}

.card-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta a {
  color: var(--orange-deep);
  font-weight: 800;
}

.compact-card .card-body {
  padding: 14px;
}

.compact-card .card-title {
  font-size: 16px;
}

.compact-card .card-line {
  min-height: 42px;
  font-size: 13px;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #facc15);
  opacity: 0.22;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: var(--muted);
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.split-block {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
}

.rank-panel,
.new-panel {
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas:
    "num title"
    "num meta";
  gap: 0 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.rank-row span {
  grid-area: num;
  color: var(--orange);
  font-weight: 900;
}

.rank-row strong {
  grid-area: title;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  grid-area: meta;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fff7ed 58%, #fef3c7);
}

.page-hero-inner,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero-inner {
  padding: 84px 0 70px;
}

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

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.ranking-hero-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.ranking-hero-item {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.ranking-hero-item img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 10px;
  background: #ffedd5;
}

.ranking-hero-item span {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.ranking-hero-item strong,
.ranking-hero-item em {
  display: block;
}

.ranking-hero-item strong {
  color: #111827;
  font-size: 16px;
}

.ranking-hero-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.search-panel {
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 900;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
}

.site-search {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px 12px 48px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  outline: none;
  color: #111827;
  background: #f9fafb;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.site-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 32px;
  color: #7c2d12;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 38px 0 68px;
}

.detail-poster {
  overflow: hidden;
  padding: 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #ffedd5;
}

.poster-button {
  width: 100%;
  margin-top: 16px;
}

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.1;
}

.detail-line {
  max-width: 820px;
  margin: 20px 0 20px;
  color: #4b5563;
  font-size: 20px;
}

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

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 0;
}

.player-block {
  padding-top: 54px;
  padding-bottom: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.54));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 42px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transform: translateX(4px);
}

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

.detail-text article {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.detail-text h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
}

.detail-text p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.footer-shell p {
  max-width: 680px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.25s ease;
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-shell {
    grid-template-columns: 1fr;
    padding: 58px 0;
  }

  .hero-feature {
    transform: none;
  }

  .split-block,
  .detail-text {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-card,
  .hero-card:nth-child(2),
  .hero-card:nth-child(3) {
    margin-left: 0;
    grid-template-columns: 104px 1fr;
  }

  .hero-card img {
    width: 104px;
    height: 74px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 19px;
  }

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

  .hero-text,
  .detail-line {
    font-size: 17px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid.wide,
  .ranking-hero-list {
    grid-template-columns: 1fr;
  }

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

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