:root {
  color-scheme: light;
  --page-bg: #f8fbff;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --line-soft: rgba(15, 23, 42, 0.08);
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --gold: #f59e0b;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 46%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(20, 184, 166, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.top-search input,
.mobile-search input,
.hero-search input {
  width: 210px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus {
  border-color: rgba(13, 148, 136, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

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

.mobile-nav.is-open {
  display: grid;
}

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

.hero-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 70vh;
  margin: 28px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 92%);
  padding: 76px 66px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #5eead4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-list,
.side-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.side-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  background: rgba(204, 251, 241, 0.76);
}

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

.primary-button,
.ghost-button,
.ghost-light-button,
.rank-action,
.tile-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 13px 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 66px;
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #5eead4;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.panel-title {
  font-size: 20px;
  font-weight: 900;
}

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

.glass-section {
  background: rgba(255, 255, 255, 0.38);
}

.soft-section {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.78), rgba(239, 246, 255, 0.86));
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--teal-dark);
  font-size: 15px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

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

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(100, 116, 139, 0.55);
}

.movie-info h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-content h3 a:hover,
.category-feature-head a:hover,
.breadcrumb a:hover {
  color: var(--teal);
}

.movie-info p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #475569;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-list .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-list .movie-info p,
.hero-panel .tag-list {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-index {
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.55;
}

.rank-action {
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.category-feature-list {
  display: grid;
  gap: 26px;
}

.category-feature {
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-card);
}

.category-feature-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.category-feature h3 {
  margin: 0;
  font-size: 24px;
}

.category-feature p {
  margin: 0 0 20px;
  color: #475569;
}

.page-hero {
  margin-top: 0;
  padding: 96px 0 86px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(13, 148, 136, 0.72)),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.72), transparent 34rem);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

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

.category-tile {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.tile-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 150px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.tile-covers a {
  overflow: hidden;
}

.tile-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-body {
  padding: 22px;
}

.tile-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.tile-body p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.7;
}

.tile-link {
  color: var(--teal-dark);
}

.category-spotlight {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.category-spotlight img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
}

.category-spotlight h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.category-spotlight p {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.91), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 56%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.watch-section {
  padding: 60px 0;
  background: #020617;
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.80), rgba(2, 6, 23, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 20px 48px rgba(20, 184, 166, 0.34);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 42px);
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

.watch-side {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
}

.watch-side h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.watch-side p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.ghost-light-button {
  margin-top: 22px;
  padding: 12px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

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

.detail-article,
.info-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.info-box h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

.detail-article p {
  margin: 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.detail-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.info-box {
  padding: 24px;
}

.info-box dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.info-box dt {
  color: var(--text-muted);
}

.info-box dd {
  margin: 0;
  font-weight: 750;
}

.detail-tags a {
  margin-bottom: 8px;
}

.hero-search {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero-search input {
  width: min(560px, 100%);
  padding: 15px 20px;
}

.search-status {
  margin-bottom: 22px;
  color: #334155;
  font-size: 20px;
  font-weight: 800;
}

.search-results:not(:empty) + .default-search-list {
  display: none;
}

.site-footer {
  padding: 46px 0;
  color: #e2e8f0;
  background: #020617;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer .brand {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-content: start;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-carousel,
  .watch-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .panel-title {
    grid-column: 1 / -1;
  }

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

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

  .brand {
    font-size: 19px;
  }

  .hero-carousel {
    width: 100%;
    margin: 0;
  }

  .hero-stage {
    min-height: 570px;
    border-radius: 0 0 26px 26px;
  }

  .hero-content {
    width: 100%;
    padding: 58px 24px 92px;
  }

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

  .hero-panel {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

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

  .category-spotlight,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-index {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .hero-search,
  .mobile-search {
    flex-direction: column;
  }

  .hero-search input,
  .mobile-search input {
    width: 100%;
  }

  .detail-article,
  .info-box,
  .watch-side,
  .category-feature {
    padding: 20px;
  }
}
