:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0f172a;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(56, 189, 248, 0.08), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #030712 42%, #0f172a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #facc15);
  color: #111827;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #d1d5db;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-search input {
  width: 210px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 0 14px;
  outline: none;
}

.nav-search input:focus {
  border-color: rgba(249, 115, 22, 0.8);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.btn,
.ghost-btn,
.filter-row button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-search button,
.btn {
  color: #ffffff;
  background: var(--accent);
  padding: 10px 16px;
}

.nav-search button:hover,
.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 42px;
  height: 42px;
  border-radius: 13px;
  cursor: pointer;
}

main {
  min-height: 68vh;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding-top: 68px;
}

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

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

.hero-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) blur(8px);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(3, 7, 18, 0.68) 55%, #030712 100%),
    radial-gradient(circle at 22% 42%, rgba(249, 115, 22, 0.24), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.05fr 0.58fr;
  gap: 44px;
  align-items: center;
  padding: 92px 0 72px;
}

.hero-kicker,
.section-kicker,
.breadcrumb {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-list span {
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.13);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-poster-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.hero-poster-caption strong {
  display: block;
  font-size: 22px;
}

.hero-poster-caption small {
  color: #fed7aa;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(15, 23, 42, 0.28));
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 780px;
}

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

.movie-card {
  min-width: 0;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.corner-tag,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 10px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-info h3 {
  margin: 12px 0 4px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #fb923c;
}

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

.card-desc {
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 170px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 10%, rgba(249, 115, 22, 0.24), transparent 11rem),
    rgba(15, 23, 42, 0.8);
  padding: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.55);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  padding: 148px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(249, 115, 22, 0.2), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.filter-card {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.45fr));
  gap: 12px;
}

.filter-row input,
.filter-row select {
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.72);
  padding: 0 14px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: rgba(249, 115, 22, 0.76);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.empty-state {
  display: none;
  margin-top: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-card a {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 124px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.75);
  padding: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.52);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #111827;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-size: 18px;
  font-weight: 1000;
}

.rank-card img {
  width: 86px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-card p,
.rank-card strong {
  display: block;
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.detail-hero {
  padding: 112px 0 54px;
  background:
    radial-gradient(circle at 16% 18%, rgba(249, 115, 22, 0.24), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(3, 7, 18, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 38px;
  align-items: start;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-info .intro {
  color: #d1d5db;
  font-size: 18px;
  margin: 0 0 22px;
}

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

.info-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  padding: 12px 14px;
}

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

.info-item strong {
  color: #ffffff;
}

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

.player-box {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.player-start span {
  transform: translateX(3px);
  font-size: 34px;
}

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

.content-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.article-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.75);
  padding: 28px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #d1d5db;
}

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

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.related-item img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.related-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.related-item p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
}

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

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.92);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr;
  gap: 28px;
}

.footer-inner p {
  color: var(--subtle);
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 13px;
}

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

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

  .hero-content,
  .detail-layout,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 380px;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-panel {
    position: absolute;
    top: 62px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(3, 7, 18, 0.97);
    box-shadow: var(--shadow);
    padding: 12px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
    border-radius: 14px;
  }

  .nav-link.active {
    background: rgba(249, 115, 22, 0.13);
  }

  .nav-search {
    display: grid;
    grid-template-columns: 1fr auto;
    margin: 10px 0 0;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 86px 0 86px;
    gap: 26px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }

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

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

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

  .page-hero {
    padding: 118px 0 46px;
  }

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

  .detail-layout {
    gap: 24px;
  }

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

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

  .player-box {
    border-radius: 18px;
  }

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

  .content-panel {
    gap: 20px;
  }

  .article-card,
  .side-card {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
