:root {
  --deepblue-950: #001018;
  --deepblue-900: #00151f;
  --deepblue-800: #002534;
  --ocean-900: #003844;
  --ocean-800: #00444e;
  --ocean-700: #006575;
  --ocean-600: #00879c;
  --ocean-500: #00a9c3;
  --ocean-200: #99dde7;
  --ocean-100: #cceef3;
  --sand-50: #fff9ea;
  --sand-100: #f5edd6;
  --sand-700: #7b6f57;
  --coral-600: #cc543c;
  --coral-500: #ff694b;
  --coral-400: #ff876f;
  --coral-200: #ffc3b7;
  --white: #ffffff;
  --muted: #d8eef3;
  --shadow-ocean: 0 18px 55px rgba(0, 169, 195, 0.18);
  --shadow-card: 0 16px 40px rgba(0, 21, 31, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--deepblue-950), var(--deepblue-900) 32%, #031d28 100%);
  color: var(--white);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 21, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ocean-500), var(--coral-500));
  box-shadow: 0 8px 22px rgba(255, 105, 75, 0.28);
  font-size: 14px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--ocean-100);
  transition: all 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.top-search,
.mobile-search,
.search-band form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-band input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 210px;
  padding: 10px 14px;
}

.top-search input::placeholder,
.mobile-search input::placeholder,
.search-band input::placeholder,
.filter-panel input::placeholder {
  color: var(--ocean-200);
}

.top-search input:focus,
.mobile-search input:focus,
.search-band input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--coral-400);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 135, 111, 0.13);
}

.top-search button,
.mobile-search button,
.search-band button {
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--coral-500);
  padding: 10px 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-band button:hover {
  background: var(--coral-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 14px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deepblue-900), var(--ocean-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(0, 169, 195, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(0, 16, 24, 0.96), rgba(0, 21, 31, 0.72) 46%, rgba(0, 21, 31, 0.3)),
    linear-gradient(0deg, var(--deepblue-900), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 96px 24px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-200);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-movie-title {
  margin-top: 18px !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  color: var(--ocean-100);
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ocean-100);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

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

.compact-actions {
  margin-top: 22px;
}

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  padding: 13px 22px;
  box-shadow: 0 14px 28px rgba(255, 105, 75, 0.25);
}

.ghost-btn,
.section-more,
.text-link {
  color: var(--ocean-100);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ocean);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: all 0.22s ease;
}

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

.search-band,
.category-strip,
.content-section,
.page-main,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -36px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(0, 68, 78, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 4;
}

.search-band h2,
.section-heading h2,
.detail-text h2,
.sitemap-block h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.search-band input {
  width: 100%;
  padding: 14px 16px;
}

.search-band button {
  padding: 14px 20px;
  white-space: nowrap;
}

.category-strip,
.content-section {
  padding: 72px 24px 0;
}

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

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

.category-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 169, 195, 0.24);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.35s ease;
}

.category-card:hover img,
.poster-link:hover img {
  transform: scale(1.08);
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 21, 31, 0.92));
  width: 100%;
}

.category-card p {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 20px;
}

.category-card span {
  color: var(--ocean-100);
  font-size: 13px;
  line-height: 1.6;
}

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: var(--white);
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 12px;
  left: 12px;
  background: rgba(0, 21, 31, 0.76);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(255, 105, 75, 0.86);
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: rgba(0, 169, 195, 0.88);
}

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

.movie-title {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.movie-title:hover {
  color: var(--coral-400);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--ocean-100);
  line-height: 1.65;
  font-size: 14px;
}

.movie-line {
  color: rgba(216, 238, 243, 0.88);
  margin-top: 10px;
}

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

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

.page-main {
  padding: 40px 24px 76px;
}

.page-hero {
  min-height: 330px;
  border-radius: var(--radius-xl);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 169, 195, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(0, 68, 78, 0.92), rgba(0, 21, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

.slim-hero {
  min-height: 240px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover {
  min-height: 230px;
  overflow: hidden;
}

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

.category-overview-card > div {
  padding: 28px;
}

.category-overview-card h2,
.category-overview-card p {
  margin: 0 0 14px;
}

.category-overview-card p {
  color: var(--ocean-100);
  line-height: 1.7;
}

.category-overview-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.category-overview-card li a {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ocean-100);
  background: rgba(255, 255, 255, 0.09);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 14px 15px;
}

.filter-panel select {
  color: var(--white);
}

.filter-panel option {
  color: var(--deepblue-900);
}

.filter-empty {
  display: none;
  margin: 20px 0;
  padding: 22px;
  border-radius: var(--radius-md);
  color: var(--ocean-100);
  background: rgba(255, 255, 255, 0.08);
}

.filter-empty.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--ocean-100);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

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

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 21, 31, 0.08), rgba(0, 21, 31, 0.72));
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--coral-500), var(--ocean-500));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  font-size: 28px;
}

.detail-info {
  border-radius: var(--radius-xl);
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-line {
  color: var(--muted);
  line-height: 1.8;
  margin: 18px 0;
}

.detail-tags {
  margin: 22px 0 26px;
}

.wide-btn {
  width: 100%;
}

.detail-text {
  margin-top: 34px;
  border-radius: var(--radius-xl);
  padding: 38px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

.detail-text h2 {
  margin-top: 0;
}

.detail-text h2:not(:first-child) {
  margin-top: 32px;
}

.detail-text p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 17px;
}

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

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.sitemap-block {
  border-radius: var(--radius-lg);
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-block ul {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.sitemap-block li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.sitemap-block a {
  color: var(--ocean-100);
}

.sitemap-block a:hover {
  color: var(--coral-400);
}

.sitemap-block span {
  color: var(--coral-200);
  font-size: 12px;
}

.site-footer {
  padding: 70px 24px 28px;
  color: var(--ocean-100);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 26px;
  border-radius: var(--radius-xl);
  padding: 36px;
  background: rgba(0, 21, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell h3 {
  color: var(--white);
  margin: 0 0 16px;
}

.footer-shell p {
  line-height: 1.75;
  margin: 12px 0 0;
}

.footer-shell a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--ocean-100);
}

.footer-shell a:hover {
  color: var(--coral-400);
}

.footer-bottom {
  text-align: center;
  color: var(--ocean-200);
  margin-top: 22px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-shell {
    padding: 12px 18px;
  }

  .hero-slider,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding: 82px 18px 84px;
  }

  .search-band {
    grid-template-columns: 1fr;
    margin: -22px 18px 0;
    padding: 22px;
  }

  .search-band form {
    flex-direction: column;
    align-items: stretch;
  }

  .category-strip,
  .content-section,
  .page-main {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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

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

  .page-hero {
    padding: 34px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .hero-actions a,
  .section-more {
    width: 100%;
  }

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

  .hero-content h1,
  .hero-content h2,
  .page-hero h1 {
    font-size: 34px;
  }

  .detail-info,
  .detail-text,
  .page-hero {
    padding: 24px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 22px;
  }

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

  .sitemap-block ul {
    columns: 1;
  }
}
