* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 34%), var(--bg);
  color: var(--text);
  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;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 320px);
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.site-nav a:hover,
.footer-links a:hover,
.breadcrumb a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 7px 10px;
}

.global-search {
  position: relative;
}

.global-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
}

.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.search-result-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: rgba(148, 163, 184, 0.12);
}

.search-result-item img {
  width: 44px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  color: #ffffff;
  line-height: 1.35;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 4%, rgba(2, 6, 23, 0.82) 44%, rgba(2, 6, 23, 0.26) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 86px;
  max-width: 720px;
}

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

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.quick-search-inner p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.tag-row span {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
}

.primary-btn {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.26);
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.primary-btn.small,
.ghost-btn.small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.ghost-btn:hover {
  border-color: rgba(245, 158, 11, 0.6);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 32px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.78);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 240ms ease, background 240ms ease;
}

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

.quick-search-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.quick-search-inner,
.page-wrap,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.quick-search-inner h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.page-wrap {
  padding-top: 44px;
  padding-bottom: 68px;
}

.inner-page {
  padding-top: 28px;
}

.content-section {
  margin-bottom: 54px;
}

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

.section-heading.compact {
  align-items: start;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-heading > a {
  color: var(--accent);
  font-weight: 800;
}

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

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(59, 130, 246, 0.12));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

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

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.92);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--accent);
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin: 8px 0;
}

.card-desc {
  min-height: 42px;
  margin: 0;
}

.card-body .tag-row {
  margin: 12px 0 0;
}

.card-body .tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 24px;
  align-items: start;
}

.hot-panel,
.category-panel,
.page-hero,
.detail-info,
.detail-side .side-card,
.player-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

.hot-panel,
.category-panel {
  padding: 22px;
}

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

.hot-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
}

.hot-row:hover {
  background: rgba(245, 158, 11, 0.10);
}

.hot-row span {
  color: var(--accent);
  font-weight: 900;
}

.hot-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.category-grid,
.category-list-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.category-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-tile,
.category-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
}

.category-tile {
  padding: 16px;
}

.category-tile:hover,
.category-card:hover {
  border-color: rgba(245, 158, 11, 0.48);
}

.category-tile strong,
.category-main-link h2 {
  display: block;
  color: #ffffff;
  margin: 0 0 6px;
}

.category-tile span,
.category-main-link p {
  color: var(--muted);
  font-size: 13px;
}

.category-card {
  padding: 22px;
}

.category-main-link p {
  margin: 8px 0 0;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #cbd5e1;
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--accent);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 42px;
  background: radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.16), transparent 34%), rgba(15, 23, 42, 0.78);
}

.small-hero {
  margin-bottom: 28px;
}

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

.breadcrumb strong {
  color: #e2e8f0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin: 0 0 24px;
}

.no-results {
  color: var(--muted);
  padding: 28px 0;
}

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

.detail-main {
  min-width: 0;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.14));
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.big-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 16px 44px rgba(245, 158, 11, 0.35);
  padding-left: 5px;
  font-size: 28px;
}

.detail-info {
  margin-top: 20px;
  padding: 28px;
}

.lead-text {
  color: var(--accent);
  font-size: 18px;
  margin: 16px 0 20px;
}

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

.info-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.28);
}

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

.info-grid strong {
  display: block;
  color: #ffffff;
  margin-top: 4px;
}

.detail-tags {
  margin: 18px 0 24px;
}

.text-block {
  margin-top: 26px;
}

.text-block h2 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 22px;
}

.text-block p {
  color: #cbd5e1;
  margin: 0;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

.detail-side .side-card {
  margin-top: 18px;
  padding: 20px;
}

.detail-side h2 {
  margin: 0 0 8px;
}

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

.ranking-grid .movie-card:nth-child(-n + 3) {
  border-color: rgba(245, 158, 11, 0.62);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
  }

  .global-search {
    grid-column: 1 / -1;
  }

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

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-inner,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-wrap,
  .quick-search-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

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

  .page-hero,
  .detail-info {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
}
