:root {
  --bg: #09090b;
  --panel: #111114;
  --panel-strong: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #a1a1aa;
  --text: #f4f4f5;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --violet: #7c3aed;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.16), transparent 30rem),
    linear-gradient(180deg, #0b0b10 0%, var(--bg) 48%, #050506 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: #71717a;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #d4d4d8;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(39, 39, 42, 0.72);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.74);
}

.nav-search input,
.mobile-menu input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  background: rgba(9, 9, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-search input {
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-search button,
.primary-btn,
.secondary-btn,
.play-button,
.filter-panel button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.primary-btn,
.play-button,
.filter-panel button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.nav-search button {
  padding: 10px 14px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
}

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

.primary-btn:hover,
.secondary-btn:hover,
.play-button:hover,
.nav-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 24, 27, 0.74);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
}

.mobile-menu {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #d4d4d8;
}

.mobile-menu input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px 24px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(18, 18, 24, 0.94), rgba(20, 22, 34, 0.78));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.28), transparent 22rem),
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.32), transparent 26rem),
    linear-gradient(115deg, rgba(9, 9, 11, 0.86), rgba(9, 9, 11, 0.38));
  z-index: 0;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  color: #d4d4d8;
}

.hero .lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.8;
  max-width: 620px;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.info-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cffafe;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}

.hero-poster {
  display: grid;
  place-items: center;
}

.hero-poster a {
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
  transform: rotate(2deg);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.18));
}

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

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

.hero-dots button {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.section {
  margin-top: 42px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--cyan);
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.68);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(39, 39, 42, 0.78);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.24), transparent 9rem),
    linear-gradient(135deg, #18181b, #09090b);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #a1a1aa;
  font-size: 12px;
}

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

.movie-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: #c4c4cc;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #dbeafe;
  padding: 5px 8px;
  font-size: 12px;
}

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

.category-card {
  min-height: 172px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(24, 24, 27, 0.86), rgba(15, 23, 42, 0.76));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.32);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #c4c4cc;
  line-height: 1.65;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 78px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.68);
}

.rank-no {
  font-size: 24px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}

.rank-item img {
  width: 78px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #18181b, #09090b);
}

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

.rank-item p {
  margin: 0;
  color: #a1a1aa;
  line-height: 1.5;
}

.rank-heat {
  padding: 8px 10px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.page-title {
  padding: 48px 0 18px;
}

.page-title p {
  max-width: 780px;
  color: #c4c4cc;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 150px;
  gap: 12px;
  padding: 14px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(24, 24, 27, 0.68);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
}

.filter-panel button {
  padding: 0 18px;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(9, 9, 11, 0.1), rgba(9, 9, 11, 0.38));
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  pointer-events: auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-size: 32px;
  padding-left: 6px;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 14rem),
    rgba(24, 24, 27, 0.72);
}

.detail-title h1 {
  margin-top: 14px;
}

.detail-title p {
  color: #c4c4cc;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #d4d4d8;
}

.info-list span {
  color: #71717a;
}

.article-box {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(24, 24, 27, 0.68);
}

.article-box h2 {
  margin: 0 0 14px;
}

.article-box p {
  color: #d4d4d8;
  line-height: 1.9;
}

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

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  font-size: 22px;
}

.footer-grid p,
.footer-grid a {
  color: #a1a1aa;
  line-height: 1.8;
}

.footer-grid span {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
}

.footer-grid a {
  display: inline-block;
  margin: 0 12px 8px 0;
}

.empty-state {
  display: none;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: #a1a1aa;
  text-align: center;
  background: rgba(24, 24, 27, 0.68);
}

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

  .hero-slide {
    grid-template-columns: 1fr 0.72fr;
    padding: 42px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .nav-shell {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-poster {
    align-items: start;
  }

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

  .rank-list,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .hero {
    padding-top: 24px;
  }

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

  .hero-slide {
    padding: 24px;
  }

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

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

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

  .rank-heat {
    display: none;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }
}
