:root {
  --color-ocean-dark: #0a2540;
  --color-ocean-primary: #1a4d7a;
  --color-ocean-light: #2e6ba8;
  --color-sea-foam: #4fb3bf;
  --color-sand: #f4e8d0;
  --color-coral: #ff6b6b;
  --color-sunset: #ff9f43;
  --color-sky: #74b9ff;
  --color-ink: #071827;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.25);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 5%, rgba(79, 179, 191, 0.22), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 159, 67, 0.15), transparent 32%),
    linear-gradient(180deg, var(--color-ocean-dark), var(--color-ocean-primary) 52%, var(--color-ocean-dark));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.container.narrow {
  width: min(880px, calc(100% - 32px));
}

.glass-effect {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-shadow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-width: 0 0 1px;
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-shell {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-ocean-dark);
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  box-shadow: 0 0 24px rgba(79, 179, 191, 0.45);
  font-size: 13px;
}

.logo-text {
  font-size: 24px;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-sea-foam);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--color-ocean-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 37, 64, 0.88), rgba(10, 37, 64, 0.35), rgba(10, 37, 64, 0.76)),
    linear-gradient(0deg, rgba(10, 37, 64, 0.95), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: center;
}

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

.hero-kicker,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-sunset);
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero-copy h2 {
  margin-top: 18px;
  color: var(--color-sea-foam);
  font-size: clamp(24px, 3vw, 42px);
}

.hero-copy p,
.page-hero p,
.section-heading p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

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

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(79, 179, 191, 0.20);
  border: 1px solid rgba(79, 179, 191, 0.34);
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #062033;
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  box-shadow: 0 12px 28px rgba(79, 179, 191, 0.30);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

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

.inline-button {
  margin-top: 22px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-coral);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

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

.section-spacing {
  padding: 86px 0;
}

.soft-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-card-link,
.poster-frame,
.movie-card-body {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.year-badge,
.type-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: 12px;
  background: var(--color-sunset);
}

.type-badge {
  right: 12px;
  background: rgba(0, 0, 0, 0.48);
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-card-title {
  color: var(--color-sea-foam);
}

.movie-card-meta,
.movie-card-desc,
.movie-card-tags {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

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

.movie-card-tags {
  color: rgba(255, 255, 255, 0.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile {
  display: grid;
  gap: 14px;
  min-height: 238px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.category-tile strong,
.category-panel strong {
  color: var(--color-sea-foam);
  font-size: 20px;
}

.category-tile em,
.category-panel em {
  color: rgba(255, 255, 255, 0.70);
  font-style: normal;
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 13px;
  list-style: none;
}

.rank-item {
  border-radius: 18px;
  overflow: hidden;
}

.rank-link {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) 138px;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  color: var(--color-sunset);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 18px;
}

.rank-copy em,
.rank-copy span,
.heat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: normal;
}

.rank-copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.heat-box {
  display: grid;
  gap: 8px;
}

.heat-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.heat-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-sea-foam), var(--color-sunset));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 58px;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 179, 191, 0.20), transparent 30%),
    linear-gradient(135deg, rgba(10, 37, 64, 0.90), rgba(46, 107, 168, 0.62));
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 159, 67, 0.18);
  filter: blur(8px);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 18px;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.select-box span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  outline: none;
  background: rgba(0, 0, 0, 0.20);
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--color-sea-foam);
  box-shadow: 0 0 0 3px rgba(79, 179, 191, 0.18);
}

.no-result {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

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

.category-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.category-panel-link {
  position: relative;
  display: block;
  min-height: 300px;
}

.category-panel-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.panel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.15));
}

.panel-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.detail-shell {
  padding: 44px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.58);
}

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

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

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

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.70));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--color-ocean-dark);
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  font-size: 28px;
  box-shadow: 0 0 36px rgba(79, 179, 191, 0.50);
}

.detail-copy,
.info-panel,
.cover-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.detail-copy h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.lead-text {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.detail-copy h2,
.info-panel h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-sea-foam);
  font-size: 24px;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
}

.cover-panel {
  margin-top: 0;
}

.cover-panel img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.info-panel dl {
  display: grid;
  gap: 14px;
}

.info-panel div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.info-panel dt {
  color: rgba(255, 255, 255, 0.48);
}

.info-panel dd {
  color: rgba(255, 255, 255, 0.84);
}

.info-panel a {
  color: var(--color-sea-foam);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 37, 64, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 30px;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p,
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-content,
  .two-column,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-shell {
    height: 64px;
  }

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

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

  .hero-content {
    display: block;
  }

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

  .hero-copy p,
  .page-hero p,
  .section-heading p {
    font-size: 16px;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

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

  .section-spacing {
    padding: 60px 0;
  }

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

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

  .rank-link {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .heat-box {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .feature-grid,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-copy span {
    display: none;
  }
}
