:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --cyan: #0891b2;
  --dark: #020617;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

.container-custom {
  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(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span {
  font-size: 20px;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: #ccfbf1;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #334155;
  background: #f1f5f9;
}

.hero-slider {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(20, 184, 166, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 44%, rgba(2, 6, 23, 0.65) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

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

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 660px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.chip-row,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 18px 35px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(13, 148, 136, 0.36);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.search-band {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.search-band.inner {
  margin-top: -28px;
}

.site-search,
.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.site-search input,
.filter-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
}

.site-search button,
.chip-row button {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: #0d9488;
  transition: 0.25s ease;
}

.chip-row button {
  color: #0f766e;
  background: #ccfbf1;
}

.site-search button:hover,
.chip-row button:hover,
.chip-row button.is-active {
  color: #fff;
  background: #0f766e;
}

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

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

.section-head a {
  color: #0d9488;
  font-weight: 800;
}

.section-title,
.rank-panel h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

.video-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.card-link {
  display: block;
  height: 100%;
}

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

.poster-wrap img,
.compact-card img,
.category-tile img,
.category-cover img,
.ranking-card img,
.poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover img,
.compact-card:hover img,
.category-tile:hover img,
.category-cover:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.quality-badge,
.score-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
}

.quality-badge {
  left: 12px;
}

.score-badge {
  right: 12px;
  background: #0d9488;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.25s ease;
}

.video-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #1e293b;
}

.card-desc {
  min-height: 50px;
  color: #64748b;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin: 14px 0;
  color: #64748b;
  font-size: 13px;
}

.tag-row {
  margin-top: 10px;
}

.category-band {
  padding: 58px 0;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  background: #020617;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.category-tile:after,
.category-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 72%);
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  color: #cbd5e1;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  padding: 58px 0;
}

.rank-panel {
  position: sticky;
  top: 98px;
  align-self: start;
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  transition: 0.25s ease;
}

.rank-row:hover {
  background: #ccfbf1;
}

.rank-no {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: #0d9488;
}

.rank-title {
  font-weight: 900;
  color: #1e293b;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
}

.horizontal-list,
.mini-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.compact-card {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.compact-card img {
  aspect-ratio: 16 / 10;
}

.compact-card span,
.compact-card small {
  padding: 0 12px;
}

.compact-card span {
  font-weight: 900;
}

.compact-card small {
  padding-bottom: 12px;
  color: #64748b;
}

.page-hero,
.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.26), transparent 28%),
    linear-gradient(135deg, #0f766e, #0891b2 58%, #0f172a);
}

.page-hero {
  padding: 72px 0 78px;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one {
  max-width: 760px;
  color: #d9fffb;
  font-size: 18px;
  line-height: 1.8;
}

.filter-box {
  flex-direction: column;
  align-items: stretch;
  margin-top: 28px;
}

.chip-row {
  margin-top: 2px;
}

.category-overview {
  display: grid;
  gap: 22px;
  padding: 56px 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: #020617;
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.category-info {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.category-info h2 {
  color: #1e293b;
  font-size: 28px;
  font-weight: 900;
}

.category-info p {
  color: #64748b;
  line-height: 1.75;
}

.mini-row {
  grid-auto-columns: 190px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  padding-bottom: 64px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 62px 128px 1fr 70px;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: 0.25s ease;
}

.ranking-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-index {
  color: #0f766e;
  font-size: 28px;
  font-weight: 900;
}

.ranking-card img {
  height: 86px;
  border-radius: 14px;
}

.ranking-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-card p {
  color: #64748b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-card span {
  color: #64748b;
}

.ranking-card strong {
  color: #0f766e;
  font-size: 24px;
}

.detail-hero {
  padding: 46px 0 56px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.poster-panel {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
  background: #020617;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #ccfbf1;
  font-weight: 700;
}

.breadcrumb a {
  color: #fff;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
}

.detail-copy .tag-row {
  margin: 24px 0;
}

.player-section {
  padding: 56px 0 34px;
}

.player-section h2,
.article-section h2 {
  margin: 0 0 18px;
  color: #1e293b;
  font-size: 28px;
  font-weight: 900;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.18), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-start {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f766e;
  font-size: 38px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.24);
}

.article-section {
  display: grid;
  gap: 16px;
  border-radius: 26px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-section p {
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 58px;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 18px;
  text-align: center;
  color: #64748b;
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .split-section,
  .detail-grid,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-bar {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-slider {
    min-height: 610px;
    height: 78vh;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .site-search {
    flex-direction: column;
  }

  .site-search input,
  .site-search button {
    width: 100%;
  }

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

  .ranking-card a {
    grid-template-columns: 44px 86px 1fr;
  }

  .ranking-card strong {
    display: none;
  }

  .ranking-card img {
    height: 74px;
  }

  .poster-panel {
    max-width: 300px;
  }

  .footer-grid {
    gap: 22px;
  }
}
