:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --cyan: #0891b2;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.narrow-container {
  width: min(880px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.logo-link,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-bright), var(--cyan));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.34);
}

.logo-text {
  display: grid;
  gap: 1px;
}

.logo-text strong {
  font-size: 22px;
  line-height: 1.1;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  background: #ccfbf1;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: #0f172a;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 44px 0 62px;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 44%, #eff6ff 100%);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.34;
}

.hero-glow-one {
  top: 40px;
  left: -80px;
  background: #2dd4bf;
}

.hero-glow-two {
  right: -120px;
  bottom: -90px;
  background: #60a5fa;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: stretch;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.64) 42%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 70px);
  bottom: clamp(28px, 6vw, 78px);
  z-index: 2;
  max-width: 620px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow,
.panel-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #5eead4;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 560px;
  margin: 18px 0 20px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-tags,
.tag-list,
.detail-meta,
.rank-meta,
.mini-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.rank-meta span,
.rank-meta a,
.mini-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal-bright), var(--cyan));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(8, 145, 178, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.text-link {
  min-height: 38px;
  padding: 0;
  color: var(--teal);
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

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

.hero-panel,
.ranking-card,
.article-card,
.player-card,
.overview-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.hero-panel h2,
.section-heading h2,
.page-hero h1,
.detail-intro h1,
.player-copy h2,
.article-card h2,
.overview-card h2,
.ranking-card h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-panel h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.hero-panel p,
.section-heading p,
.page-hero p,
.overview-card p,
.article-card p,
.player-copy p {
  color: var(--muted);
}

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

.hero-rank-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rank-list a:hover {
  background: #ccfbf1;
  transform: translateX(3px);
}

.hero-rank-list span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-bright), var(--cyan));
  color: #ffffff;
  font-weight: 900;
}

.hero-rank-list strong {
  line-height: 1.2;
}

.hero-rank-list small {
  color: var(--muted);
}

.hero-search,
.inline-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.hero-search input,
.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.large-search {
  max-width: 720px;
  margin: 24px auto 0;
}

.content-section {
  padding: 58px 0;
}

.soft-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

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

.section-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--teal);
  font-weight: 900;
}

.compact-heading {
  margin-bottom: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(20, 184, 166, 0.48);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster-link img,
.rank-poster img,
.overview-cover img,
.category-tile img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.category-tile img,
.overview-cover img,
.rank-poster img {
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.overview-card:hover .overview-cover img,
.rank-row:hover .rank-poster img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.card-meta span {
  color: var(--muted);
}

.card-content h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.card-content h2 a:hover,
.overview-card h2 a:hover,
.rank-main h2 a:hover {
  color: var(--teal);
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-list span {
  background: #f1f5f9;
  color: #475569;
}

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

.category-tile {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  min-height: 220px;
}

.category-tile div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.category-tile h2 {
  margin: 0;
  font-size: 26px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.mini-chip-list span {
  background: #ecfeff;
  color: var(--cyan);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.ranking-card {
  position: sticky;
  top: 102px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 78px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.compact-rank-list .rank-row {
  grid-template-columns: 42px 1fr;
}

.compact-rank-list .rank-poster,
.compact-rank-list .rank-score {
  display: none;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ccfbf1, #e0f2fe);
  color: var(--teal);
  font-weight: 950;
}

.rank-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e2e8f0;
}

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-main p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.rank-meta span,
.rank-meta a {
  background: #f1f5f9;
  color: #475569;
}

.rank-score {
  color: var(--cyan);
  font-size: 22px;
}

.page-hero {
  padding: 70px 0 56px;
  text-align: center;
  background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 45%, #eff6ff 100%);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 18px;
}

.category-hero,
.ranking-hero {
  text-align: left;
}

.category-hero p,
.ranking-hero p {
  margin-left: 0;
}

.category-hero .inline-search,
.ranking-hero .inline-search {
  max-width: 660px;
  margin-top: 24px;
}

.overview-grid {
  display: grid;
  gap: 22px;
}

.overview-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 18px;
}

.overview-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: #e2e8f0;
}

.overview-card h2 {
  font-size: 28px;
}

.overview-card ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 14px 0 8px;
  list-style: none;
}

.overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.overview-card li a {
  color: var(--text);
  font-weight: 750;
}

.detail-hero {
  padding: 48px 0 54px;
  background: radial-gradient(circle at top left, #ccfbf1 0, transparent 34%), linear-gradient(135deg, #f8fafc, #eff6ff);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
  background: #e2e8f0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal);
  font-weight: 800;
}

.detail-intro h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.detail-one-line {
  max-width: 760px;
  margin: 20px 0;
  color: #334155;
  font-size: 20px;
}

.detail-meta span {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--line);
}

.large-tags {
  margin: 18px 0 24px;
}

.player-card {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #020617;
  cursor: pointer;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.75), rgba(15, 118, 110, 0.2));
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 32px;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.42);
}

.player-copy {
  padding: 24px;
}

.player-copy h2 {
  font-size: 28px;
}

.article-card {
  padding: clamp(22px, 4vw, 38px);
}

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

.article-card p {
  font-size: 18px;
}

.hidden {
  display: none !important;
}

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

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

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

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

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

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .ranking-card {
    position: static;
  }

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

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

  .menu-button {
    display: inline-block;
  }

  .hero-section {
    padding-top: 24px;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 520px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.9));
  }

  .hero-content {
    left: 24px;
    right: 24px;
  }

  .category-grid,
  .two-column-grid,
  .footer-grid,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 130px 1fr;
  }

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

  .rank-row {
    grid-template-columns: 48px 64px 1fr;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow-container {
    width: min(100% - 24px, var(--container));
  }

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

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text small {
    display: none;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 500px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p,
  .detail-one-line,
  .article-card p {
    font-size: 16px;
  }

  .hero-panel,
  .ranking-card,
  .article-card,
  .player-card,
  .overview-card {
    border-radius: 20px;
  }

  .section-heading {
    display: grid;
  }

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

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

  .category-tile img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .detail-grid {
    gap: 24px;
  }

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

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-poster {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}
