:root {
  --ocean-dark: #0a2540;
  --ocean-primary: #1a4d7a;
  --ocean-light: #2e6ba8;
  --sea-foam: #4fb3bf;
  --sand: #f4e8d0;
  --coral: #ff6b6b;
  --sunset: #ff9f43;
  --sky: #74b9ff;
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(79, 179, 191, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(255, 159, 67, 0.16), transparent 28rem),
    linear-gradient(180deg, #071b2f 0%, var(--ocean-dark) 45%, #061525 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 21, 37, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #062035;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sea-foam), var(--sunset));
  box-shadow: 0 12px 28px rgba(79, 179, 191, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff, var(--sea-foam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a,
.footer-links a,
.hero-shortcuts a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.main-nav a:hover,
.footer-links a:hover,
.hero-shortcuts a:hover {
  color: #ffffff;
  background: rgba(79, 179, 191, 0.14);
}

.nav-search {
  width: min(320px, 28vw);
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-search input,
.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--ink);
  outline: none;
  background: transparent;
}

.nav-search input {
  flex: 1;
  padding: 8px 10px;
}

.nav-search button,
.hero-search button,
.search-panel button,
.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.hero-search button,
.search-panel button,
.primary-button {
  color: #062035;
  background: linear-gradient(135deg, var(--sea-foam), var(--sand));
  box-shadow: 0 14px 34px rgba(79, 179, 191, 0.22);
}

.nav-search button {
  padding: 8px 14px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.home-hero {
  padding: 28px 24px 0;
}

.hero-stage {
  position: relative;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--ocean-primary);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 80px clamp(28px, 7vw, 96px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--sea-foam);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h2,
.hero-overview h1,
.page-hero h1,
.detail-info h1 {
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-copy h2 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 84px);
}

.hero-line,
.hero-overview p,
.page-hero p,
.detail-line {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

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

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button,
.ghost-button,
.text-link {
  padding: 13px 22px;
}

.ghost-button,
.text-link {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.nav-search button:hover,
.hero-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(79, 179, 191, 0.28);
}

.hero-overview {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 4;
  width: min(430px, calc(100% - 68px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(5, 21, 38, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.hero-overview h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.hero-search,
.search-panel,
.filter-bar {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-search button,
.search-panel button {
  padding: 14px 22px;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-shortcuts a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.hero-dots {
  position: absolute;
  left: 48px;
  bottom: 42px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

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

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

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

.section-heading h2,
.detail-article h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
}

.section-heading a {
  color: var(--sea-foam);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.rank-item,
.detail-article,
.player-shell,
.search-panel,
.filter-bar {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(6, 21, 37, 0.86));
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile:hover img,
.movie-card:hover img,
.rank-item:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
  opacity: 0.5;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 179, 191, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.poster-link img,
.rank-poster img,
.category-cover img,
.detail-poster img {
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.movie-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #062035;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sea-foam), var(--sand));
}

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

.movie-card h3,
.rank-info h3,
.category-overview-card h2 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta,
.rank-info span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.movie-line,
.rank-info p,
.category-overview-card p,
.detail-article p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.movie-line {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  overflow: hidden;
}

.rank-number {
  color: var(--sea-foam);
  font-size: 24px;
  font-weight: 950;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: clamp(38px, 7vw, 80px) 24px;
}

.compact-hero,
.category-page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 179, 191, 0.24), transparent 32rem),
    linear-gradient(135deg, rgba(26, 77, 122, 0.52), rgba(6, 21, 37, 0.7));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
}

.category-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 22px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-preview span {
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar {
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.filter-bar select {
  flex: 0 0 180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin-top: 10px;
  font-size: clamp(42px, 7vw, 82px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
}

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

.detail-meta {
  margin-top: 22px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #062035;
  font-size: 34px;
  background: linear-gradient(135deg, var(--sea-foam), var(--sand));
  box-shadow: 0 18px 60px rgba(79, 179, 191, 0.34);
}

.detail-article {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
}

.detail-article h2 + p {
  margin-bottom: 26px;
}

.search-section {
  padding-top: 32px;
}

.search-panel {
  padding: 16px;
  border-radius: 24px;
  margin-bottom: 28px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(6, 21, 37, 0.72);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-shell p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
}

[data-filter-card].is-hidden {
  display: none;
}

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

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

  .nav-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
  }

  .home-hero {
    padding: 18px 14px 0;
  }

  .hero-stage {
    min-height: 820px;
    border-radius: 24px;
  }

  .hero-slide {
    align-items: start;
    padding: 48px 22px;
  }

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

  .hero-overview {
    left: 18px;
    right: 18px;
    bottom: 78px;
    width: auto;
  }

  .hero-dots {
    left: 28px;
    bottom: 32px;
  }

  .hero-search,
  .search-panel,
  .filter-bar,
  .hero-actions {
    flex-direction: column;
  }

  .filter-bar select {
    flex-basis: auto;
  }

  .section-shell {
    padding: 52px 16px 0;
  }

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

  .movie-grid,
  .category-grid,
  .rank-grid,
  .rank-grid-wide,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-overview-card,
  .detail-hero,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 36px 16px;
  }

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

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

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .rank-grid,
  .rank-grid-wide,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 900px;
  }

  .hero-overview {
    padding: 20px;
  }

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

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