:root {
  --bg: #f8fafc;
  --bg-soft: #eef6f7;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --teal: #0fbaa8;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --red: #ef4444;
  --yellow: #f59e0b;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(15, 186, 168, 0.3);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--teal-dark);
  background: #ecfeff;
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select,
.search-hero input,
.search-hero select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  width: 230px;
  padding: 8px 4px 8px 12px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.ghost-button,
.filter-panel button,
.search-hero button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.filter-panel button:hover,
.search-hero button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-slider {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: #ffffff;
  background: #06151f;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.05);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.42), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #cffafe;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-copy p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  color: #e0f2fe;
  margin-bottom: 24px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-meta span,
.rank-meta span {
  background: #f8fafc;
  border-color: var(--line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-search {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-search input {
  padding: 12px 8px 12px 16px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.hero-rank-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.hero-rank-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rank-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.rank-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 900;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.page-section,
.detail-wrap,
.page-hero,
.wide-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.wide-band {
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.movie-grid.feature-grid {
  grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 0.82fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.26), transparent 30%),
    linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.year-badge,
.play-badge,
.score-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
}

.play-badge {
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.32);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--teal-dark);
}

.card-meta {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  color: #475569;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  background: #ecfeff;
}

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

.category-card,
.stat-card,
.content-card,
.rank-row,
.catalog-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 210px;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(8, 145, 178, 0.1));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.category-count {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #0f766e;
  font-weight: 900;
  border-radius: 999px;
  background: #ccfbf1;
}

.page-hero {
  padding: 70px 0 38px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.34), transparent 30%),
    linear-gradient(135deg, #0f766e, #0891b2 52%, #164e63);
  box-shadow: var(--shadow-lg);
}

.page-hero-card p {
  color: #e0f2fe;
  max-width: 860px;
}

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

.stat-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.stat-card span {
  color: #cffafe;
}

.filter-panel,
.search-hero {
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px auto;
  gap: 12px;
  align-items: center;
}

.filter-panel label,
.search-hero label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
}

.filter-count {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 120px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-row .rank-number {
  margin: auto;
}

.rank-row img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.rank-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.score-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 900;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 130px 160px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.catalog-row:hover {
  transform: translateX(4px);
  border-color: rgba(20, 184, 166, 0.4);
}

.catalog-title {
  font-weight: 900;
}

.catalog-meta {
  color: var(--muted);
  font-size: 14px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 42px 0 72px;
}

.player-card,
.detail-info,
.aside-card,
.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.site-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 22% 14%, rgba(20, 184, 166, 0.36), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 55%, #164e63);
}

.site-player video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 44px rgba(8, 145, 178, 0.42);
  cursor: pointer;
}

.player-status {
  margin: 10px 0 0;
  color: #cffafe;
}

.detail-info {
  padding: 28px;
}

.detail-title {
  margin-bottom: 22px;
}

.detail-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-block h2,
.detail-block h3,
.aside-card h2,
.related-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-block p {
  margin: 0 0 12px;
  color: #334155;
}

.aside-card,
.related-card {
  padding: 22px;
}

.aside-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.side-list {
  display: grid;
  gap: 10px;
}

.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #334155;
  font-weight: 700;
}

.side-list a:last-child {
  border-bottom: 0;
}

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

.search-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  gap: 12px;
  align-items: center;
}

.empty-state {
  padding: 50px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.site-footer {
  margin-top: 32px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 0;
  max-width: 560px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #e0f2fe;
}

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

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

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

  .hero-panel {
    max-width: 640px;
  }

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

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

@media (max-width: 820px) {
  .hero-slider,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 74px 0 92px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.feature-grid,
  .related-grid,
  .category-strip,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .search-hero,
  .rank-row,
  .catalog-row {
    grid-template-columns: 1fr;
  }

  .score-pill {
    justify-self: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
  }

  .logo-text {
    font-size: 19px;
  }

  .mobile-panel nav,
  .movie-grid,
  .movie-grid.feature-grid,
  .related-grid,
  .category-strip,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-section,
  .detail-wrap,
  .page-hero,
  .wide-section {
    width: min(100% - 20px, 1280px);
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .hero-search button {
    width: 100%;
    text-align: center;
  }
}
