:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(59, 130, 246, 0.26);
  --border-strong: rgba(59, 130, 246, 0.48);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.26), transparent 32rem),
    radial-gradient(circle at 78% 8%, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.36);
}

.desktop-nav,
.quick-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.quick-nav a,
.mobile-links a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 14px;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.quick-nav a:hover,
.mobile-links a:hover,
.desktop-nav a.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.42);
}

.quick-nav {
  margin-left: auto;
}

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

.header-search input,
.mobile-search input,
.filter-bar input {
  width: 240px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 14px;
  outline: none;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 10px 14px;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.header-search button,
.mobile-search button,
.sort-button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.sort-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  padding: 8px 12px;
}

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

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

.mobile-search input {
  flex: 1;
  width: auto;
}

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

.hero-section {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
}

.hero-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: 60px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(2, 6, 23, 0.52) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(59, 130, 246, 0.26), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.52));
}

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

.hero-eyebrow,
.detail-kicker,
.category-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-size: 13px;
}

.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  padding: 6px 10px;
  font-size: 12px;
}

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

.ghost-button {
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: rgba(15, 23, 42, 0.72);
}

.ghost-button:hover {
  border-color: var(--cyan);
  background: rgba(37, 99, 235, 0.24);
}

.hero-poster {
  justify-self: end;
  width: min(390px, 100%);
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

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

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.48);
  cursor: pointer;
}

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

.hero-thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  padding: 10px;
}

.hero-thumb:hover {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(30, 41, 59, 0.84);
}

.hero-thumb img {
  width: 62px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  min-width: 0;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-block {
  width: min(1280px, calc(100% - 32px));
  margin: 56px auto;
}

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

.section-title h2,
.detail-aside h2,
.side-recommend h2,
.detail-section h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-title a,
.text-link {
  color: #93c5fd;
}

.section-title a:hover,
.text-link:hover {
  color: #67e8f9;
}

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

.category-card,
.category-wide-card,
.side-recommend,
.detail-article,
.detail-aside {
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.58));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.category-card {
  padding: 20px;
}

.category-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}

.category-main span {
  font-size: 19px;
  font-weight: 800;
}

.category-main strong {
  color: #67e8f9;
  font-size: 12px;
}

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

.category-sample {
  display: grid;
  gap: 7px;
}

.category-sample a {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.64);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: rgba(2, 6, 23, 0.42);
  transition: 0.2s ease;
}

.movie-card:hover .play-mark,
.poster-link:focus .play-mark {
  opacity: 1;
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.72);
  color: #bfdbfe;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-kicker,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 12px;
}

.card-body h3 {
  margin: 8px 0 9px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.compact-card .poster-link {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.compact-card .card-body {
  min-width: 0;
  padding: 2px 0;
}

.compact-card .card-body h3 {
  overflow: hidden;
  margin-top: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.rank-link {
  display: grid;
  grid-template-columns: 46px 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px;
  transition: 0.2s ease;
}

.rank-link:hover {
  border-color: rgba(34, 211, 238, 0.52);
  background: rgba(30, 41, 59, 0.78);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #22d3ee);
  color: #ffffff;
  font-weight: 800;
}

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

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

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

.rank-text strong {
  color: #ffffff;
  font-size: 15px;
}

.rank-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.side-recommend,
.detail-aside,
.detail-article {
  padding: 22px;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.78));
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 46px;
}

.small-hero h1,
.category-hero h1 {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.filter-bar input {
  width: min(460px, 100%);
}

.sort-button {
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: rgba(15, 23, 42, 0.72);
}

.sort-button.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.no-results {
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  color: #bfdbfe;
  padding: 36px;
  text-align: center;
}

.wide-category-list {
  display: grid;
  gap: 18px;
}

.category-wide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.category-wide-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-wide-card p {
  margin: 0 0 16px;
  color: #94a3b8;
  line-height: 1.7;
}

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

.poster-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.search-list {
  margin-top: 0;
}

.detail-hero {
  padding: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.detail-meta span {
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  padding: 9px 12px;
  font-size: 14px;
}

.wide-tags {
  margin-bottom: 26px;
}

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 28px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.player-shell video,
.player-layer,
.player-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
  z-index: 1;
}

.player-layer {
  z-index: 2;
  cursor: pointer;
}

.player-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.player-layer img {
  object-fit: cover;
}

.player-layer-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.82));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-size: 32px;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 46px rgba(37, 99, 235, 0.42);
  cursor: pointer;
}

.player-layer strong {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 26px;
  z-index: 3;
  font-size: clamp(22px, 4vw, 42px);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

.detail-section + .detail-section {
  margin-top: 28px;
}

.detail-section p {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.sticky-side {
  position: sticky;
  top: 92px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.98));
}

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

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px 0 28px;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .desktop-nav {
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 42px;
  }

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

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

  .sticky-side {
    position: static;
  }

  .category-wide-card {
    grid-template-columns: 1fr;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 28px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 70vw);
  }

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

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

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

  .compact-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

  .rank-link {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }

  .rank-link img {
    width: 72px;
    height: 52px;
  }

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

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