* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --emerald: #34d399;
  --emerald-strong: #10b981;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --red: #f87171;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

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 20% 0%, rgba(16, 185, 129, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.11), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #052e2b;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.28);
}

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

.main-nav > a,
.nav-more > span,
.nav-panel a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-more:hover > span,
.nav-panel a:hover {
  color: var(--white);
  background: rgba(16, 185, 129, 0.14);
}

.nav-more {
  position: relative;
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 210px;
  padding: 10px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.nav-more:hover .nav-panel {
  display: grid;
  gap: 4px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  opacity: 0.36;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 64px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.11);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button {
  color: #041617;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.button-secondary {
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.26);
}

.button-ghost {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.20);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.section {
  margin: 60px 0;
}

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

.section-title h2,
.page-title h1 {
  margin: 14px 0 8px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title p,
.page-title p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.40);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  background: rgba(15, 23, 42, 0.9);
}

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

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

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #041617;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-meta span,
.detail-meta span,
.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 14px 0 8px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--emerald);
}

.movie-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

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

.category-card {
  min-height: 188px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 8%, rgba(52, 211, 153, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.70);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.36);
}

.category-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.25rem;
}

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

.category-card strong {
  margin-top: 18px;
  color: var(--emerald);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.36);
}

.rank-no {
  color: var(--emerald);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info strong {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: normal;
}

.filter-box {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.filter-box label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.82);
  padding: 0 14px;
  outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: rgba(52, 211, 153, 0.58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.page-title {
  padding: 54px 0 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #041617;
  background: rgba(2, 6, 23, 0.18);
  cursor: pointer;
  z-index: 2;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  font-size: 2rem;
}

.play-overlay.is-hidden {
  display: none;
}

.player-info,
.article-block {
  padding: 24px;
}

.player-info h1 {
  margin: 10px 0 14px;
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.player-info p,
.article-block p,
.detail-side p {
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-side {
  padding: 18px;
}

.detail-side img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 18px;
}

.detail-side h2,
.article-block h2 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.related-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.related-list img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}

.related-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.related-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.96));
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 28px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-grid a:not(.brand) {
  display: inline-block;
  margin: 0 12px 10px 0;
  color: var(--muted);
}

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

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.66);
}

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

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

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

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

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

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

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-more,
  .nav-panel {
    display: none;
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
  }

  .hero-content {
    min-height: 620px;
    padding: 34px 24px 80px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .rank-list,
  .category-grid,
  .footer-grid,
  .filter-box {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 86px;
  }
}
