:root {
  --bg: #f7fafc;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --gold: #f59e0b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

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

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #00111a;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.42);
}

.brand-text,
.footer-logo {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #67e8f9;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
}

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

.header-search input,
.mobile-search input,
.search-hero-form input,
.card-filter input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: none;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-hero-form input:focus,
.card-filter input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button,
.search-hero-form button,
.primary-button,
.ghost-button,
.play-overlay button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-hero-form button,
.primary-button {
  color: #06121f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  padding: 11px 18px;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover,
.primary-button:hover,
.ghost-button:hover,
.play-overlay button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

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

.section,
.hero-section,
.page-hero,
.detail-layout,
.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  padding: 34px 0 52px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: center;
  padding: clamp(26px, 5vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.36), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  z-index: 0;
}

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

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.category-pill,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.24);
  padding: 7px 11px;
}

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

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 18px;
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  gap: 16px;
  align-items: stretch;
}

.hero-main-poster,
.hero-side-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.hero-side-card {
  align-self: end;
  padding: 14px;
  color: #fff;
  backdrop-filter: blur(16px);
}

.hero-side-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  object-fit: cover;
}

.hero-side-card strong {
  display: block;
  margin: 12px 0 4px;
}

.hero-controls {
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: #22d3ee;
  opacity: 1;
}

.section {
  padding: 52px 0;
}

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

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-subtitle,
.page-hero p,
.category-card p,
.movie-card p,
.detail-copy p,
.search-tip {
  color: var(--muted);
}

.more-link {
  color: #0891b2;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #155e75 48%, #2563eb);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -44px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.category-card:hover,
.movie-card:hover,
.poster-link:hover,
.rank-item:hover {
  transform: translateY(-6px);
}

.category-card strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 20px;
}

.category-card h3,
.movie-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.category-card p {
  color: rgba(255, 255, 255, 0.78);
  margin: 12px 0 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
  opacity: 0.82;
}

.duration,
.play-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
}

.duration {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.play-badge {
  left: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
}

.movie-card-body {
  padding: 17px;
}

.movie-card h3 a:hover {
  color: #0891b2;
}

.movie-card p {
  min-height: 3.2em;
  margin: 10px 0 14px;
  font-size: 0.95rem;
}

.card-meta {
  margin-bottom: 9px;
}

.card-meta span {
  color: #0e7490;
  background: #ecfeff;
  padding: 4px 8px;
}

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

.tag-row span {
  color: #475569;
  background: #f1f5f9;
  padding: 4px 8px;
}

.rank-section {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #020617);
  padding: 60px 0;
  margin: 28px 0;
}

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

.rank-section .section-title,
.rank-section .section-subtitle {
  color: #fff;
}

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

.rank-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.rank-panel h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 84px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.16);
}

.rank-top .rank-number {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-size: 0.88rem;
}

.page-hero {
  padding: 42px 0 16px;
}

.page-hero-card,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #155e75 54%, #2563eb);
  box-shadow: var(--shadow);
}

.page-hero-card {
  padding: clamp(30px, 5vw, 58px);
}

.page-hero h1 {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.card-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  margin: 22px 0 6px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.card-filter input {
  color: var(--text);
  background: #f8fafc;
}

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

.category-pill {
  color: #0e7490;
  background: #ecfeff;
  padding: 6px 12px;
}

.detail-hero {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 48px);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.28), transparent 26rem);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  width: 100%;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.player-section {
  padding: 38px 0 22px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76)),
    radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 34rem);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.play-overlay button {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: #05111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.44);
  font-size: 2rem;
}

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

.content-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.article-box,
.side-box {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

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

.article-box p {
  color: #334155;
  font-size: 1.02rem;
}

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

.poster-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.22s ease, background 0.22s ease;
}

.poster-link:hover {
  background: #ecfeff;
}

.poster-link img {
  width: 88px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.poster-link strong,
.poster-link span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-link span {
  color: var(--muted);
  font-size: 0.88rem;
}

.search-hero-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

.search-hero-form input {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
}

.search-results-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.empty-state {
  padding: 42px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .header-search {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

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

  .hero-media {
    max-width: 680px;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
  }

  .header-search {
    display: none;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-slide {
    padding-bottom: 94px;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-main-poster img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-side-card {
    display: none;
  }

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

  .section-head,
  .page-hero-head,
  .search-results-title {
    display: block;
  }

  .search-hero-form,
  .card-filter {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .section,
  .hero-section,
  .page-hero,
  .player-section {
    width: min(100% - 22px, 1200px);
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.15rem;
  }

  .category-grid,
  .category-summary-grid,
  .movie-grid,
  .rank-columns {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 78px 1fr;
  }

  .content-panel {
    width: min(100% - 22px, 1200px);
  }
}
