:root {
  --brand: #00a3af;
  --brand-dark: #008c97;
  --brand-soft: #33b8c2;
  --ink: #15202b;
  --muted: #657282;
  --line: #e6eef2;
  --paper: #ffffff;
  --soft: #f5fbfc;
  --shadow: 0 18px 45px rgba(0, 163, 175, 0.12);
  --shadow-strong: 0 28px 75px rgba(0, 54, 66, 0.24);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff 0%, #eaf7f8 52%, #f7fcff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 163, 175, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(18, 83, 96, 0.08);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 12px 24px rgba(0, 163, 175, 0.28);
}

.brand-text {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #364553;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #f1f8f9;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  padding: 36px 0 56px;
  overflow: hidden;
}

.hero-section::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 163, 175, 0.16), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(51, 184, 194, 0.18), transparent 35%);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 34px;
}

.hero-title-block {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title-block h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-title-block p:last-child,
.page-hero p:last-child,
.section-heading p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #052d34;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-media {
  position: relative;
  min-height: 100%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(5, 45, 52, 0.82));
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 46px 70px;
  color: #fff;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(230, 247, 248, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

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

.primary-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  box-shadow: 0 15px 30px rgba(0, 163, 175, 0.28);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.inline-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 163, 175, 0.24);
}

.hero-controls {
  position: absolute;
  left: 46px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.section-block {
  padding: 64px 0;
}

.alt-section {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(0, 163, 175, 0.08);
  border-bottom: 1px solid rgba(0, 163, 175, 0.08);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.inline-more {
  margin-top: 12px;
  padding: 10px 18px;
  color: var(--brand-dark);
  background: #e6f7f8;
}

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

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

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(0, 163, 175, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  font-weight: 900;
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-samples a {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e6f7f8;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 163, 175, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f7f9, #fff);
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9f1c, #ff5c5c);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(255, 92, 92, 0.28);
}

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

.movie-card-body h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: var(--brand);
}

.movie-card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.movie-meta-line {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #a5bdc2;
}

.text-link {
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 14px;
}

.search-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(0, 163, 175, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-weight: 800;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d5e9ed;
  border-radius: 16px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

.search-box button {
  min-width: 90px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  cursor: pointer;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
}

.compact-hero {
  background: linear-gradient(135deg, rgba(230, 247, 248, 0.86), rgba(255, 255, 255, 0.9));
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  min-height: 560px;
  color: #fff;
  background: #062a31;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 30, 0.9), rgba(4, 24, 30, 0.58), rgba(4, 24, 30, 0.86)),
    linear-gradient(0deg, rgba(4, 24, 30, 0.96), transparent 42%);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.08);
}

.detail-breadcrumbs {
  color: rgba(255, 255, 255, 0.72);
}

.detail-breadcrumbs a {
  color: #a7edf3;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  background: #e6f7f8;
}

.detail-copy h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-intro {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

.detail-tags {
  margin: 20px 0 28px;
}

.watch-section {
  padding: 64px 0 22px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #061f25;
  box-shadow: var(--shadow-strong);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #02090c;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.26), rgba(0, 63, 72, 0.46));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: 0 20px 46px rgba(0, 163, 175, 0.36);
  font-size: 34px;
}

.player-title {
  padding: 24px 28px 28px;
  color: #fff;
}

.player-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.player-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.content-card,
.facts-card {
  padding: 28px;
  border: 1px solid rgba(0, 163, 175, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.content-card h2,
.facts-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 28px;
  color: #41505d;
  font-size: 16px;
  line-height: 2;
}

.facts-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts-card li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf4f5;
}

.facts-card span {
  color: var(--muted);
}

.facts-card strong {
  text-align: right;
  color: var(--brand-dark);
}

.site-footer {
  margin-top: 20px;
  color: #d6e7ea;
  background: linear-gradient(135deg, #111827, #082f36);
}

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

.footer-grid h2 {
  margin: 0 0 16px;
  color: #78e1e9;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #a9bbc1;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #78e1e9;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #90a4aa;
  text-align: center;
  font-size: 14px;
}

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

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 163, 175, 0.18);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-shell,
  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-media::after {
    background: linear-gradient(0deg, rgba(5, 45, 52, 0.92), transparent 72%);
  }

  .hero-copy {
    justify-content: flex-start;
    padding-top: 28px;
  }

  .category-grid,
  .large-category-grid,
  .movie-grid,
  .ranking-grid,
  .small-grid,
  .full-ranking,
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(0, 163, 175, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #e6f7f8;
  }

  .hero-section {
    padding-top: 22px;
  }

  .hero-title-block {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-slider {
    min-height: 680px;
    border-radius: 26px;
  }

  .hero-copy {
    padding: 24px 24px 76px;
  }

  .hero-controls {
    left: 24px;
  }

  .category-grid,
  .large-category-grid,
  .movie-grid,
  .ranking-grid,
  .small-grid,
  .full-ranking,
  .footer-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 44px 0;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 46px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-grid {
    gap: 24px;
  }

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

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .content-card,
  .facts-card {
    padding: 22px;
  }
}
