:root {
  color-scheme: light;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-700: #334155;
  --white: #ffffff;
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--gray-50), #ffffff 420px);
  color: var(--slate-900);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--teal-800), var(--cyan-500));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
}

.navbar {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

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

.nav-link {
  padding: 8px 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 9px 14px;
  color: var(--white);
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.nav-search button {
  border: 0;
  padding: 9px 16px;
  color: var(--white);
  background: var(--amber-500);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search button:hover {
  background: #d97706;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  font-size: 26px;
  background: transparent;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  background: var(--slate-950);
  overflow: hidden;
}

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

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

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

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

.hero-image.is-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.86)), radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.42), transparent 36%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  color: var(--white);
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero-meta,
.hero-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tag-pill {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(13, 148, 136, 0.88);
}

.tag-pill.soft {
  color: var(--teal-800);
  background: #ccfbf1;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  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-btn {
  padding: 13px 28px;
  color: var(--white);
  background: var(--teal-600);
  box-shadow: 0 14px 24px rgba(13, 148, 136, 0.32);
}

.primary-btn.small {
  padding: 10px 18px;
  font-size: 14px;
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--teal-700);
}

.ghost-btn {
  padding: 13px 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  backdrop-filter: blur(8px);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.is-active {
  background: var(--amber-500);
}

.category-strip,
.content-section,
.split-section,
.page-shell,
.detail-shell,
.footer-grid {
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
  min-height: 154px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.category-tile:nth-child(3n + 3) {
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
}

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

.category-tile span {
  display: block;
  font-size: 34px;
  margin-bottom: 14px;
}

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

.category-tile small,
.category-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

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

.section-heading.compact {
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-text-card h1 {
  margin: 0;
  color: var(--slate-900);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-more {
  padding: 10px 18px;
  color: var(--teal-800);
  background: #ccfbf1;
}

.section-more:hover {
  background: #99f6e4;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-image.is-hidden {
  opacity: 0;
}

.movie-card:hover .poster-image,
.category-card:hover .poster-image {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 12px;
  padding: 7px 10px;
  color: var(--white);
}

.badge-region {
  left: 12px;
  background: rgba(13, 148, 136, 0.9);
}

.badge-type {
  right: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
  transition: opacity 0.22s ease;
}

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

.poster-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 14px;
  color: var(--white);
  font-size: 12px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.movie-card-body {
  padding: 16px;
}

.movie-card-title {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-desc {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.split-section .content-section {
  width: auto;
  padding-top: 42px;
}

.ranking-panel,
.ranking-page-panel,
.detail-text-card,
.player-card,
.side-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  margin-top: 42px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--gray-50);
  transition: background 0.2s ease;
}

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

.rank-no {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-600);
  font-weight: 850;
}

.rank-title {
  font-weight: 800;
  color: var(--slate-900);
}

.rank-meta {
  color: var(--slate-600);
  font-size: 13px;
}

.page-shell {
  padding: 34px 0 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 54px;
  color: var(--white);
  background: radial-gradient(circle at 24% 12%, rgba(245, 158, 11, 0.32), transparent 24%), linear-gradient(135deg, var(--teal-800), var(--slate-900));
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.page-hero .eyebrow {
  color: #fde68a;
}

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

.category-card {
  min-height: 248px;
  color: var(--white);
  background: var(--slate-900);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.88));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card span {
  margin: 138px 22px 10px;
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  margin: 0 22px 22px;
  font-size: 14px;
}

.inline-filter {
  display: flex;
  width: min(620px, 100%);
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.inline-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  color: var(--white);
  background: transparent;
}

.inline-filter input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.inline-filter button {
  border: 0;
  padding: 0 24px;
  color: var(--white);
  background: var(--amber-500);
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  padding: 36px;
  text-align: center;
  border-radius: 20px;
  color: var(--slate-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-page-panel {
  padding: 24px;
}

.ranking-page-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-page-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-page-list a:hover {
  transform: translateX(4px);
  background: #ccfbf1;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-600);
  font-weight: 850;
}

.ranking-name {
  font-weight: 850;
}

.ranking-info {
  color: var(--slate-600);
  font-size: 14px;
}

.detail-shell {
  padding: 26px 0 70px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--teal-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.player-card {
  padding: 14px;
  margin-bottom: 24px;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-950);
}

.main-video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--slate-950);
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.42), rgba(2, 6, 23, 0.72));
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.player-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-600);
  box-shadow: 0 20px 44px rgba(13, 148, 136, 0.34);
}

.detail-text-card {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.detail-text-card h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-meta {
  margin: 10px 0 0;
  color: var(--slate-600);
  font-weight: 700;
}

.lead-text {
  margin: 24px 0;
  padding: 20px;
  border-radius: 18px;
  color: var(--teal-900);
  background: #ccfbf1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-text-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 22px;
  color: var(--slate-900);
}

.detail-text-card p {
  color: var(--gray-700);
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
  box-shadow: var(--shadow-card);
}

.side-card {
  padding: 24px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--slate-600);
}

.side-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 26px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

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

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.site-footer p {
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.copyright {
  width: min(1280px, calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

[hidden] {
  display: none !important;
}

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .navbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-wrap: wrap;
    margin-left: 0;
    padding-top: 10px;
  }

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

  .nav-search {
    order: 4;
    flex-basis: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    bottom: 96px;
  }

  .category-strip,
  .category-overview,
  .movie-grid,
  .wide-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: 38px 28px;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .ranking-page-list a {
    grid-template-columns: 48px 1fr;
  }

  .ranking-info {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .category-strip,
  .category-overview,
  .movie-grid,
  .wide-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-strip,
  .content-section,
  .split-section,
  .page-shell,
  .detail-shell,
  .footer-grid,
  .copyright {
    width: min(100% - 28px, 1280px);
  }

  .hero-content,
  .hero-controls {
    width: calc(100% - 28px);
  }

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

  .hero-desc {
    font-size: 16px;
  }

  .inline-filter {
    border-radius: 18px;
    flex-direction: column;
  }

  .inline-filter button {
    padding: 13px 20px;
  }
}
