:root {
  --orange: #f97316;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

.site-nav a {
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #fff7ed;
  color: var(--orange);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.85)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.42), transparent 30%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.28), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 210px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0;
  max-width: 820px;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.rank-card:hover,
.info-card:hover,
.content-card:hover {
  transform: translateY(-3px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-search {
  display: flex;
  min-height: 62px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.hero-search input {
  padding: 0 18px;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  padding: 0 24px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
  cursor: pointer;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.hero-mini-list a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-mini-list span {
  font-weight: 900;
}

.hero-mini-list em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  font-size: 0.84rem;
}

.hero-dots {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  background: #ffffff;
}

.section-block {
  padding: 78px 0;
}

.section-block.soft,
.search-strip {
  background: #fff7ed;
}

.search-strip {
  padding: 28px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-heading.slim h2 {
  font-size: 2rem;
}

.filter-toolbar {
  display: grid;
  gap: 16px;
}

.inline-toolbar {
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.filter-input {
  min-height: 52px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 999px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 0;
  padding: 10px 16px;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.filter-result {
  color: var(--muted);
  min-height: 24px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.movie-card.featured .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.65);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0;
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.35;
}

.movie-card.featured h3 {
  font-size: 1.25rem;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.movie-card.small p {
  display: none;
}

.movie-card.small .tag-row span {
  font-size: 0.72rem;
}

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

.category-card,
.category-overview-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

.category-card span,
.category-title {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.info-card,
.content-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

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

.rank-card a {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #f8fafc;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.rank-card img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.rank-card p,
.rank-card span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--orange);
  font-weight: 900;
}

.page-hero {
  position: relative;
  padding: 96px 0;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 24%), radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.32), transparent 30%);
}

.page-hero .section-inner {
  position: relative;
  z-index: 2;
}

.compact-hero,
.category-hero,
.ranking-hero {
  min-height: 320px;
  display: grid;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.66)), var(--detail-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.4), transparent 28%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-copy .btn {
  margin-top: 28px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-card.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(249, 115, 22, 0.45);
  font-size: 2rem;
}

.play-layer strong {
  font-size: 1.1rem;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 1.5rem;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 1.03rem;
}

.detail-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.info-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-card dl div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.tag-row.large span {
  font-size: 0.9rem;
}

.site-footer {
  padding: 48px 0;
  color: #9ca3af;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  margin: 10px 0 0;
  color: #d1d5db;
}

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

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

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

@media (max-width: 1080px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #ffedd5;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 90px 0 300px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 54px;
  }

  .hero-search {
    border-radius: 26px;
  }

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

  .hero-dots {
    left: 16px;
    right: auto;
  }

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

  .movie-card.featured .poster-link {
    aspect-ratio: 3 / 4;
  }

  .section-block {
    padding: 54px 0;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

@media (max-width: 480px) {
  .featured-grid,
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 64px 1fr;
  }

  .rank-card img {
    width: 64px;
    height: 82px;
  }
}
