:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --ink: #101827;
  --muted: #5b677a;
  --line: #e5edf5;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 237, 245, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.26);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.36), transparent 36%),
    linear-gradient(135deg, #0f766e 0%, #0d9488 48%, #0891b2 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.32;
}

.hero-glow.one {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -120px;
  background: #67e8f9;
}

.hero-glow.two {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -120px;
  background: #38bdf8;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: 72px 0 48px;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  animation: fadeUp 0.5s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #ecfeff;
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn.primary {
  color: var(--blue);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.btn.ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  transform: perspective(900px) rotateY(-4deg);
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 55%);
}

.hero-play,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 48px;
  background: #fff;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  width: min(820px, 100%);
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: #fff;
}

.hero-search button,
.hero-search a {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search a {
  color: #0f172a;
  background: #e0f2fe;
}

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

.section-block.alt {
  background: #fff;
}

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

.section-head.no-pad {
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--brand);
}

.section-link,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

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

.category-tile {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #eff6ff);
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-tile span,
.movie-body p,
.category-card-large p,
.ranking-card p,
.site-footer p,
.page-hero p,
.detail-one-line,
.article-card p,
.pager-row a {
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

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

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

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

.poster-play {
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 18px;
}

.movie-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.movie-body h3 a:hover,
.ranking-card h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--blue);
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 26px;
  padding: 3px 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.tag-row.large span {
  min-height: 32px;
  color: #0f766e;
  background: #ccfbf1;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 900;
}

.rank-title a {
  color: var(--blue);
  font-size: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  color: var(--brand);
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  line-height: 1.3;
}

.rank-info em {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.page-main {
  background: var(--bg);
}

.page-hero {
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.page-hero.slim {
  padding: 64px 0;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

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

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

.category-card-large h2,
.ranking-card h2,
.article-card h2 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  border-color: var(--line);
  background: #f8fafc;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.ranking-cover img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  font-weight: 900;
}

.detail-main {
  background: #fff;
}

.detail-hero {
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0f766e 55%, #2563eb);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.08));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
  font-size: 34px;
}

.player-shell.is-started .player-start {
  display: none;
}

.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  padding: 8px 12px;
  color: #fff;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.86);
  font-size: 14px;
}

.player-shell.is-error .player-error {
  display: block;
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
}

.detail-one-line {
  margin: 18px 0;
  color: #e0f2fe;
  font-size: 18px;
}

.detail-facts {
  margin: 20px 0;
}

.detail-content {
  background: #fff;
}

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

.article-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.article-card p {
  margin: 0;
  font-size: 17px;
}

.pager-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.pager-row a {
  flex: 1;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide.active,
  .detail-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .brand-text {
    font-size: 19px;
  }

  .hero-wrap {
    min-height: auto;
    padding: 48px 0 36px;
  }

  .hero-media {
    min-height: 260px;
    border-radius: 24px;
    transform: none;
  }

  .hero-media img {
    min-height: 260px;
  }

  .hero-search,
  .filter-bar,
  .footer-grid,
  .article-grid,
  .category-card-large,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-hero,
  .page-hero.slim {
    padding: 48px 0;
  }
}
