:root {
  --color-bg: #f9fafb;
  --color-panel: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #e5e7eb;
  --color-dark: #0f172a;
  --color-teal: #0d9488;
  --color-teal-dark: #0f766e;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  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;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  color: white;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
}

.brand-text {
  font-size: 20px;
  color: var(--color-dark);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: #ccfbf1;
  color: var(--color-teal-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 10px;
}

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

.mobile-link {
  display: block;
  padding: 12px 16px;
}

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

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

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

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  background: radial-gradient(circle at 72% 24%, rgba(20, 184, 166, 0.35), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 90px 20px 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero-kicker {
  color: white;
  background: rgba(20, 184, 166, 0.88);
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.28);
}

.hero h1 {
  max-width: 740px;
  margin: 22px 0 18px;
  color: white;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 23px);
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span {
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 14px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  background: var(--color-teal);
  color: white;
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.25);
}

.primary-button:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
}

.secondary-button {
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #14b8a6;
}

.section-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.alt-bg {
  max-width: none;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-section h2 {
  margin: 10px 0 0;
  color: var(--color-text);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  color: var(--color-muted);
  margin: 12px 0 0;
}

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

.section-heading.with-link a,
.text-button {
  color: var(--color-teal-dark);
}

.centered {
  text-align: center;
  display: grid;
  justify-items: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  padding: 0 14px;
  outline: none;
  transition: all 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

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

.compact-grid,
.latest-grid,
.search-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

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

.movie-card,
.editorial-card,
.rank-card,
.top-rank-card,
.category-tile,
.player-shell,
.detail-info,
.story-section {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.editorial-card:hover img,
.rank-card:hover img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3,
.rank-card h3,
.editorial-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.editorial-card h3 a:hover,
.top-rank-card h2 a:hover {
  color: var(--color-teal-dark);
}

.movie-card p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.movie-card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.category-grid,
.editorial-grid,
.top-rank-grid {
  display: grid;
  gap: 20px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: white;
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

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

.category-tile strong {
  margin-top: 8px;
  color: #d1d5db;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 86px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;
}

.rank-number,
.top-rank-number {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #14b8a6;
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
}

.rank-number {
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-card p,
.editorial-card p,
.top-rank-card p {
  margin: 8px 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.editorial-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.editorial-card img {
  height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.editorial-card div {
  padding: 20px;
}

.editorial-card span {
  color: var(--color-teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 20px;
  color: white;
  background: radial-gradient(circle at 75% 15%, rgba(20, 184, 166, 0.42), transparent 28%), linear-gradient(135deg, #0f172a, #111827 48%, #0f766e);
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: white;
  background: rgba(20, 184, 166, 0.45);
}

.page-hero h1 {
  max-width: 780px;
  color: white;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  color: #d1d5db;
  font-size: 18px;
}

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

.top-rank-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.top-rank-card img {
  height: 330px;
  object-fit: cover;
}

.top-rank-card div {
  padding: 22px;
}

.top-rank-number {
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
}

.small-button {
  padding: 10px 16px;
  font-size: 14px;
}

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
}

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

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

.detail-player-block {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.18), rgba(0, 0, 0, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}

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

.player-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: rgba(20, 184, 166, 0.96);
  color: white;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.36);
}

.play-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.detail-info {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  aspect-ratio: 2 / 3;
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.detail-one-line {
  margin: 16px 0 20px;
  color: #4b5563;
  font-size: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  background: #f3f4f6;
  color: #374151;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 12px;
  background: #ccfbf1;
  color: var(--color-teal-dark);
}

.story-section {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.story-section h2 {
  font-size: 28px;
}

.story-section p {
  margin: 16px 0 0;
  color: #374151;
  font-size: 17px;
}

.compact-heading {
  margin-bottom: 20px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
}

.empty-state.is-visible {
  display: block;
}

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

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.site-footer p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .split-section,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .category-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-link {
    display: block;
  }

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

  .detail-poster {
    max-width: 240px;
  }

  .site-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .site-header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero h1 {
    font-size: 40px;
  }

  .hero-tags span {
    font-size: 13px;
  }

  .section-block,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-grid,
  .compact-grid,
  .latest-grid,
  .search-list,
  .category-list {
    gap: 12px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }
}
