:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --red: #ef4444;
  --orange: #f97316;
  --amber: #f59e0b;
  --green: #22c55e;
  --radius: 20px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(239, 68, 68, 0.15), transparent 28rem),
    radial-gradient(circle at 85% 5%, rgba(59, 130, 246, 0.16), transparent 26rem),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.35);
}

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

.desktop-nav a,
.mobile-panel nav a {
  padding: 10px 16px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.header-search input,
.mobile-panel input,
.search-panel input,
.filter-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(2, 6, 23, 0.58);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-panel input:focus,
.filter-input:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.header-search button,
.mobile-panel button,
.search-panel button,
.hero-btn,
.primary-link,
.player-start {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  height: 42px;
  padding: 0 16px;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-panel button:hover,
.hero-btn:hover,
.primary-link:hover,
.player-start:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #e2e8f0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel button {
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(194, 65, 12, 0.95), rgba(245, 158, 11, 0.82), rgba(14, 165, 233, 0.38));
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
  z-index: -2;
}

.hero-bg.active {
  opacity: 0.35;
  transform: scale(1);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 76px 0 94px;
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-kicker,
.page-kicker,
.section-title span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.65s ease both;
}

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

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

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

.hero-btn,
.hero-ghost,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.hero-ghost {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  transition: 0.2s ease;
}

.hero-ghost:hover {
  color: var(--orange);
  background: #fff;
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 470px;
}

.hero-poster {
  position: absolute;
  width: 65%;
  max-width: 340px;
  aspect-ratio: 3 / 4.15;
  right: 10%;
  top: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

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

.hero-stack {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 72%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-stack h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-stack p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.2s ease;
}

.hero-dots button.active {
  width: 52px;
  background: #fff;
}

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

.section {
  padding: 58px 0;
}

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

.section-title h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.section-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

.section-more:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.2);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px 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(59, 130, 246, 0.55);
  background: rgba(15, 23, 42, 0.94);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.05);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78), transparent 55%);
}

.poster-score {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
}

.movie-info {
  padding: 16px;
}

.movie-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card h3 a:hover {
  color: #60a5fa;
}

.movie-card p {
  min-height: 3.3em;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(59, 130, 246, 0.16)), rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 72px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 18px;
  padding: 12px;
  transition: 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(59, 130, 246, 0.58);
  transform: translateX(5px);
}

.rank-no {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rank-score {
  color: #fde68a;
  font-size: 22px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(59, 130, 246, 0.16));
}

.page-hero .page-shell {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 920px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel,
.search-panel {
  margin: 30px 0;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  padding: 18px;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tags button {
  border: 1px solid var(--line);
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.45);
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-tags button:hover,
.filter-tags button.active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.detail-hero {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(2, 6, 23, 0.96));
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-lead {
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.player-wrap {
  padding: 54px 0 34px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.75), rgba(15, 23, 42, 0.45));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-box.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  font-size: 18px;
}

.article-section {
  padding: 32px 0;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  padding: 28px;
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 17px;
}

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

.compact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.76);
  transition: 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.5);
}

.compact-card img {
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
}

.compact-card span {
  display: block;
  padding: 11px 12px 3px;
  font-weight: 900;
  line-height: 1.35;
}

.compact-card em {
  display: block;
  padding: 0 12px 12px;
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel button {
  padding: 0 22px;
}

.empty-state {
  display: none;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

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

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

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

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  padding: 18px 0 28px;
  text-align: center;
}

.hidden-card {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-stage {
    min-height: 380px;
  }

  .hero-poster {
    right: 5%;
  }

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

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 52px 0 72px;
  }

  .hero-stage {
    min-height: 320px;
  }

  .hero-poster {
    width: 72%;
    right: 0;
  }

  .hero-stack {
    width: 88%;
  }

  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .section-title {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

  .rank-item {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 18px;
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }

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

  .article-card {
    padding: 22px;
  }

  .search-panel form,
  .mobile-panel form {
    flex-direction: column;
  }

  .search-panel button,
  .mobile-panel button {
    height: 44px;
  }

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