:root {
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 118, 110, 0.12);
  --shadow-card: 0 14px 38px rgba(23, 23, 23, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--neutral-200);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(23, 23, 23, 0.05);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-800);
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-800), var(--cyan-500));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

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

.brand-text small {
  color: var(--neutral-600);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--neutral-700);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--teal-700);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.site-search input,
.search-page-form input,
.filter-search input {
  width: 100%;
  border: 1px solid var(--neutral-300);
  background: var(--white);
  border-radius: 12px;
  color: var(--neutral-900);
  outline: none;
  padding: 11px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.search-page-form input:focus,
.filter-search input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.site-search button,
.search-page-form button {
  border: 0;
  background: var(--teal-700);
  color: var(--white);
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--neutral-100);
  color: var(--neutral-800);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
}

.mobile-search {
  min-width: 0;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.4), transparent 34%), linear-gradient(135deg, var(--teal-900), #083344 58%, var(--neutral-950));
}

.hero-slide {
  min-height: 660px;
  display: none;
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 56px;
  padding: 72px max(32px, calc((100vw - var(--container)) / 2)) 84px;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 48, 46, 0.96), rgba(7, 48, 46, 0.7), rgba(7, 48, 46, 0.92)), var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--neutral-50));
  z-index: -1;
}

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

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
  animation: heroIn 0.55s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-600);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy .eyebrow {
  color: #99f6e4;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 20px 0 12px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

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

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.movie-tags span,
.detail-tags a {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

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

.btn-primary,
.btn-ghost,
.section-link,
.text-link,
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-700), var(--cyan-500));
  color: var(--white);
  padding: 13px 22px;
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.26);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-link:hover,
.text-link:hover,
.side-link:hover {
  transform: translateY(-2px);
}

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

.page-actions .btn-ghost {
  color: var(--teal-800);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.74);
}

.hero-poster {
  width: min(360px, 35vw);
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  flex: 0 0 auto;
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  background: rgba(15, 118, 110, 0.86);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

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

.hero-dots button {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 46px;
  background: var(--white);
}

.section {
  padding: 76px 0;
}

.section-light {
  background: var(--neutral-50);
}

.section-heading-row,
.inner-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading-row h2,
.page-hero h1,
.detail-main h1,
.rank-block h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading-row p:not(.section-kicker),
.page-hero p:not(.section-kicker) {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--neutral-600);
  line-height: 1.8;
}

.section-link,
.text-link {
  color: var(--teal-700);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  padding: 11px 16px;
  box-shadow: var(--shadow-card);
}

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

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

.movie-card,
.card-panel,
.category-overview-card,
.category-tile {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(15, 118, 110, 0.2);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--neutral-200);
}

.movie-card-compact .movie-cover {
  aspect-ratio: 2 / 3;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(15, 118, 110, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.play-chip {
  left: 12px;
  bottom: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title {
  display: block;
  color: var(--neutral-900);
  font-weight: 900;
  line-height: 1.35;
  min-height: 42px;
}

.movie-title:hover {
  color: var(--teal-700);
}

.movie-meta {
  margin: 9px 0 0;
  color: var(--neutral-500);
  font-size: 13px;
  line-height: 1.5;
}

.movie-one-line {
  margin: 10px 0 14px;
  color: var(--neutral-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-band {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(236, 254, 255, 0.96));
}

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

.category-tile {
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-tile span {
  color: var(--teal-700);
  font-weight: 900;
}

.category-tile strong {
  margin-top: 16px;
  color: var(--neutral-900);
  font-size: 22px;
}

.category-tile em {
  margin-top: 12px;
  color: var(--neutral-600);
  font-style: normal;
  line-height: 1.7;
}

.latest-section {
  background: var(--white);
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 300px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.horizontal-card {
  scroll-snap-align: start;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.horizontal-card img {
  width: 88px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--neutral-200);
}

.horizontal-card strong,
.horizontal-card em {
  display: block;
}

.horizontal-card strong {
  font-size: 14px;
  line-height: 1.4;
}

.horizontal-card em {
  margin-top: 6px;
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  background: linear-gradient(135deg, var(--teal-800), #0891b2);
  color: var(--white);
  padding: 82px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  top: -170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero h1,
.page-hero p:not(.section-kicker) {
  color: var(--white);
}

.page-hero .section-kicker {
  color: #99f6e4;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 210px;
}

.category-overview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: var(--neutral-200);
}

.category-overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-overview-body p:not(.section-kicker) {
  color: var(--neutral-600);
  line-height: 1.75;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-group span {
  color: var(--neutral-600);
  font-weight: 900;
  margin-right: 4px;
}

.filter-group button {
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-700);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.filter-group button.is-active,
.filter-group button:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}

.empty-state {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--neutral-300);
  color: var(--neutral-600);
  background: var(--white);
  text-align: center;
  padding: 40px 20px;
  font-weight: 900;
}

.rank-container {
  display: grid;
  gap: 58px;
}

.inner-heading {
  margin-bottom: 22px;
}

.watch-hero {
  background: var(--neutral-950);
  padding: 22px 0 34px;
}

.watch-container {
  display: grid;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.player-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  z-index: 3;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
  box-shadow: 0 20px 46px rgba(6, 182, 212, 0.32);
  font-size: 28px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: clamp(18px, 3vw, 30px);
}

.movie-detail-section {
  padding-top: 48px;
}

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

.card-panel {
  padding: 26px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.detail-title-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  background: var(--neutral-200);
}

.detail-main h1 {
  margin-bottom: 12px;
}

.detail-main h2,
.side-panel h2 {
  margin: 28px 0 14px;
  font-size: 22px;
}

.side-panel h2:first-child,
.detail-main h2:first-of-type {
  margin-top: 0;
}

.detail-main p {
  color: var(--neutral-700);
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  color: var(--neutral-900) !important;
  font-weight: 800;
}

.large-meta {
  font-size: 15px;
  margin-bottom: 16px;
}

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

.side-list {
  display: grid;
  gap: 12px;
}

.side-list .horizontal-card {
  box-shadow: none;
}

.side-link {
  width: 100%;
  justify-content: flex-start;
  color: var(--teal-800);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  padding: 12px 14px;
  margin-top: 10px;
}

.search-page-form {
  display: flex;
  gap: 10px;
  width: min(740px, 100%);
  margin-top: 28px;
}

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

.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding-top: 54px;
}

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

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.site-footer p {
  color: var(--neutral-300);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--neutral-300);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(20, 184, 166, 0.24);
}

.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--neutral-500);
  padding: 18px;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .site-search:not(.mobile-search) {
    margin-left: auto;
  }

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

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 68px;
  }

  .site-search:not(.mobile-search) {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .hero-slide {
    min-height: auto;
    padding: 52px 18px 86px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-poster {
    width: min(280px, 82vw);
    transform: rotate(0deg);
  }

  .section {
    padding: 54px 0;
  }

  .section-heading-row,
  .inner-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .compact-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-media {
    aspect-ratio: 16 / 8;
  }

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

  .detail-title-row {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }

  .card-panel {
    padding: 20px;
  }

  .search-page-form {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 17px;
  }

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

  .hero-copy h2 {
    font-size: 25px;
  }

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

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

  .movie-title {
    min-height: 38px;
    font-size: 14px;
  }

  .movie-one-line,
  .movie-tags {
    display: none;
  }

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

  .detail-title-row img {
    width: 160px;
  }
}
