:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-light: #1e293b;
  --border: #1f2a44;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --orange: #f97316;
  --green: #22c55e;
  --shadow: 0 24px 60px rgba(6, 182, 212, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32rem), var(--bg);
  color: var(--text);
}

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: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.28);
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.header-search {
  width: 250px;
  display: flex;
  align-items: center;
  background: #0b1220;
  border: 1px solid #24324c;
  border-radius: 12px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
}

.header-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-panel a {
  display: block;
  color: #cbd5e1;
  padding: 10px 0;
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.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 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(15, 23, 42, 0.92) 34%, rgba(15, 23, 42, 0.42) 65%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  display: grid;
  gap: 20px;
}

.hero-kicker,
.hero-tags,
.tag-row,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker {
  color: #67e8f9;
  font-size: 14px;
}

.hero-kicker span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #a5f3fc;
  padding: 6px 12px;
}

.hero-kicker b {
  font-weight: 500;
  color: #bae6fd;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.ghost-btn {
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.54);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.9);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.hero-category-row {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: min(980px, calc(100% - 40px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-category-row a {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(12px);
}

.hero-category-row.compact {
  position: static;
  justify-content: flex-start;
  transform: none;
  margin-top: 22px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  gap: 72px;
}

.top-page {
  padding-top: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading.orange span {
  background: linear-gradient(180deg, var(--orange), #ef4444);
}

.section-heading.green span {
  background: linear-gradient(180deg, var(--green), #10b981);
}

.section-heading.blue span {
  background: linear-gradient(180deg, var(--blue), #38bdf8);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.panel-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

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

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

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

.movie-card {
  min-width: 0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 24px 44px rgba(6, 182, 212, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.08) 58%, transparent);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  border-radius: 8px;
  color: white;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  padding: 5px 8px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.play-hover {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-info h3,
.wide-card h3,
.rank-main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.movie-info h3 a:hover,
.wide-card h3 a:hover,
.rank-main h3 a:hover {
  color: #67e8f9;
}

.movie-info p,
.wide-card p,
.rank-main p,
.info-panel p,
.page-hero p,
.category-tile p,
.footer-about p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-meta {
  color: #94a3b8;
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #475569;
}

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

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

.category-tile {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.68));
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: var(--shadow);
}

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

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

.wide-card,
.rank-row {
  display: flex;
  gap: 18px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  padding: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wide-card:hover,
.rank-row:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(6, 182, 212, 0.3);
}

.wide-cover,
.rank-thumb {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.wide-cover img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 24rem), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  padding: 44px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #24324c;
  border-radius: 12px;
  outline: 0;
  color: white;
  background: #0b1220;
  padding: 0 14px;
}

.empty-state {
  display: none;
  margin: 0 0 20px;
  color: #cbd5e1;
}

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

.rank-num {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-weight: 900;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.detail-page {
  min-height: 100vh;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: white;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.hidden {
  display: none;
}

.player-cover-bg,
.player-cover-mask {
  position: absolute;
  inset: 0;
}

.player-cover-bg {
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.7);
  transform: scale(1.04);
}

.player-cover-mask {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.78) 58%);
}

.big-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.34);
  font-size: 34px;
  padding-left: 4px;
}

.info-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  padding: 24px;
}

.info-panel h1,
.info-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
}

.info-panel h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.detail-meta {
  font-size: 14px;
  margin-bottom: 18px;
}

.tag-row {
  gap: 8px;
}

.tag-row span {
  font-size: 13px;
}

.lead-text {
  color: #dbeafe !important;
  margin-bottom: 12px !important;
}

.detail-side {
  min-width: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
}

.related-item img {
  grid-row: 1 / 3;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item span {
  align-self: end;
  font-weight: 700;
  line-height: 1.4;
}

.related-item small {
  align-self: start;
  color: #94a3b8;
}

.related-item:hover span {
  color: #67e8f9;
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
  }

  .movie-grid,
  .all-grid,
  .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-showcase,
  .category-showcase.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

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

  .header-search {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    top: 44%;
  }

  .hero-arrow {
    display: none;
  }

  .hero-category-row {
    bottom: 74px;
  }

  .page-shell {
    padding: 48px 0;
    gap: 48px;
  }

  .panel-section,
  .page-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .movie-grid,
  .all-grid,
  .featured-grid,
  .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wide-grid,
  .category-showcase,
  .category-showcase.large {
    grid-template-columns: 1fr;
  }

  .wide-cover,
  .rank-thumb {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

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

  .rank-row {
    gap: 12px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .movie-info {
    padding: 11px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-meta {
    font-size: 11px;
  }

  .wide-card,
  .rank-row {
    padding: 10px;
  }
}
