* {
  box-sizing: border-box;
}

:root {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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(16px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #f97316 48%, #dc2626);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

.brand-name {
  white-space: nowrap;
  font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-nav__link.active {
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.header-search input,
.search-panel input,
.search-panel select,
.category-tools input,
.category-tools select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 100%;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.category-tools input:focus,
.category-tools select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.btn,
.menu-toggle {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
}

.header-search button {
  padding: 11px 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  padding: 9px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 22px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav__link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav__link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.22) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 110px 22px 120px;
  margin: 0 auto;
  transform: translateX(-260px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 620px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.32);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

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

.hero-dot.active {
  background: var(--accent);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 22px;
}

.section-intro {
  padding-bottom: 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2,
.site-footer h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  line-height: 1.1;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-one-line,
.category-overview__head p {
  color: var(--muted);
  font-size: 17px;
}

.row-heading,
.category-overview__head {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.more-link {
  color: var(--accent);
  font-weight: 900;
}

.feature-strip a {
  padding: 13px 18px;
  border-radius: 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card__link:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: var(--shadow);
}

.movie-card__cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.movie-card__cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.68));
  opacity: 0.85;
}

.movie-card__type,
.movie-card__play,
.movie-card figcaption {
  position: absolute;
  z-index: 2;
}

.movie-card__type {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.movie-card__play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card__link:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card figcaption {
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-card figcaption span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.movie-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px;
}

.movie-card__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #6b7280;
  font-size: 12px;
}

.movie-card__meta span:first-child {
  color: var(--accent);
  font-weight: 900;
}

.soft-section {
  max-width: none;
  background: linear-gradient(180deg, #fff, #fff7ed);
}

.soft-section > .section-heading,
.soft-section > .category-grid,
.soft-section > .movie-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.category-card__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-card__images img {
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.category-card span {
  margin-top: auto;
  color: var(--accent);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.panel {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.rank-item,
.ranking-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item {
  grid-template-columns: 72px 1fr;
  padding: 10px;
}

.rank-item:hover,
.ranking-row:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}

.rank-item img {
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item span {
  display: block;
  font-weight: 900;
  color: var(--ink);
}

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

.page-hero,
.detail-hero {
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 58px 22px;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.page-hero--small,
.page-hero--category,
.page-hero--search {
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-tools,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-panel input {
  min-width: 300px;
}

.category-overview {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.ranking-row {
  grid-template-columns: 54px 96px minmax(180px, 1.5fr) minmax(140px, 1fr) 140px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.ranking-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  font-weight: 900;
}

.ranking-row img {
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.search-panel {
  max-width: 680px;
}

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

.breadcrumb {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

.detail-poster img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin-top: 12px;
}

.detail-tags span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #fed7aa;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

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

.detail-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.38);
  font-size: 36px;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding-top: 30px;
}

.detail-content article,
.detail-aside {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-content article p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
}

.detail-aside {
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-aside a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
}

.site-footer h2 {
  color: #fff;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
  }

  .header-search {
    min-width: 220px;
  }

  .hero-copy {
    transform: none;
    max-width: 900px;
  }

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

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

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

@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 86px;
  }

  .page-hero,
  .row-heading,
  .category-overview__head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .ranking-row em,
  .ranking-row > span:last-child {
    display: none;
  }

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

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-copy {
    padding: 72px 16px 96px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section,
  .category-overview,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .search-panel input,
  .search-panel select,
  .category-tools input,
  .category-tools select {
    width: 100%;
    min-width: 0;
  }

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