:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav {
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

.nav-inner,
.content-wrap,
.footer-inner,
.player-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.48);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #22d3ee;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(8, 145, 178, 0.25);
  color: #67e8f9;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(6, 182, 212, 0.25), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
}

.hero-content h1 {
  width: min(720px, 100%);
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-content p {
  width: min(650px, 100%);
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.hero-meta,
.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span,
.hero-tags a {
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.hero-tags span {
  background: var(--cyan);
}

.hero-tags a {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-meta {
  margin-bottom: 30px;
  color: #ffffff;
}

.hero-meta span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn,
.ghost-btn,
.search-box button,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.search-box button,
.filter-bar button {
  background: var(--cyan);
  color: #ffffff;
}

.primary-btn:hover,
.search-box button:hover,
.filter-bar button:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

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

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 30px 0;
}

.search-wrap h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.search-wrap p {
  margin: 0;
  color: var(--muted);
}

.search-box,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 18px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar select {
  max-width: 180px;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.page-stack {
  padding: 58px 0 72px;
  display: grid;
  gap: 64px;
}

.page-section {
  padding: 54px 0 72px;
}

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

.section-heading h2,
.side-card h2,
.detail-card h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-link,
.light-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

.light-heading h2,
.light-heading .eyebrow,
.light-link {
  color: #ffffff;
}

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

.small-grid {
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.type-badge,
.play-dot {
  position: absolute;
  z-index: 2;
}

.type-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 13px;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.side-rec:hover span {
  color: var(--cyan-dark);
}

.card-body p,
.rank-info p,
.category-card p,
.detail-card p,
.page-hero p {
  color: var(--muted);
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.large-tags span {
  padding: 6px 12px;
  font-size: 13px;
}

.panel-section,
.detail-card,
.side-card,
.rank-list-section {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 32px;
}

.compact-heading h2 {
  font-size: 30px;
}

.rank-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.28);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  color: var(--ink);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ecfeff;
  color: var(--cyan-dark);
  font-weight: 900;
}

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

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

.rank-info h2 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.28;
}

.rank-info p {
  margin: 0 0 8px;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(103, 232, 249, 0.22), transparent 30%),
    linear-gradient(135deg, #0891b2, #2563eb);
  color: #ffffff;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.compact-hero {
  padding: 64px 0;
}

.rank-hero {
  background:
    radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.3), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0891b2);
}

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

.category-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-kicker {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.category-card p {
  margin: 0 0 18px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-links a {
  max-width: 100%;
  padding: 6px 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-bar {
  position: sticky;
  top: 76px;
  z-index: 9;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.search-filter {
  align-items: center;
}

.player-section {
  background: #000000;
}

.player-inner {
  padding: 0;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.78));
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.55);
  font-size: 28px;
  padding-left: 4px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

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

.breadcrumb a:hover {
  color: var(--cyan-dark);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-tags a,
.detail-tags span {
  padding: 7px 13px;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-card section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  font-size: 16px;
  text-align: justify;
  white-space: pre-line;
}

.related-section {
  margin-top: 8px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 88px;
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

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

.side-rec {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-rec:hover {
  background: #f8fafc;
}

.side-rec img {
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.side-rec span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  background: var(--slate);
  color: #cbd5e1;
}

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

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

.footer-brand {
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .search-wrap,
  .rank-grid,
  .footer-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .search-box {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

@media (max-width: 560px) {
  .nav-inner,
  .content-wrap,
  .footer-inner,
  .player-inner {
    width: min(100% - 22px, 1280px);
  }

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

  .hero-slider {
    height: 540px;
  }

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

  .hero-content p,
  .page-hero p {
    font-size: 16px;
  }

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

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

  .rank-cover {
    width: 94px;
  }

  .panel-section,
  .detail-card,
  .side-card,
  .rank-panel,
  .rank-list-section,
  .category-card {
    padding: 22px;
    border-radius: 22px;
  }

  .player-inner {
    width: 100%;
  }

  .big-play {
    width: 64px;
    height: 64px;
  }
}
