:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --soft: #fff7ed;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.32);
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 18px;
}

.desktop-nav {
  display: flex;
  flex: 1;
}

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

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

.search-input,
.filter-input {
  width: 260px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn,
.search-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.search-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.btn.secondary {
  color: var(--orange);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.28), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid #e2e8f0;
}

.mobile-nav .nav-link {
  padding: 10px 0;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 660px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 34%, rgba(249, 115, 22, 0.34), transparent 32%), linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fed7aa;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy .hero-title {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-movie-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-desc {
  max-width: 720px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

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

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

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

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

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero,
.detail-hero {
  padding: 58px 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.20), transparent 28%), linear-gradient(135deg, #fff7ed, #ffffff 48%, #f8fafc);
  border-bottom: 1px solid #e5e7eb;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-copy p {
  max-width: 840px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.section {
  padding: 54px 0;
}

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

.section-kicker {
  color: var(--orange);
  font-weight: 900;
  margin: 0 0 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.movie-body {
  padding: 18px;
}

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

.movie-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  margin: 0;
  color: #475569;
  line-height: 1.72;
  font-size: 14px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.filter-input {
  flex: 1;
  min-width: 240px;
}

.filter-chip {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  padding: 8px 14px;
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 68px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  font-size: 28px;
  font-weight: 950;
  color: var(--orange);
  text-align: center;
}

.rank-cover img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

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

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.player-section {
  padding: 54px 0 20px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.62));
  display: grid;
  place-items: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-overlay span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
}

.content-panel {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.content-panel p {
  color: #334155;
  line-height: 2;
  font-size: 16px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.side-card {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 950;
}

.footer {
  margin-top: 48px;
  padding: 38px 0;
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  border: 1px solid #e5e7eb;
}

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-hero-inner,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 420px;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding: 48px 0 86px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.76));
  }

  .hero-desc,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

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

  .movie-body {
    padding: 14px;
  }

  .ranking-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .ranking-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-cover img {
    width: 72px;
    height: 96px;
  }

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

  .content-panel {
    padding: 22px;
  }
}

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

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .search-button {
    width: 100%;
  }

  .filter-input,
  .search-input {
    width: 100%;
  }
}
