:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #f97316;
  --primary-dark: #ea580c;
  --accent: #16a34a;
  --danger: #ef4444;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.26);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.02);
  transform: scale(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(249, 115, 22, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.38) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.98) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding: 70px 0 92px;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 54px);
}

.hero-desc {
  max-width: 780px;
  margin: 24px 0 0;
  color: #f3f4f6;
  font-size: clamp(17px, 2.3vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 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: #fff;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.btn-soft {
  color: var(--primary-dark);
  background: #fff7ed;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.4);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  background: var(--primary);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -54px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.quick-search-panel h2,
.section-heading h2,
.compact-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-main h2,
.detail-side h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.quick-search-panel p:not(.section-eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.home-search button {
  min-width: 110px;
  color: #fff;
  border: 0;
  border-radius: 15px;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

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

.section-band {
  background: #fff;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading > a,
.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow);
}

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

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: rgba(249, 115, 22, 0.93);
}

.poster-score {
  right: 12px;
  background: rgba(17, 24, 39, 0.84);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.detail-side a:hover {
  color: var(--primary-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

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

.tag-row span,
.tag-links a {
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  color: #fff;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.34s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.2));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-top: 92px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #f3f4f6;
}

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

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

.compact-heading {
  margin-bottom: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 36px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
}

.ranking-row:hover {
  background: #fff7ed;
}

.ranking-row img {
  width: 48px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-no {
  color: var(--primary-dark);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  display: none;
  color: var(--muted);
  font-size: 12px;
}

.ranking-row strong {
  color: var(--primary-dark);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero {
  padding: 84px 0 78px;
}

.compact-page-hero {
  padding: 66px 0 60px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p:not(.section-eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: #f3f4f6;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.category-cover-set {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover-set img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 0 0 8px;
}

.category-card-large p {
  color: var(--muted);
}

.filter-shell {
  padding-top: 42px;
}

.filter-bar {
  position: sticky;
  top: 78px;
  z-index: 20;
  margin-bottom: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.wide-filter {
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.72));
}

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

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

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

.detail-copy h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 840px;
  margin: 20px 0 0;
  color: #f9fafb;
  font-size: 21px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span,
.detail-meta strong {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-meta strong {
  color: #fff;
  background: var(--primary);
}

.player-section {
  margin-top: -64px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.35);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #fb923c);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.4);
}

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

.detail-main,
.detail-side {
  padding: 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-main h2 + p {
  margin-top: 12px;
}

.detail-main p {
  color: #374151;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prev-next a {
  padding: 12px;
  color: #9a3412;
  background: #fff7ed;
  border-radius: 14px;
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 70px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.ranking-card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-card-cover img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.ranking-card-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.ranking-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.ranking-card strong {
  color: var(--primary-dark);
  font-size: 24px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.site-footer a {
  display: inline-block;
  margin: 0 12px 10px 0;
  color: #d1d5db;
}

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

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

.is-filtered-out {
  display: none !important;
}

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel,
  .category-card-large,
  .detail-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .home-search {
    flex-direction: column;
  }

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

  .detail-cover {
    max-width: 240px;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

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

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .featured-grid,
  .small-grid,
  .all-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-card strong {
    grid-column: 2;
  }

  .ranking-card-cover img {
    width: 80px;
    height: 110px;
  }

  .detail-hero-inner {
    padding: 44px 0 92px;
  }

  .player-section {
    margin-top: -44px;
  }

  .play-icon {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
