:root {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --pink: #ec4899;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(249, 115, 22, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.10), transparent 24rem),
    #f9fafb;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 180ms ease;
}

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

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

.site-search input,
.mobile-search input,
.filter-search input,
.filter-select {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.site-search input {
  width: 190px;
  padding: 10px 16px;
}

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

.site-search button,
.mobile-search button,
.small-button {
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.20);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: none;
  border-radius: 12px;
  padding: 8px 11px;
  background: #fff7ed;
  color: var(--accent-dark);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
  background: #ffffff;
}

.mobile-nav.open {
  display: block;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

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

.main-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.70) 44%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.08) 52%, rgba(17, 24, 39, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 132px 20px 170px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.38);
  font-size: 14px;
  font-weight: 750;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 20px 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-meta {
  margin: 0 0 20px;
  color: #fed7aa;
  font-weight: 700;
}

.hero-summary {
  max-width: 700px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.34);
}

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

.outline-button {
  color: var(--accent-dark);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

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

.hero-thumb {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.hero-thumb.active {
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(253, 186, 116, 0.62);
}

.hero-thumb img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumb strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.hero-thumb span {
  display: block;
  color: #e5e7eb;
  font-size: 12px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.section {
  margin-top: 54px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
}

.section-head h1,
.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-head p,
.page-title p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

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

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

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.34);
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(12px);
}

.movie-card-body {
  padding: 16px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.movie-tags span,
.meta-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 760;
}

.movie-card h2 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-meta {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

.movie-desc {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.62;
  font-size: 14px;
}

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

.category-tile {
  display: block;
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.92)),
    #f97316;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(236, 72, 153, 0.22);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 9px;
}

.category-tile span {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.ranking-panel,
.feature-panel,
.filter-panel,
.detail-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-panel,
.feature-panel {
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 180ms ease, transform 180ms ease;
}

.compact-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

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

.compact-card em {
  margin-top: 3px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.ranking-number {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  font-weight: 850;
}

.page-title {
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.90), rgba(252, 231, 243, 0.86)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.filter-button {
  border: none;
  cursor: pointer;
}

.filter-button.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--pink));
}

.filter-panel {
  margin: 26px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.filter-search input {
  width: 100%;
  padding: 13px 18px;
}

.filter-select {
  min-width: 155px;
  padding: 13px 18px;
}

.result-count {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

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

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

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.22);
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.player-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
  font-size: 28px;
}

.detail-title {
  margin: 26px 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 0;
}

.detail-card {
  padding: 24px;
  margin-bottom: 22px;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-card p + p {
  margin-top: 14px;
}

.sidebar-card {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.poster-large {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 16px;
}

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

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

  .menu-button {
    display: inline-flex;
  }

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

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

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

  .hero-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-track {
    min-height: 590px;
  }

  .hero-content {
    padding: 96px 20px 80px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .main-wrap {
    padding: 28px 14px 58px;
  }

  .section-head {
    display: block;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .result-count {
    text-align: left;
  }

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

  .compact-card {
    grid-template-columns: auto 52px 1fr;
  }
}

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