:root {
  color-scheme: light;
  --cyan: #0891b2;
  --cyan-deep: #0e7490;
  --blue: #2563eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 80px rgba(15, 23, 42, 0.20);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50), var(--white));
  color: var(--slate-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-800);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a,
.mobile-panel a,
.footer-links a {
  color: var(--slate-700);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.nav-search {
  width: min(280px, 32vw);
  position: relative;
}

.nav-search input,
.search-box input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  padding: 12px 16px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.search-box input:focus,
.filter-row select:focus {
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

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

.hero {
  position: relative;
  height: 560px;
  margin: 32px 0 72px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: radial-gradient(circle at 18% 20%, rgba(8, 145, 178, 0.45), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.6s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.35) 55%, rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(34px, 7vw, 76px);
  max-width: 760px;
  color: white;
}

.hero-tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--cyan);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.15rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.8;
  margin: 0 0 26px;
}

.hero-actions,
.section-actions,
.card-actions,
.breadcrumb,
.meta-row,
.tag-list,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cyan);
  color: white;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--cyan-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.32);
}

.button.secondary {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: none;
}

.button.light {
  background: white;
  color: var(--cyan-deep);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: white;
}

.section {
  margin: 72px 0;
}

.section.compact {
  margin: 42px 0;
}

.section-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
}

.section-card.cyan {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan-deep);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-summary {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

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

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

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

.scroller {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.scroller-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.scroller-track .movie-card {
  width: 280px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(8, 145, 178, 0.2);
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.poster {
  position: relative;
  min-height: 272px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.movie-card.large .poster {
  min-height: 326px;
}

.movie-card.horizontal .poster {
  min-height: 100%;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.58));
}

.poster .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  background: rgba(8, 145, 178, 0.92);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover,
.text-link:hover {
  color: var(--cyan-deep);
}

.movie-card p {
  color: var(--slate-600);
  line-height: 1.7;
  margin: 0;
}

.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  -webkit-line-clamp: 4;
}

.meta-row {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.meta-pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 5px 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.category-card {
  position: relative;
  display: block;
  min-height: 210px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #2563eb);
  color: white;
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -35% -12% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: var(--shadow-sm);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.rank-cover {
  height: 78px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #dbeafe;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 850;
}

.page-hero {
  margin: 34px 0 42px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 10% 20%, rgba(8, 145, 178, 0.24), transparent 28%), linear-gradient(135deg, #f8fafc, #ecfeff 45%, #eff6ff);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-sm);
}

.page-hero h1 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.page-hero p {
  max-width: 850px;
  margin: 18px 0 0;
  color: var(--slate-600);
  line-height: 1.9;
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 24px 0 0;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--cyan-deep);
  font-weight: 700;
}

.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.filter-row select {
  max-width: 180px;
  border-radius: 14px;
  padding-right: 34px;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  border-radius: 18px;
  background: var(--slate-50);
  color: var(--slate-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: cover;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.12), rgba(2, 6, 23, 0.45));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.play-layer.hidden {
  opacity: 0;
}

.play-button {
  pointer-events: auto;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 24px 55px rgba(8, 145, 178, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 30px 70px rgba(8, 145, 178, 0.44);
}

.player-meta,
.detail-body,
.sidebar-card {
  padding: clamp(18px, 3vw, 28px);
}

.player-status {
  margin-top: 14px;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.detail-intro {
  padding: 18px;
  border-radius: 16px;
  background: #ecfeff;
  color: var(--slate-800);
  font-weight: 700;
  line-height: 1.85;
  margin: 22px 0;
}

.article-section {
  margin-top: 32px;
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 900;
}

.article-section p {
  margin: 0;
  color: var(--slate-700);
  line-height: 2;
  white-space: pre-line;
}

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

.sidebar-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--slate-700);
}

.sidebar-poster {
  height: 58px;
  border-radius: 12px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.sidebar-link strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-link span {
  color: var(--slate-500);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 86px;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-inner {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-title {
  color: white;
  font-weight: 850;
  margin: 0 0 14px;
}

.footer-copy {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

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

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

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

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

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

  .hero {
    height: 520px;
    margin-top: 18px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

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

  .movie-card.horizontal {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 46px 86px minmax(0, 1fr);
  }

  .rank-item .button {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .site-nav {
    min-height: 64px;
  }

  .logo {
    font-size: 1.22rem;
  }

  .hero {
    height: 500px;
    border-radius: 18px;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .hero-actions,
  .section-head,
  .search-box {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .poster {
    min-height: 220px;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .rank-item .button {
    grid-column: 1 / -1;
  }

  .filter-row select {
    max-width: 100%;
  }
}
