:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --rose: #e11d48;
  --amber: #f59e0b;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  background: linear-gradient(135deg, var(--orange-dark), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link,
.nav-pill,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  color: #374151;
  font-weight: 650;
}

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

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
}

.header-search button {
  padding: 10px 16px;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
}

.quick-nav {
  display: flex;
  gap: 10px;
  padding: 0 0 12px;
}

.nav-pill {
  padding: 7px 13px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 650;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: #fed7aa;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 20px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px;
  background: #f9fafb;
  font-weight: 700;
}

.mobile-link.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 610px;
}

.hero-slide.is-active {
  display: block;
}

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68) 48%, rgba(17, 24, 39, 0.26)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 52px;
  min-height: 610px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

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

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

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

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

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

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

.section {
  padding: 76px 0;
}

.section-warm {
  background: linear-gradient(180deg, #fff7ed, #f8fafc);
}

.section-soft {
  background: #ffffff;
}

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

.section-kicker {
  color: var(--orange-dark);
  background: #ffedd5;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-more {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.64));
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.card-content {
  padding: 16px;
}

.card-tags span {
  color: var(--orange-dark);
  background: #ffedd5;
}

.card-content h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.28;
}

.card-content h3 a:hover,
.rank-body h3 a:hover {
  color: var(--orange-dark);
}

.card-content p,
.rank-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
}

.meta-row span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(15, 23, 42, 0.86));
}

.category-name,
.category-copy {
  position: absolute;
  left: 22px;
  right: 22px;
}

.category-name {
  bottom: 76px;
  font-size: 27px;
  font-weight: 900;
}

.category-copy {
  bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.34), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 46%, #7c2d12);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 88px 0 92px;
}

.page-hero h1 {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

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

.detail-shade {
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 54%, rgba(17, 24, 39, 0.3)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 54%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 54px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

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

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  font-size: 32px;
}

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

.content-box,
.info-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: var(--soft-shadow);
}

.content-box h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-box p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.info-card:first-child {
  margin-top: 0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

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

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.tag-cloud span {
  color: #9a3412;
  background: #ffedd5;
}

.big-search {
  max-width: 780px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.big-search input {
  min-height: 50px;
  padding: 0 18px;
}

.big-search button {
  min-height: 50px;
  padding: 0 26px;
}

.search-title {
  margin-bottom: 22px;
  color: #374151;
  font-size: 22px;
  font-weight: 850;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 62px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 26px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

.accent-rose .eyebrow,
.accent-rose .section-kicker {
  color: #ffe4e6;
  background: rgba(225, 29, 72, 0.24);
}

.accent-amber .eyebrow,
.accent-amber .section-kicker {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.24);
}

@media (max-width: 1120px) {
  .movie-grid,
  .home-grid,
  .wide-grid,
  .category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search,
  .quick-nav {
    display: none;
  }

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

  .hero-content,
  .detail-layout,
  .detail-main-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    min-height: 620px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

  .detail-sidebar {
    order: 2;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 640px;
  }

  .hero-content {
    min-height: 640px;
    padding: 56px 0 82px;
  }

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

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

  .section {
    padding: 54px 0;
  }

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

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 13px;
  }

  .card-content h3 {
    font-size: 15px;
  }

  .rank-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .page-hero-inner,
  .detail-hero-inner {
    padding: 54px 0 62px;
  }

  .detail-copy .btn {
    width: 100%;
  }

  .content-box,
  .info-card {
    padding: 20px;
  }

  .big-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

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