:root {
  --ocean-deep: #0a4a6b;
  --ocean-blue: #1a7fa0;
  --ocean-light: #4fb3d4;
  --sand-light: #f5ebe0;
  --sand-warm: #e3d5ca;
  --coral-accent: #ff6b6b;
  --coral-light: #ff9999;
  --seafoam: #88d4ab;
  --sunset-orange: #ff9f1c;
  --cloud-white: #ffffff;
  --mist: #f8fbfc;
  --ink: #1a1a1a;
  --muted: #6c757d;
  --line: rgba(10, 74, 107, 0.12);
  --shadow: 0 18px 45px rgba(10, 74, 107, 0.18);
  --shadow-soft: 0 10px 30px rgba(10, 74, 107, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(136, 212, 171, 0.22), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbfd 46%, #f5ebe0 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--cloud-white);
  background: rgba(10, 74, 107, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1220px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--seafoam), var(--sand-light));
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(136, 212, 171, 0.28);
}

.brand-name {
  font-size: 22px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.quick-search,
.search-page-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-search input,
.mobile-search input,
.quick-search input,
.search-page-form input,
.local-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.header-search input {
  width: 210px;
  padding: 11px 14px;
  color: #ffffff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.header-search button,
.mobile-search button,
.quick-search button,
.search-page-form button {
  border: 0;
  padding: 11px 18px;
  color: var(--ocean-deep);
  background: var(--seafoam);
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

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

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 14px;
  flex-wrap: wrap;
}

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

.mobile-search {
  flex: 1 0 100%;
}

.mobile-search input {
  padding: 11px 14px;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--ocean-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 74, 107, 0.95) 0%, rgba(10, 74, 107, 0.72) 42%, rgba(10, 74, 107, 0.18) 100%),
    radial-gradient(circle at 72% 24%, rgba(255, 159, 28, 0.22), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--seafoam);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-row,
.detail-tags,
.movie-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a {
  padding: 6px 12px;
  color: var(--ocean-deep);
  background: rgba(136, 212, 171, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--seafoam), var(--sand-light));
  box-shadow: 0 14px 32px rgba(136, 212, 171, 0.26);
}

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

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 74, 107, 0.2);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(10, 74, 107, 0.42);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
  background: var(--seafoam);
}

.quick-panel {
  margin-top: -46px;
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: var(--ocean-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.quick-panel p {
  margin: 0;
  color: var(--muted);
}

.quick-search {
  background: #ffffff;
  border: 1px solid var(--line);
}

.quick-search input,
.search-page-form input {
  padding: 15px 18px;
  color: var(--ink);
}

.page-section,
.page-main {
  padding: 58px 0;
}

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

.section-title h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.content-panel h2 {
  margin: 0;
  color: var(--ocean-deep);
  line-height: 1.18;
}

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

.section-title p,
.page-hero p,
.content-panel p,
.category-overview-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-title a,
.text-link {
  color: var(--ocean-blue);
  font-weight: 850;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 179, 212, 0.5);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(10, 74, 107, 0.72));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 38px;
  padding: 6px 10px;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--sunset-orange), var(--seafoam));
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

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

.movie-meta-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line a {
  color: var(--ocean-blue);
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--ocean-deep);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 4px 9px;
  font-size: 12px;
  background: rgba(79, 179, 212, 0.14);
  color: var(--ocean-blue);
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(10, 74, 107, 0.96), rgba(26, 127, 160, 0.84)),
    radial-gradient(circle at top right, rgba(255, 159, 28, 0.35), transparent 14rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
  color: var(--seafoam);
  font-weight: 850;
}

.category-tile strong {
  font-size: 20px;
  line-height: 1.3;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.72);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 48px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(10, 74, 107, 0.98), rgba(26, 127, 160, 0.86)),
    radial-gradient(circle at top right, rgba(136, 212, 171, 0.28), transparent 22rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.slim-hero {
  margin-top: 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.category-cover {
  overflow: hidden;
  border-radius: 16px;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0;
  color: var(--ocean-deep);
}

.mini-link-list {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  color: var(--ocean-blue);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

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

.local-search {
  max-width: 520px;
  margin-top: 24px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.local-search input {
  padding: 14px 0;
  color: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ocean-deep);
  background: #ffffff;
  font-weight: 800;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #ffffff;
  background: var(--ocean-blue);
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  padding-top: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(10, 74, 107, 0.98), rgba(26, 127, 160, 0.84)),
    radial-gradient(circle at 82% 18%, rgba(255, 159, 28, 0.26), transparent 20rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.lead-text {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags a {
  background: rgba(136, 212, 171, 0.95);
}

.detail-info .primary-button {
  margin-top: 28px;
}

.player-section,
.content-panel {
  margin-bottom: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.player-section h2,
.content-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(10, 74, 107, 0.36), rgba(0, 0, 0, 0.66)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
  text-align: center;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto;
  color: var(--ocean-deep);
  background: var(--seafoam);
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(136, 212, 171, 0.35);
}

.play-cover strong {
  font-size: 20px;
}

.content-panel p {
  color: #334155;
  font-size: 18px;
}

.related-section {
  padding-bottom: 0;
}

.search-page-form {
  max-width: 680px;
  margin-top: 26px;
  background: #ffffff;
}

.search-page-form input::placeholder,
.quick-search input::placeholder,
.local-search input::placeholder {
  color: #8b98a7;
}

.site-footer {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ocean-deep);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 750;
}

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

[hidden] {
  display: none !important;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }
}

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

  .menu-button {
    display: inline-block;
    margin-left: auto;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 76px 0 64px;
  }

  .hero-poster {
    width: 210px;
    transform: none;
  }

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

  .quick-panel {
    margin-top: -28px;
  }

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

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

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 680px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 18px;
  }

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

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .lead-text,
  .page-hero p,
  .content-panel p {
    font-size: 16px;
  }

  .hero-arrow {
    top: auto;
    bottom: 68px;
    width: 44px;
    height: 44px;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .quick-panel,
  .page-hero,
  .detail-hero,
  .player-section,
  .content-panel {
    padding: 20px;
    border-radius: 20px;
  }

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

  .quick-search,
  .search-page-form {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search button,
  .search-page-form button {
    border-radius: 0 0 18px 18px;
  }
}

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

  .hero-poster {
    display: none;
  }
}
