:root {
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 18%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.96), rgba(6, 182, 212, 0.94));
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background: var(--slate-950);
}

.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;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.15);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 42%, rgba(20, 184, 166, 0.3), transparent 30%), linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.84));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 690px;
  margin: 0 auto;
  padding: 88px 22px 110px;
  display: grid;
  grid-template-columns: 1.08fr 0.62fr;
  gap: 48px;
  align-items: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--teal-bright), var(--cyan));
  box-shadow: 0 18px 35px rgba(20, 184, 166, 0.28);
}

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

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ghost-btn.dark {
  color: var(--slate-800);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px rgba(15, 23, 42, 0.08);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: transparent;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  width: 28px;
  background: #67e8f9;
}

main,
.page-main,
.detail-main {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.quick-strip {
  margin: 28px 0 10px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.quick-strip a {
  white-space: nowrap;
  color: var(--teal);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ecfeff;
}

.content-section,
.category-overview,
.page-title,
.search-panel,
.detail-hero,
.detail-section {
  margin-top: 34px;
}

.content-section {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.content-section.tinted {
  background: linear-gradient(135deg, #ecfeff, #fff1f2);
}

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

.section-head h2,
.detail-section h2,
.category-overview h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.category-overview p,
.footer-grid p,
.detail-section p {
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--teal);
  font-size: 14px;
  padding: 10px 16px;
  background: #ecfeff;
}

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--teal));
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  text-align: center;
  padding: 7px 9px;
  background: linear-gradient(135deg, var(--rose), #f97316);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--slate-900);
  font-weight: 900;
}

.movie-info h3 a:hover {
  color: var(--teal);
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
}

.movie-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span,
.detail-tags a {
  color: var(--teal);
  background: #ecfeff;
}

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

.category-card {
  min-height: 188px;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid rgba(20, 184, 166, 0.16);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.category-card span {
  display: block;
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card strong {
  display: block;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.7;
}

.mini-links {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.mini-links a {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-main {
  padding-bottom: 40px;
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(circle at 80% 12%, rgba(20, 184, 166, 0.55), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--teal));
  box-shadow: var(--shadow);
}

.page-title h1 {
  font-size: clamp(44px, 7vw, 78px);
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--slate-800);
  background: #f8fafc;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.category-overview {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.overview-copy {
  border-radius: 20px;
  padding: 28px;
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 0;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-main {
  padding-bottom: 40px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.18), rgba(2, 6, 23, 0.74));
  text-align: center;
  padding: 26px;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-bright), var(--cyan));
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.32);
  font-size: 34px;
}

.player-overlay strong {
  max-width: 780px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.18;
}

.detail-copy {
  border-radius: 30px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  color: var(--slate-900);
  font-size: clamp(34px, 5vw, 58px);
}

.detail-line {
  margin: 20px 0 0;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

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

.detail-section {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-section p {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--slate-700);
}

.site-footer {
  margin-top: 48px;
  padding: 46px 22px 28px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  color: #cbd5e1;
  margin-top: 9px;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1240px, 100%);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

.searchable-item.is-hidden {
  display: none;
}

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

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    padding: 12px 16px;
  }

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

  .nav-links {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.98);
    box-shadow: var(--shadow);
  }

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

  .hero-carousel,
  .hero-inner {
    min-height: 740px;
  }

  .hero-inner {
    padding: 58px 20px 104px;
  }

  main,
  .page-main,
  .detail-main {
    width: min(100% - 28px, 1240px);
  }

  .content-section,
  .page-title,
  .detail-section,
  .detail-copy {
    padding: 22px;
  }

  .movie-grid,
  .full-grid,
  .category-grid,
  .overview-movies,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .player-shell,
  .movie-player {
    min-height: 310px;
  }

  .page-title {
    border-radius: 24px;
  }

  .footer-grid {
    gap: 18px;
  }
}
