:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-solid: #1e293b;
  --line: rgba(245, 158, 11, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-strong: #ea580c;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.22);
}

.brand-text strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--soft);
  font-weight: 600;
}

.main-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #fbbf24;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--soft);
}

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

.hero {
  position: relative;
  height: clamp(540px, 76vh, 820px);
  overflow: hidden;
  background: var(--bg-deep);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.08) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.54) 42%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: clamp(60px, 11vh, 118px);
  transform: translateX(-50%);
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  border-color: transparent;
}

.btn.ghost {
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.btn.small {
  padding: 10px 14px;
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

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

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.search-band,
.dark-band {
  background: rgba(2, 6, 23, 0.26);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
}

.search-panel h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.search-panel p,
.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-box span {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: #64748b;
}

.inline-search {
  width: min(100%, 520px);
}

.search-page-box {
  width: min(100%, 720px);
  margin-bottom: 22px;
}

.global-search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.global-search-results:empty {
  display: none;
}

.search-result-link {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 10px;
  background: rgba(30, 41, 59, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.search-result-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.search-result-link img {
  width: 86px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.8);
}

.search-result-link h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.search-result-link p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-result-link span {
  color: #fbbf24;
  font-size: 12px;
}

.section-block {
  padding: clamp(46px, 7vw, 84px) 0;
}

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

.section-head .section-kicker {
  margin-bottom: 12px;
  background: var(--amber-soft);
  color: #fbbf24;
  box-shadow: none;
}

.section-more {
  color: #fbbf24;
  font-weight: 800;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(30, 41, 59, 0.9);
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
  filter: brightness(0.72);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 58%);
}

.poster-category,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-category {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.rank-num {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.9);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #475569;
}

.tag-row {
  margin-top: 12px;
}

.card-category-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

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

.category-tile span {
  bottom: 58px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  bottom: 20px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(135deg, #0f172a, #111827 58%, #020617);
}

.compact-hero,
.ranking-hero {
  padding: clamp(70px, 10vw, 118px) 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 16px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-weight: 800;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.empty-state {
  margin-top: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(30, 41, 59, 0.54);
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.72);
  min-height: 168px;
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card div {
  padding: 24px;
}

.category-overview-card span {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  min-height: 620px;
  padding: clamp(56px, 8vw, 94px) 0;
}

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

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

.detail-shade {
  background:
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.44) 52%, rgba(15, 23, 42, 0.9) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.44));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  background: #111827;
}

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

.detail-info h1 {
  max-width: 880px;
  margin: 16px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta {
  margin: 18px 0;
}

.player-section {
  margin-top: -70px;
  position: relative;
  z-index: 4;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.86);
  box-shadow: var(--shadow);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.player-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.player-title-row span {
  color: var(--muted);
  font-size: 14px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.video-cover-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.26));
  cursor: pointer;
}

.video-cover-button[hidden] {
  display: none;
}

.big-play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.28);
  font-size: 28px;
}

.video-cover-button strong {
  font-size: clamp(20px, 3vw, 32px);
}

.video-cover-button em {
  max-width: 680px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.7;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 42px 0 12px;
}

.content-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(30, 41, 59, 0.62);
}

.content-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: var(--soft);
  line-height: 2;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: #020617;
}

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

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-brand p {
  max-width: 620px;
  line-height: 1.9;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 18px;
  text-align: center;
  font-size: 13px;
}

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .detail-hero-grid,
  .detail-content-grid,
  .footer-grid,
  .category-overview-grid,
  .category-overview-card a {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(300px, 100%);
  }

  .player-title-row,
  .section-head,
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-overview-card img {
    height: 210px;
  }

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-actions,
  .detail-meta,
  .hero-tags {
    gap: 8px;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-movie-grid,
  .ranking-page-grid,
  .ranking-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .search-result-link {
    grid-template-columns: 72px 1fr;
  }

  .search-result-link img {
    width: 72px;
    height: 54px;
  }

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