:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f0fdff 0%, #f8fafc 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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: linear-gradient(90deg, rgba(236, 254, 255, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.22);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-panel input,
.filter-panel select {
  border: 2px solid rgba(14, 165, 233, 0.18);
  outline: none;
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.quick-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(14, 165, 233, 0.16);
  background: #ffffff;
}

.mobile-panel.open {
  display: block;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) blur(2px);
  transform: scale(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(34, 211, 238, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(8, 47, 73, 0.76) 54%, rgba(15, 23, 42, 0.52)),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.76));
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.58fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 94px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.3);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.white {
  color: var(--cyan-dark);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  cursor: pointer;
}

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.quick-search-panel,
.content-section,
.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-panel {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input {
  width: 100%;
  padding: 14px 18px;
}

.quick-search button {
  padding-inline: 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 8px 12px;
  color: var(--cyan-dark);
  background: #ecfeff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.content-section {
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--cyan-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: flex;
  min-height: 86px;
  margin-bottom: 18px;
}

.category-thumbs img {
  width: 62px;
  height: 86px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.category-thumbs img + img {
  margin-left: -18px;
}

.category-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.category-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(14, 165, 233, 0.11);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.movie-card.compact .movie-cover {
  aspect-ratio: 16 / 9;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.cover-pill {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: var(--cyan);
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 14px;
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-info h2 a:hover {
  color: var(--cyan-dark);
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 999px;
}

.cta-band {
  width: min(1240px, calc(100% - 32px));
  margin: 72px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
}

.cta-band p {
  margin: 0;
  color: #e0f2fe;
}

.page-hero {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 10%, rgba(34, 211, 238, 0.48), transparent 28%),
    linear-gradient(135deg, #0f172a, #075985 54%, #0891b2);
  overflow: hidden;
}

.page-hero.small {
  padding: 82px 0;
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.13);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

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

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

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.2);
  transform: scale(1.06);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.38), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(8, 47, 73, 0.82), rgba(15, 23, 42, 0.62));
}

.detail-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #cffafe;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-copy h1 {
  max-width: 880px;
}

.detail-line {
  max-width: 840px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
}

.detail-stats span {
  padding: 8px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 900;
}

.detail-section {
  padding-top: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

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

.big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.big-play span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 20px 46px rgba(14, 165, 233, 0.45);
}

.player-shell.is-active .big-play {
  display: none;
}

.article-card {
  padding: 34px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 950;
}

.article-card h2 + p {
  margin-top: 0;
}

.article-card p {
  margin: 0 0 28px;
  color: #334155;
  font-size: 17px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.mini-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
}

.mini-link img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  margin-top: 88px;
  color: #e2e8f0;
  background: linear-gradient(180deg, #1f2937, #0f172a);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0 32px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 24px;
  font-weight: 950;
}

.footer-brand p,
.footer-column a {
  color: #cbd5e1;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

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

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 16px 24px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .category-grid,
  .category-grid.full,
  .movie-grid,
  .movie-grid.three,
  .movie-grid.compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

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

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

  .hero-content {
    padding: 54px 0 96px;
  }

  .hero-poster {
    display: none;
  }

  .quick-search,
  .cta-band,
  .section-heading,
  .footer-inner {
    display: block;
  }

  .quick-search button {
    width: 100%;
    margin-top: 10px;
  }

  .category-grid,
  .category-grid.full,
  .movie-grid,
  .movie-grid.three,
  .movie-grid.compact-grid,
  .filter-panel,
  .filter-panel.large {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding-top: 28px;
  }

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

  .cta-band .btn {
    margin-top: 18px;
  }

  .footer-column {
    margin-top: 24px;
  }
}
