:root {
  --primary-50: #fef7ed;
  --primary-100: #fdecd0;
  --primary-500: #f17925;
  --primary-600: #e2591b;
  --primary-700: #bc3e18;
  --accent-500: #f04f1f;
  --accent-600: #e13415;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-500: #6b7280;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--neutral-800);
  background: var(--neutral-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 22px rgba(241, 121, 37, 0.28);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--neutral-700);
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--primary-600);
}

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

.header-search input,
.quick-search-panel input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--neutral-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.quick-search-panel input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.16);
}

.header-search button,
.quick-search-panel button {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary-500);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.quick-search-panel button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--neutral-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--neutral-800);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid var(--neutral-200);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--neutral-100);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg,
.hero-bg img,
.detail-backdrop,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img,
.detail-backdrop img {
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 680px;
  padding-top: 40px;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-labels span,
.tag-row span,
.poster-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-labels span {
  padding: 6px 12px;
  color: var(--primary-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions,
.sub-hero-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: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 14px 32px rgba(241, 121, 37, 0.34);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn.soft {
  color: var(--primary-700);
  background: var(--primary-50);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--white);
}

.quick-search-panel {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: -36px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel form {
  display: flex;
  gap: 10px;
}

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

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-tags a,
.related-categories a {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 750;
}

.content-section {
  padding: 58px 0;
}

.section-heading,
.category-preview-head,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading p,
.category-preview-head p,
.panel-title p,
.sub-hero p {
  margin: 0 0 6px;
  color: var(--primary-600);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.section-heading h2,
.category-preview-head h2,
.panel-title h2,
.related-categories h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.05em;
}

.section-link,
.category-preview-head a,
.panel-more {
  color: var(--primary-600);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: var(--neutral-900);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile span,
.category-tile small {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 52px;
  font-size: 1.25rem;
  font-weight: 850;
}

.category-tile small {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-tile:hover img,
.movie-card:hover img {
  transform: scale(1.05);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
}

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

.poster-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary-600);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-body h2,
.ranking-card h2 {
  margin: 0 0 8px;
  color: var(--neutral-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body p,
.ranking-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--neutral-500);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--neutral-700);
  background: var(--neutral-100);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--neutral-50);
}

.rank-item strong {
  color: var(--primary-600);
  font-size: 1.05rem;
}

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

.rank-item span {
  overflow: hidden;
  color: var(--neutral-900);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--accent-600);
  font-style: normal;
  font-weight: 850;
}

.panel-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.sub-hero {
  padding: 82px 0;
  color: var(--neutral-900);
  background: radial-gradient(circle at 20% 20%, var(--primary-100), transparent 34%), linear-gradient(135deg, var(--primary-50), var(--white));
}

.sub-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.category-intro {
  max-width: 740px;
  margin-bottom: 22px;
  color: var(--neutral-500);
  font-size: 1.1rem;
}

.category-preview-wrap {
  display: grid;
  gap: 42px;
  padding: 56px 0;
}

.category-preview {
  padding: 26px;
  border: 1px solid var(--neutral-200);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--neutral-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.filter-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--neutral-500);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
}

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--neutral-900);
}

.ranking-poster strong {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 32px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-size: 0.92rem;
}

.ranking-poster img {
  width: 120px;
  height: 168px;
  object-fit: cover;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--neutral-900);
}

.detail-backdrop {
  opacity: 0.46;
}

.detail-backdrop div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52)), linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.detail-hero-inner {
  position: relative;
  padding: 34px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--primary-100);
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.play-section {
  margin-top: -36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #050505;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 18px 38px rgba(241, 121, 37, 0.34);
  font-size: 1.9rem;
  text-indent: 4px;
}

.player-cover strong {
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 46px 0 14px;
}

.story-card,
.info-card {
  padding: 24px;
  border: 1px solid var(--neutral-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 14px;
  color: var(--neutral-900);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0;
  color: var(--neutral-700);
}

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

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

.info-card dt {
  color: var(--neutral-500);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--neutral-900);
  font-weight: 700;
}

.related-categories {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer .brand-name,
.site-footer h2 {
  color: var(--white);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-100);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

[hidden-by-filter="true"] {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 16px;
    font-size: 0.95rem;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel,
  .filter-toolbar,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-panel form {
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1280px);
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero,
  .sub-hero {
    min-height: auto;
  }

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

  .hero h1,
  .detail-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.04em;
  }

  .content-section {
    padding: 38px 0;
  }

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.small-grid,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .ranking-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .ranking-poster img {
    width: 86px;
    height: 122px;
  }

  .detail-hero-inner {
    padding-bottom: 42px;
  }

  .player-shell {
    border-width: 3px;
    border-radius: 20px;
  }
}
