:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

.brand-name {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

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

.nav-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 8px 16px;
  font-weight: 700;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: grid;
  gap: 6px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
}

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 32%), linear-gradient(135deg, var(--slate-900), var(--slate-800) 45%, #0e7490);
}

.hero-section {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 84px 0;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
}

.hero-glow-a {
  top: -120px;
  right: 15%;
  background: #22d3ee;
}

.hero-glow-b {
  bottom: -160px;
  left: 8%;
  background: #2563eb;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.28);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-search {
  display: flex;
  width: min(560px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.featured-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #334155, #0e7490);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
  transform: translateZ(0);
}

.featured-card:nth-child(2) {
  transform: translateY(28px);
}

.featured-card img,
.movie-card img,
.wide-cover img,
.detail-poster img,
.related-cover img,
.overview-thumbs img {
  transition: transform 0.6s ease, opacity 0.25s ease;
}

.featured-card:hover img,
.movie-card:hover img,
.wide-card:hover img,
.detail-poster:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.featured-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.35), transparent);
}

.featured-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.featured-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.featured-text strong {
  font-size: 24px;
  line-height: 1.2;
}

.featured-text em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-play,
.poster-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.featured-play {
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
}

.featured-card:hover .featured-play,
.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 72px 0;
}

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

.section-head h2,
.side-panel h2,
.content-card h2,
.side-card h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.more-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.32), transparent 40%), linear-gradient(135deg, #1e293b, #0e7490);
}

.movie-card-small .poster-frame {
  aspect-ratio: 2 / 3;
}

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

.region-pill {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.68);
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-play {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info p,
.wide-body p {
  margin: 0 0 14px;
  color: var(--slate-600);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.soft-section {
  background: linear-gradient(135deg, var(--slate-100), rgba(207, 250, 254, 0.72));
}

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

.category-tile,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius);
  color: #fff;
  padding: 22px;
  background: linear-gradient(135deg, var(--slate-800), var(--cyan-dark));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.category-tile span,
.overview-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile strong,
.overview-copy em {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  font-style: normal;
}

.tone-pink { background: linear-gradient(135deg, #be185d, #fb7185); }
.tone-indigo { background: linear-gradient(135deg, #3730a3, #7c3aed); }
.tone-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.tone-blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.tone-amber { background: linear-gradient(135deg, #92400e, #f59e0b); }
.tone-violet { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.tone-green { background: linear-gradient(135deg, #047857, #34d399); }
.tone-slate { background: linear-gradient(135deg, #0f172a, #64748b); }
.tone-red { background: linear-gradient(135deg, #991b1b, #fb7185); }
.tone-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.tone-fuchsia { background: linear-gradient(135deg, #a21caf, #e879f9); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.wide-list {
  display: grid;
  gap: 14px;
}

.wide-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.wide-card a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.wide-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #0e7490);
}

.wide-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wide-top h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wide-top strong {
  color: var(--orange);
  font-size: 18px;
}

.wide-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.side-panel,
.side-card,
.content-card,
.player-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.side-panel,
.side-card,
.content-card {
  padding: 24px;
}

.mini-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.page-hero {
  padding: 74px 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

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

.overview-card {
  display: grid;
  min-height: 260px;
  padding: 0;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 135px;
  overflow: hidden;
}

.overview-copy {
  padding: 20px;
}

.filter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-search-wrap {
  display: flex;
}

.filter-search,
.filter-select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--slate-50);
  outline: 0;
  padding: 12px 14px;
}

.filter-search:focus,
.filter-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.ranking-list .wide-card:nth-child(-n + 3) .wide-rank {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.detail-hero {
  min-height: 570px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.05);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(14, 116, 144, 0.52));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 70px;
}

.detail-lead {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1e293b, #0e7490);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.detail-meta {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.76));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.36);
  font-size: 30px;
}

.play-layer strong {
  max-width: min(70%, 680px);
  text-align: center;
  font-size: clamp(20px, 4vw, 34px);
}

.content-card p {
  color: var(--slate-700);
  font-size: 17px;
  margin: 14px 0 0;
}

.sticky-side {
  position: sticky;
  top: 92px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--slate-100);
}

.related-cover {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #0e7490);
}

.related-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.related-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-copy em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--slate-950);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-inner,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .card-grid-three,
  .card-grid-four,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-panel {
    width: 100%;
  }
}

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

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

  .hero-section {
    padding: 56px 0;
  }

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

  .featured-card,
  .featured-card:nth-child(2) {
    min-height: 300px;
    transform: none;
  }

  .card-grid-three,
  .card-grid-four,
  .category-grid,
  .overview-grid,
  .footer-grid,
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-lead {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }
}

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

  .hero-search {
    border-radius: 22px;
  }

  .hero-search button {
    width: 100%;
  }

  .card-grid-three,
  .card-grid-four,
  .category-grid,
  .overview-grid,
  .footer-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .wide-card a,
  .related-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .wide-cover {
    aspect-ratio: 1 / 1;
  }

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

  .detail-poster {
    width: min(220px, 70vw);
  }

  .play-circle {
    width: 66px;
    height: 66px;
  }
}
