:root {
  --ocean-50: #f0f9ff;
  --ocean-100: #e0f2fe;
  --ocean-400: #38bdf8;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;
  --island-500: #14b8a6;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --page: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink-800);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-600), var(--island-500));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  font-size: 15px;
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(135deg, var(--ocean-600), var(--island-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--ink-600);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ocean-50);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ocean-600);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

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

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  background: #0b1220;
}

.hero-viewport {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 42%, rgba(15, 23, 42, 0.18)), radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.38), transparent 36%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 92px;
  width: min(660px, calc(100% - 64px));
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--ocean-400);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tag-row span {
  background: var(--ocean-50);
  color: var(--ocean-600);
}

.detail-tags span {
  background: var(--ocean-50);
  color: var(--ocean-600);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-600), var(--island-500));
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.btn.text {
  color: rgba(255, 255, 255, 0.86);
}

.btn:hover {
  transform: translateY(-2px);
}

.small-actions .btn.ghost,
.detail-actions .btn.ghost {
  color: var(--ocean-600);
  border-color: var(--ocean-100);
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

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

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

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

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

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

.hero-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 14px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.hero-mini img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

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

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-section h2 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 950;
  letter-spacing: -0.055em;
}

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

.section-head a {
  flex: 0 0 auto;
  color: var(--ocean-600);
  font-weight: 900;
}

.center-head {
  align-items: center;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  color: var(--ink-800);
  background: var(--page);
}

.search-input:focus {
  border-color: var(--ocean-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.search-bar button {
  border: 0;
  border-radius: 15px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink-900);
  font-weight: 900;
  cursor: pointer;
}

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

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

.scroll-row {
  display: grid;
  grid-auto-columns: 260px;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--ocean-100);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-100), #eef2ff);
}

.compact-card .poster {
  aspect-ratio: 4 / 3;
}

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

.movie-card:hover .poster img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.74));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 16px;
}

.meta-line {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 6px 0 8px;
  color: var(--ink-900);
  font-size: 19px;
  line-height: 1.32;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 14px;
}

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

.category-card {
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white), var(--ocean-50));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.category-covers {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 8px;
  height: 98px;
  margin-bottom: 18px;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.category-card h2 {
  margin: 0 0 8px;
  color: var(--ink-900);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 14px;
}

.category-card span {
  color: var(--ocean-600);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--white), var(--ocean-50));
  box-shadow: var(--shadow-soft);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: center;
  min-height: 280px;
  padding: 38px;
  overflow: hidden;
}

.slim-hero {
  display: block;
  min-height: 220px;
}

.category-hero img {
  width: 320px;
  height: 210px;
  border-radius: 24px;
  object-fit: cover;
  order: 2;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-600);
  font-size: 18px;
}

.detail-hero {
  padding: 26px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.lead-text {
  margin: 22px 0;
  color: var(--ink-600);
  font-size: 19px;
}

.player-section {
  padding-top: 38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-overlay,
.player-overlay img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
}

.player-overlay img {
  object-fit: cover;
  opacity: 0.72;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25), rgba(2, 6, 23, 0.36) 40%, rgba(2, 6, 23, 0.62));
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-600), var(--island-500));
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4);
  font-size: 32px;
  transform: translate(-50%, -50%);
}

.article-section {
  color: var(--ink-700);
  font-size: 18px;
}

.article-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 32px;
}

.article-section p {
  margin: 0 0 24px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.info-table div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.info-table span {
  display: block;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.info-table strong {
  display: block;
  margin-top: 4px;
  color: var(--ink-900);
  font-size: 18px;
}

.site-footer {
  margin-top: 46px;
  color: rgba(255, 255, 255, 0.74);
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 34px;
}

.footer-brand strong {
  display: inline-block;
  margin-left: 10px;
  color: var(--white);
  font-size: 22px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

.footer-links a:hover {
  color: var(--ocean-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

  .hero-strip {
    overflow-x: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
  }

  .detail-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

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

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

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

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

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

  .hero-content {
    left: 18px;
    bottom: 102px;
    width: calc(100% - 36px);
  }

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

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

  .hero-arrow {
    display: none;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    height: 46px;
  }

  .page-hero,
  .detail-hero {
    width: min(100% - 24px, 1180px);
    margin-top: 22px;
    border-radius: 22px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .category-hero img {
    width: 100%;
    height: 220px;
    order: 0;
  }

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

  .detail-poster img {
    aspect-ratio: 16 / 10;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-strip,
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    width: min(100% - 24px, 1180px);
    padding: 42px 0;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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