:root {
  --fog-950: #0b1f33;
  --fog-900: #102a43;
  --fog-800: #243b53;
  --fog-700: #334e68;
  --fog-200: #bcccdc;
  --fog-100: #d9e2ec;
  --fog-50: #f0f4f8;
  --mist-700: #495057;
  --mist-600: #6c757d;
  --cyan-700: #12828c;
  --cyan-600: #14919b;
  --cyan-500: #2cb1bc;
  --white: #ffffff;
  --shadow-soft: 0 4px 16px rgba(16, 42, 67, 0.08);
  --shadow-medium: 0 12px 30px rgba(16, 42, 67, 0.14);
  --shadow-strong: 0 20px 50px rgba(16, 42, 67, 0.22);
}

body {
  min-height: 100vh;
  background: var(--fog-50);
  color: var(--fog-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

img {
  background: var(--fog-200);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--fog-800);
  white-space: nowrap;
}

.site-logo {
  font-size: 20px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--fog-800));
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--mist-700);
  font-size: 14px;
  font-weight: 650;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--cyan-500);
  box-shadow: var(--shadow-soft);
}

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

.nav-search input,
.home-search-panel input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid rgba(188, 204, 220, 0.9);
  background: var(--white);
  color: var(--fog-800);
  border-radius: 14px;
  outline: none;
  transition: 0.2s ease;
}

.nav-search input {
  width: 210px;
  padding: 10px 12px;
}

.nav-search input:focus,
.home-search-panel input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(44, 177, 188, 0.14);
}

.nav-search button,
.home-search-panel button {
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--fog-800);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-search button:hover,
.home-search-panel button:hover {
  background: var(--cyan-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--fog-800);
  background: var(--fog-50);
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--fog-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 42, 67, 0.98), rgba(16, 42, 67, 0.66), rgba(16, 42, 67, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-kicker {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--cyan-500);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-content p {
  max-width: 690px;
  color: #d9e2ec;
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #bcccdc;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 14px;
  color: var(--white);
  background: var(--cyan-500);
  font-weight: 800;
  box-shadow: var(--shadow-medium);
  transition: 0.2s ease;
}

.primary-button:hover {
  background: var(--cyan-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.home-search-panel,
.content-section,
.dark-section,
.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-search-panel {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  padding-top: 26px;
  padding-bottom: 26px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.home-search-panel h2,
.section-head h2,
.page-hero h1,
.detail-card h1 {
  color: var(--fog-800);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.home-search-panel h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.home-search-panel p,
.section-head p,
.page-hero p {
  color: var(--mist-600);
  line-height: 1.8;
}

.home-search-panel form {
  display: flex;
  gap: 10px;
}

.home-search-panel input {
  flex: 1;
  padding: 14px 16px;
}

.home-search-panel button {
  padding: 14px 20px;
}

.content-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.content-section.section-alt {
  max-width: none;
  background: var(--white);
}

.content-section.section-alt > .section-head,
.content-section.section-alt > .movie-grid,
.content-section.section-alt > .category-grid,
.content-section.section-alt > .filter-toolbar,
.content-section.section-alt > .empty-state,
.content-section.section-alt > .category-overview-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.section-head a {
  color: var(--cyan-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--fog-200);
}

.movie-poster img,
.wide-cover img,
.rank-item img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img,
.wide-card:hover .wide-cover img {
  transform: scale(1.08);
}

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  font-size: 38px;
  transition: 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.36);
}

.movie-card-body {
  padding: 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--mist-600);
  font-size: 12px;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fog-50);
}

.movie-card h3 {
  color: var(--fog-800);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  transition: 0.2s ease;
}

.movie-card:hover h3,
.wide-card:hover h3 {
  color: var(--cyan-700);
}

.movie-card p,
.wide-card p {
  color: var(--mist-600);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span,
.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--fog-700);
  background: var(--fog-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--white), #eefbfc);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.category-tile strong,
.category-overview-card h2 {
  color: var(--fog-800);
  font-size: 21px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p,
.category-overview-card small {
  color: var(--mist-600);
  line-height: 1.7;
}

.category-label {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--cyan-500);
  font-size: 12px;
  font-weight: 800;
}

.dark-section {
  max-width: none;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--fog-900);
}

