:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.6;
}

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: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.32);
  font-size: 14px;
}

.brand-name,
.footer-brand {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

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

.site-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  min-width: 0;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
  width: 230px;
}

.site-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.site-search button,
.mobile-search button,
.search-page-form button,
.btn-primary {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.34);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  padding: 10px 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn-ghost.dark {
  color: var(--gray-900);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-900);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-card);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ecfeff;
  color: var(--cyan);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

.hero-slider > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(8, 145, 178, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.24)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 132px;
  color: white;
  max-width: 1280px;
}

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

.hero-content p,
.page-hero p,
.detail-lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.card-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: white;
}

.hero-search-panel {
  position: absolute;
  right: calc((100% - min(1280px, calc(100% - 32px))) / 2);
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  color: white;
}

.hero-search-panel form {
  display: flex;
  gap: 8px;
}

.hero-search-panel input {
  width: min(420px, 42vw);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 11px 16px;
  outline: 0;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 900;
}

.hero-search-panel a {
  font-weight: 900;
  white-space: nowrap;
}

.page-main,
.detail-main {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 280px);
}

.section-block {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 0;
}

.section-heading {
  margin-bottom: 26px;
}

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

.section-heading p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a,
.related-section a {
  color: var(--cyan);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: var(--shadow-card);
  isolation: isolate;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18));
}

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

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.card-body p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #ecfeff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

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

.side-ranking {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  box-shadow: var(--shadow-card);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #ecfeff;
}

.compact-card img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-900);
}

.compact-card span {
  font-weight: 900;
}

.site-footer {
  margin-top: 82px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 17px;
}

.site-footer p {
  margin: 10px 0 0;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 14px;
}

.page-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 10px;
}

.simple-hero,
.category-hero,
.ranking-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.simple-hero p,
.category-hero p,
.ranking-hero p {
  color: var(--gray-600);
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  background: var(--slate-900);
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-800);
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-body p {
  color: var(--gray-600);
}

.category-overview-body span {
  color: var(--cyan);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  color: white;
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  padding: 120px 0 76px;
}

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

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--slate-900);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

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

.detail-lead {
  color: rgba(255, 255, 255, 0.86);
}

.meta-pills {
  margin-top: 20px;
}

.player-section,
.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 70px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.34);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.detail-article,
.detail-side {
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-card);
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.search-page-form {
  margin-top: 24px;
  max-width: 760px;
}

.search-page-form input {
  flex: 1;
  border-radius: 18px;
  padding: 16px 18px;
}

.search-page-form button {
  border-radius: 18px;
  padding: 16px 24px;
}

.empty-state {
  padding: 42px;
  border-radius: var(--radius-xl);
  background: white;
  color: var(--gray-600);
  box-shadow: var(--shadow-card);
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-search {
    margin-left: auto;
  }

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

  .split-section,
  .content-section {
    grid-template-columns: 1fr;
  }

  .side-ranking {
    position: relative;
    top: auto;
  }
}

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

  .hero-content {
    padding: 104px 0 168px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    left: 16px;
    right: 16px;
    bottom: 34px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-search-panel input {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .small-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-poster-wrap {
    max-width: 270px;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 62px;
  }

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

  .hero-slider {
    min-height: 78vh;
  }

  .hero-content h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(32px, 11vw, 48px);
  }

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

  .category-grid,
  .movie-grid,
  .small-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-link {
    align-items: start;
    flex-direction: column;
  }

  .detail-layout {
    min-height: 720px;
    padding-top: 92px;
  }

  .player-section,
  .content-section,
  .section-block {
    padding-top: 48px;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
