:root {
  --bg: #0f1117;
  --bg-strong: #050608;
  --panel: #171b24;
  --panel-soft: #1f2530;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f9fafb;
  --muted: #aab2c0;
  --soft: #d7dce5;
  --accent: #fbbf24;
  --accent-deep: #d97706;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 32rem),
    linear-gradient(180deg, #090b10 0%, #111827 45%, #0f1117 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(251, 191, 36, 0.12);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input,
.quick-search-card input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.quick-search-card input::placeholder,
.filter-panel input::placeholder {
  color: #808998;
}

.header-search button,
.quick-search-card button {
  border: 0;
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.quick-search-card button:hover {
  transform: translateY(-1px);
  background: #f59e0b;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: #050608;
}

.hero-stage {
  position: relative;
  height: min(78vh, 760px);
  min-height: 560px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.62);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 32%, rgba(251, 191, 36, 0.24), transparent 28rem),
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.76) 42%, rgba(5, 6, 8, 0.16) 100%),
    linear-gradient(180deg, transparent 55%, #050608 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero p,
.page-hero p,
.lead-text {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  color: #f4f6f8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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: #111827;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 16px 38px rgba(251, 191, 36, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #262b36, #111827);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #111827;
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}

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

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

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

.hero-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  margin-top: -60px;
  margin-bottom: 44px;
}

.quick-search-card,
.hero-mini-card,
.category-card,
.category-page-card,
.text-panel,
.spotlight-panel,
.side-panel {
  background: rgba(31, 37, 48, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.quick-search-card {
  padding: 18px;
}

.quick-search-card span {
  display: block;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.quick-search-card form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-mini-card:hover,
.category-card:hover,
.category-page-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.36);
}

.hero-mini-card img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #262b36, #111827);
}

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

.hero-mini-card strong {
  color: #ffffff;
  line-height: 1.35;
}

.hero-mini-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.text-panel h2,
.side-panel h2,
.footer-grid h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head p,
.text-panel p,
.category-page-card p,
.category-card p,
.footer-grid p,
.spotlight-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more,
.category-enter {
  color: var(--accent);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(31, 37, 48, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 16px 48px rgba(251, 191, 36, 0.1);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3140, #111827);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.72));
}

.poster-badge,
.poster-time {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  line-height: 1;
}

.poster-badge {
  top: 10px;
  left: 10px;
}

.poster-time {
  right: 10px;
  bottom: 10px;
}

.card-body {
  padding: 14px;
}

.card-body h3,
.card-body h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.card-body h3 a:hover,
.card-body h2 a:hover {
  color: var(--accent);
}

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

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

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

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(31, 37, 48, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.34);
}

.rank-number {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-row img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #262b36, #111827);
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #ffffff;
  font-weight: 800;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.spotlight-panel {
  padding: 28px;
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(31, 37, 48, 0.88)),
    rgba(31, 37, 48, 0.88);
}

.spotlight-panel h2 {
  margin: 14px 0;
  font-size: clamp(28px, 4vw, 46px);
}

.spotlight-panel .btn {
  margin-top: 24px;
}

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

.category-card,
.category-page-card {
  display: block;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card strong,
.category-page-title {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card div,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card div span,
.category-samples a {
  color: #f7f7f7;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.category-enter {
  display: inline-flex;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.18), transparent 25rem),
    linear-gradient(135deg, #050608, #161c27 62%, #0f1117);
}

.small-hero {
  padding: 76px 0 58px;
}

.small-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

.crumbs a {
  color: var(--accent);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(31, 37, 48, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}

.filter-panel select option {
  color: #111827;
}

.empty-result {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

.rank-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.rank-list-large .rank-row {
  grid-template-columns: 64px 72px minmax(0, 1fr) auto;
  padding: 13px 16px;
}

.rank-list-large .rank-row img {
  width: 72px;
  height: 96px;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

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

.movie-card-small {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}

.movie-card-small .poster img {
  height: 112px;
  aspect-ratio: auto;
}

.movie-card-small .poster-badge,
.movie-card-small .poster-time,
.movie-card-small .tag-row,
.movie-card-small .card-body p {
  display: none;
}

.detail-hero {
  padding: 52px 0 60px;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #262b36, #111827);
}

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

.detail-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: #111827;
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 72px);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  color: #cbd5e1;
}

.detail-meta span {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.16), rgba(0, 0, 0, 0.62));
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
}

.player-start {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(251, 191, 36, 0.32);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
}

.player-start span {
  margin-left: 6px;
  font-size: 34px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell.has-message .player-message {
  opacity: 1;
}

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

.text-panel {
  padding: 26px;
}

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

.site-footer {
  margin-top: 50px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #080a0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 220px;
  gap: 32px;
}

.footer-grid h2 {
  font-size: 18px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--accent);
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 64px;
  }

  .main-nav,
  .header-search {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    background: rgba(5, 6, 8, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(18px);
  }

  .main-nav {
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .header-search {
    top: 250px;
    width: auto;
    margin-left: 0;
  }

  body.menu-open .main-nav,
  body.menu-open .header-search {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-stage {
    min-height: 640px;
    height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 80px;
    padding-bottom: 100px;
  }

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

  .hero-strip {
    grid-template-columns: 1fr;
    margin-top: -38px;
  }

  .two-column,
  .rank-page-layout,
  .detail-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }
}

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

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

  .hero p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

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

  .hero-mini-list {
    grid-template-columns: 1fr;
  }

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

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .rank-list-large .rank-row {
    grid-template-columns: 42px 52px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

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

  .player-start {
    width: 72px;
    height: 72px;
  }
}
