:root {
  --page-bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --orange: #f97316;
  --card: #ffffff;
  --dark: #020617;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 38%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.94));
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.nav-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
}

.nav-search input {
  padding: 9px 14px;
  border-radius: 999px;
}

.nav-search button {
  border: 0;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #cffafe;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a,
.mobile-panel input {
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-panel input {
  color: var(--text);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(37, 99, 235, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.28), transparent 34%), linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.68));
}

.hero-content {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  color: #fff;
  padding: 80px 0 120px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: #cffafe;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tag-row span {
  color: #0e7490;
  background: #ecfeff;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.24);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-panel,
.section-wrap,
.footer-grid {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -70px;
  position: relative;
  z-index: 4;
}

.quick-card,
.article-card,
.movie-card,
.category-tile,
.rank-row {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.quick-card {
  min-height: 150px;
  border-radius: 28px;
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.quick-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  right: -62px;
  bottom: -86px;
  opacity: 0.17;
  background: currentColor;
}

.accent-blue { color: var(--blue); }
.accent-green { color: var(--emerald); }
.accent-orange { color: var(--orange); }

.quick-card span {
  color: var(--muted);
  font-weight: 700;
}

.quick-card strong {
  color: var(--text);
  font-size: 24px;
}

.quick-card a {
  width: fit-content;
  color: currentColor;
  font-weight: 800;
}

.section-wrap {
  padding: 76px 0 0;
}

.soft-block {
  margin-top: 72px;
  padding: 64px 32px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff 42%, #ecfdf5);
}

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

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

.section-head a {
  color: var(--blue);
  font-weight: 800;
}

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

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

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

.rating {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 850;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  margin-bottom: 8px;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-body p {
  color: #475569;
  line-height: 1.7;
  min-height: 72px;
  margin: 10px 0 14px;
}

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

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

.category-tile {
  min-height: 138px;
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  background: #dbeafe;
}

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

.rank-title {
  font-weight: 850;
  font-size: 18px;
}

.rank-row p {
  color: #475569;
  margin: 6px 0;
  line-height: 1.65;
}

.page-hero {
  width: min(1220px, calc(100% - 40px));
  margin: 34px auto 0;
  color: #fff;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4 48%, #10b981);
  box-shadow: var(--shadow);
}

.mini-hero {
  padding: clamp(42px, 7vw, 80px);
}

.mini-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.05em;
}

.mini-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.64)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-inner {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 84px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cffafe;
  font-weight: 700;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-info p {
  max-width: 850px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.player-section {
  padding-top: 46px;
}

.player-box {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 38px;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.24);
}

.play-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.article-section {
  padding-top: 34px;
}

.article-card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
}

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

.article-card h2:not(:first-child) {
  margin-top: 34px;
}

.article-card p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
  margin: 0;
}

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

.info-list div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 750;
  line-height: 1.6;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h3 {
  color: #67e8f9;
  margin-top: 0;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 22px;
  color: #94a3b8;
}

[data-card].hidden {
  display: none;
}

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

  .menu-button {
    display: block;
  }

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

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

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

  .brand span:last-child {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding-top: 58px;
  }

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

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

  .movie-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }

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

  .rank-row {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    width: 78px;
    height: 62px;
  }

  .rank-row p {
    display: none;
  }

  .play-layer span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
