:root {
  --bg: #f8fafc;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 34rem), var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.42);
  font-size: 14px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.search-form input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.search-form button {
  border: 0;
  cursor: pointer;
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
}

.search-panel {
  position: fixed;
  top: 80px;
  left: 50%;
  width: min(780px, calc(100% - 28px));
  max-height: 74vh;
  overflow: auto;
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.search-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.search-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
}

.search-title button {
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f1f5f9;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.search-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: 0.2s ease;
}

.search-item:hover {
  border-color: rgba(249, 115, 22, 0.42);
  transform: translateY(-2px);
}

.search-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

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

.search-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  margin-top: 4px;
}

.hero {
  position: relative;
  height: 630px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(620px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.footer-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn-light {
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 54px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.hero-side {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  width: 340px;
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.section-raised {
  position: relative;
  margin-top: -42px;
  z-index: 4;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-title.compact {
  margin-bottom: 16px;
}

.section-title > span {
  width: 6px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
}

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

.section-title a {
  margin-left: auto;
  color: var(--orange);
  font-weight: 700;
}

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

.category-tile {
  min-height: 156px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(244, 63, 94, 0.9));
  color: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.9));
}

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

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.category-tile strong {
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

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

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

.movie-card-minimal .poster-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  margin: 0;
}

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

.movie-card:hover img,
.mini-card:hover img,
.overview-card:hover img,
.top-rank-card:hover img {
  transform: scale(1.06);
}

.poster-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  transition: 0.25s ease;
}

.movie-card:hover .poster-cover {
  opacity: 1;
}

.play-icon,
.big-play {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 0 32px rgba(244, 63, 94, 0.42);
}

.duration,
.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong,
.card-body em,
.card-desc {
  display: block;
}

.card-body strong {
  min-height: 44px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-minimal .card-body strong {
  min-height: 38px;
  font-size: 15px;
}

.card-body em {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-desc {
  min-height: 44px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #ea580c;
  background: #fff7ed;
  font-size: 12px;
  padding: 4px 8px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 26px 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.hero-side .mini-card {
  grid-template-columns: 24px 58px 1fr;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.mini-card:hover {
  transform: translateX(4px);
}

.mini-card b {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.mini-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 13px;
  transition: transform 0.25s ease;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.35;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

.hero-side .mini-card em {
  color: rgba(255, 255, 255, 0.68);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f43f5e 58%, #f59e0b);
}

.page-hero {
  padding: 90px 0;
}

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

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 66px);
}

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

.eyebrow {
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.overview-poster {
  position: relative;
  min-height: 245px;
  overflow: hidden;
}

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

.overview-poster span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px);
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 8px;
}

.overview-body p {
  color: var(--muted);
  line-height: 1.7;
}

.overview-body ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #475467;
}

.overview-body li + li {
  margin-top: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  border: 1px solid rgba(249, 115, 22, 0.16);
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 28px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.top-rank-card strong,
.top-rank-card em,
.top-rank-number {
  position: absolute;
  z-index: 2;
  left: 22px;
}

.top-rank-number {
  top: 22px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.top-rank-card strong {
  right: 22px;
  bottom: 54px;
  font-size: 24px;
}

.top-rank-card em {
  bottom: 24px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.detail-hero {
  min-height: 590px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-actions {
  margin-top: 28px;
}

.detail-section {
  padding-top: 42px;
  padding-bottom: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(0, 0, 0, 0.76));
  transition: 0.2s ease;
}

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

.player-cover strong {
  font-size: 26px;
}

.player-cover em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  color: #475467;
  line-height: 1.9;
  margin: 0;
}

.site-footer {
  margin-top: 52px;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
}

.footer-grid h3 {
  color: #fff;
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  margin: 10px 0;
}

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

.footer-grid p {
  max-width: 420px;
  line-height: 1.8;
}

.footer-tags span {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.14);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-inner > .search-form {
    display: none;
  }

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

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

  .mobile-search {
    margin-top: 8px;
  }

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

  .hero-side {
    display: none;
  }

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

  .split-layout,
  .two-column,
  .overview-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    top: 46%;
  }

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

  .hero-content p,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .section {
    padding: 38px 0;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title a {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .small-grid,
  .footer-grid,
  .search-results,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-poster {
    min-height: 210px;
  }

  .detail-inner {
    padding-top: 24px;
  }

  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .detail-poster {
    display: none;
  }

  .content-card {
    padding: 22px;
  }

  .player-cover strong {
    font-size: 20px;
  }
}
