:root {
  --ocean-50: #f0f9ff;
  --ocean-100: #e0f2fe;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;
  --ocean-700: #0369a1;
  --island-50: #f0fdf4;
  --island-100: #dcfce7;
  --island-600: #16a34a;
  --sand-50: #fffbeb;
  --sand-100: #fef3c7;
  --sand-600: #d97706;
  --red-50: #fef2f2;
  --red-600: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 14px 28px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), #ffffff 45%, var(--ocean-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.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: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 12px 22px rgba(14, 165, 233, 0.22);
}

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

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

.nav-link,
.mobile-link {
  color: var(--gray-600);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--ocean-700);
  background: var(--ocean-50);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-100);
  padding: 12px 16px 18px;
  background: rgba(255, 255, 255, 0.95);
}

.mobile-panel.is-open {
  display: grid;
  gap: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.42), transparent 34%), linear-gradient(135deg, #0f172a, #075985 52%, #064e3b);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.65;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 10%;
  background: rgba(34, 197, 94, 0.28);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: 6%;
  background: rgba(14, 165, 233, 0.30);
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0 64px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: var(--ocean-700);
  background: var(--ocean-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.ghost-button,
.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.play-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 14px 24px rgba(2, 132, 199, 0.24);
}

.secondary-button,
.ghost-button {
  color: var(--gray-800);
  background: #ffffff;
  border: 1px solid var(--gray-200);
}

.hero .secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.play-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(22, 163, 74, 0.28));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.88));
}

.hero-card-floating {
  position: absolute;
  left: -34px;
  bottom: 34px;
  width: min(260px, 86%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--gray-900);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-card-floating strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-card-floating span {
  color: var(--gray-600);
  font-size: 14px;
}

.hero-dots {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  padding-bottom: 34px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #ffffff;
}

main {
  overflow: hidden;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: rgba(240, 249, 255, 0.62);
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ocean-600);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

.section-more,
.text-link {
  color: var(--ocean-700);
  font-weight: 900;
}

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

.movie-grid.dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--ocean-100);
  box-shadow: 0 20px 48px rgba(2, 132, 199, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--ocean-100), var(--island-100));
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(2, 132, 199, 0.32);
  font-size: 74px;
  font-weight: 900;
}

.poster-wrap img + .poster-fallback {
  display: none;
}

.poster-wrap.is-missing .poster-fallback {
  display: grid;
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-card-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card p {
  min-height: 52px;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.play-link {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0369a1, #16a34a);
  box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #1d4ed8, #d97706);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -36px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  border-radius: 16px;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-item p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 34px;
  background: radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.18), transparent 30%), linear-gradient(180deg, #ffffff, var(--ocean-50));
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-weight: 800;
  font-size: 14px;
}

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

.search-panel {
  margin: 22px 0 32px;
  padding: 18px;
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.filter-row select {
  min-height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--gray-700);
}

.empty-state {
  margin-top: 14px;
  padding: 16px;
  color: var(--gray-600);
  background: var(--sand-50);
  border-radius: 16px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.22), rgba(0, 0, 0, 0.42));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-600));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  font-weight: 900;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.detail-panel,
.content-panel {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.detail-title {
  font-size: clamp(30px, 4.5vw, 52px);
  margin-bottom: 14px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.content-panel p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.content-grid {
  display: grid;
  gap: 22px;
}

.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.next-prev a {
  flex: 1;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.info-card p {
  margin: 0;
  color: var(--gray-600);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}

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

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

.footer-links a {
  color: #e2e8f0;
  font-weight: 800;
}

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

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

  .hero-visual {
    max-width: 440px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide {
    padding: 56px 0 34px;
    gap: 28px;
  }

  .hero-card-floating {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .rank-list,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .rank-item .play-link {
    grid-column: 1 / -1;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid,
  .rank-list,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .filter-row,
  .next-prev {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .play-link {
    width: 100%;
  }
}