.dark-section > .section-head,
.dark-section > .rank-list {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.dark-head h2,
.dark-head p,
.dark-head a {
  color: var(--white);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rank-number {
  color: var(--cyan-500);
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 84px;
  height: 58px;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 850;
}

.rank-info small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #bcccdc;
}

.rank-action {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--cyan-500);
  font-size: 12px;
  font-weight: 800;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.wide-card:hover {
  box-shadow: var(--shadow-medium);
}

.wide-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--fog-200);
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.wide-body h3 {
  color: var(--fog-800);
  font-size: 18px;
  font-weight: 850;
}

.page-hero {
  min-height: 320px;
  background: radial-gradient(circle at top left, rgba(44, 177, 188, 0.38), transparent 34%), linear-gradient(135deg, var(--fog-800), var(--fog-950));
  color: var(--white);
  display: flex;
  align-items: flex-end;
}

.compact-hero > div {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 64px;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d9e2ec;
  font-weight: 800;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 720px;
  color: #d9e2ec;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--white);
  color: var(--mist-600);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.detail-page {
  padding-top: 28px;
  padding-bottom: 72px;
}

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

.breadcrumb a {
  color: var(--cyan-700);
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.video-player.is-playing .player-layer {
  opacity: 0;
}

.video-player.is-playing:hover .player-layer {
  opacity: 1;
}

.player-main-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  font-size: 34px;
  transition: 0.2s ease;
}

.player-main-button:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}

.player-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
}

.player-controls button {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

.player-controls button:last-child {
  margin-left: auto;
}

.detail-card,
.sidebar-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.lead-text {
  color: var(--mist-700);
  font-size: 19px;
  line-height: 1.85;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--fog-100);
}

.detail-card section {
  margin-top: 28px;
}

.detail-card h2,
.sidebar-card h2 {
  color: var(--fog-800);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

.detail-card p,
.review-box {
  color: var(--mist-700);
  line-height: 1.95;
  white-space: pre-line;
}

.review-box {
  padding: 18px;
  border-radius: 16px;
  background: var(--fog-50);
}

.detail-sidebar {
  min-width: 0;
}

.poster-card {
  margin-top: 0;
}

.poster-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 16px;
}

.full-button {
  width: 100%;
}

.info-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  color: var(--mist-700);
}

.info-list dt {
  font-weight: 850;
  color: var(--fog-800);
}

.info-list a {
  color: var(--cyan-700);
  font-weight: 800;
}

.compact-related .wide-card {
  grid-template-columns: 112px 1fr;
  padding: 10px;
  box-shadow: none;
  background: var(--fog-50);
}

.compact-related .wide-body h3 {
  font-size: 14px;
}

.compact-related .movie-meta,
.compact-related .wide-card p {
  font-size: 11px;
}

.site-footer {
  background: var(--fog-900);
  color: #d9e2ec;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #bcccdc;
  line-height: 1.8;
}

.site-footer h3 {
  color: var(--white);
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer a:hover {
  color: var(--cyan-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  color: #9fb3c8;
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .nav-links,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-links.open,
  .nav-search.open {
    display: flex;
  }

  .nav-links.open {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .nav-search.open {
    padding-bottom: 16px;
  }

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

  .home-search-panel,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-list,
  .full-rank-list,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-nav,
  .home-search-panel,
  .content-section,
  .dark-section,
  .detail-page,
  .compact-hero > div {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 86px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .home-search-panel form,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid.four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-tags {
    display: none;
  }

  .wide-card,
  .compact-related .wide-card {
    grid-template-columns: 118px 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 68px 1fr;
  }

  .rank-action {
    display: none;
  }

  .rank-item img {
    width: 68px;
    height: 50px;
  }
}
