:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --pink: #db2777;
  --blue: #2563eb;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  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 {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
  font-size: 15px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #1f2937;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  padding: 0 24px 16px;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 46%, #db2777 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.20), transparent 28%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-glow {
  position: absolute;
  right: -12%;
  top: -30%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(6px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 24px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slides {
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.65s ease both;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.5vw, 25px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.hero-section .btn-primary {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

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

.btn-ghost.warm {
  color: var(--orange-dark);
  background: #fff7ed;
  border-color: #fed7aa;
}

.btn-dark {
  color: #ffffff;
  background: #111827;
}

.hero-media {
  position: relative;
  display: block;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.hero-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.56));
}

.hero-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 42px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.quick-search {
  padding-top: 34px;
  padding-bottom: 12px;
}

.search-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-panel label,
.filter-bar label span {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 800;
}

.search-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

input {
  min-height: 48px;
  padding: 0 16px;
}

select {
  min-height: 48px;
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.section-heading.small {
  align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
  padding: 24px;
}

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

.category-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
  font-size: 26px;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-card p,
.category-overview-card p,
.movie-card p,
.ranking-info p,
.content-card p,
.feature-panel p,
.page-hero p {
  color: var(--muted);
}

.category-card img {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: 132px;
  height: 176px;
  border-radius: 18px;
  object-fit: cover;
  opacity: 0.22;
  transform: rotate(8deg);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  height: 265px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.movie-card-compact .poster-wrap {
  height: 220px;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.50));
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-orange {
  color: #9a3412;
  background: #ffedd5;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--orange-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 10px 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.ranking-info div,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.ranking-info div span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: stretch;
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-cover {
  overflow: hidden;
  width: 96px;
  height: 126px;
  border-radius: 16px;
}

.ranking-cover img {
  height: 100%;
  object-fit: cover;
}

.ranking-number {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
}

.rank-top .ranking-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.ranking-info a {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
  box-shadow: var(--shadow);
}

.feature-panel .eyebrow {
  color: #fed7aa;
}

.feature-panel h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.feature-panel p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.section-blue {
  max-width: none;
  margin-top: 36px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-blue > .section-heading,
.section-blue > .movie-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 24px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #ea580c, #dc2626, #db2777);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 38px 38px;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 12px auto;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.page-actions {
  justify-content: center;
  margin-top: 26px;
}

.category-overview-card {
  min-height: 300px;
}

.category-overview-link {
  display: block;
  height: 100%;
  padding: 26px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.category-strip img {
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-filter {
  grid-template-columns: 1fr 190px 160px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  transform: scale(1.09);
  opacity: 0.28;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.82));
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

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

.detail-poster img {
  height: 470px;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 14px 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.13);
}

.detail-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
}

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

.player-section {
  padding-top: 50px;
  padding-bottom: 24px;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 18px 28px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.play-symbol {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  font-size: 17px;
}

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

.info-grid div {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.info-grid span,
.info-grid strong {
  display: block;
}

.info-grid span {
  color: var(--muted);
  font-size: 13px;
}

.info-grid strong {
  margin-top: 5px;
  color: #111827;
}

[data-filter-card].is-hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slide,
  .detail-main,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
    transform: none;
  }

  .hero-media img {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 18px 42px;
  }

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

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-media,
  .hero-media img {
    min-height: 330px;
  }

  .section-wrap {
    padding: 44px 16px;
  }

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

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

  .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 220px;
  }

  .filter-bar,
  .search-filter,
  .search-panel div {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 76px 34px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .ranking-cover {
    width: 76px;
    height: 100px;
  }

  .detail-inner {
    padding: 26px 16px 46px;
  }

  .detail-main {
    gap: 24px;
  }

  .detail-poster img {
    height: auto;
  }

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

@media (max-width: 480px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .movie-grid.large {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 260px;
  }
}
