
:root {
  --bg: #050816;
  --bg-2: #0b1220;
  --panel: rgba(15, 23, 42, 0.66);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.10), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.10), transparent 22%),
    linear-gradient(180deg, #030712 0%, #050816 36%, #08111d 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa 55%, #c084fc);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.20);
}
.brand-text {
  font-size: clamp(20px, 2.3vw, 30px);
  background: linear-gradient(90deg, #67e8f9, #60a5fa 52%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid transparent;
  transition: 0.22s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(8, 47, 73, 0.52);
}
.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-carousel {
  position: relative;
  min-height: 72vh;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.48) 38%, rgba(2, 6, 23, 0.94) 100%),
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 28%);
}
.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(24px, 5vw, 58px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 26px;
  align-items: end;
}
.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #bff9ff;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.hero-title {
  margin: 12px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  max-width: 12ch;
  text-wrap: balance;
}
.hero-desc {
  max-width: 60ch;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 15px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.badge,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.60);
  color: #dce8ff;
}
.badge {
  padding: 7px 12px;
  font-size: 13px;
}
.tag,
.chip {
  padding: 6px 10px;
  font-size: 12px;
  color: #cfeaff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.22s ease;
}
.btn-primary {
  color: #04111f;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  color: #f8fbff;
  background: rgba(15, 23, 42, 0.50);
  border-color: rgba(148, 163, 184, 0.20);
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.60);
}
.hero-side {
  align-self: stretch;
  display: grid;
  gap: 12px;
}
.hero-side-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
}
.hero-side-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #d6f2ff;
  letter-spacing: 0.08em;
}
.hero-mini-list {
  display: grid;
  gap: 10px;
}
.hero-mini-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.hero-mini-item img {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}
.hero-mini-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.hero-mini-item span {
  font-size: 12px;
  color: var(--muted);
}
.hero-controls {
  position: absolute;
  inset: auto 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero-arrows,
.hero-dots {
  pointer-events: auto;
}
.hero-arrows {
  display: flex;
  gap: 10px;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  background: rgba(0,0,0,0.36);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(0,0,0,0.52); }
.hero-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: 0.22s ease;
}
.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
}
.section {
  padding: 30px 0 10px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}
.section-subtitle {
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.7;
}
.section-link {
  color: #9be7ff;
  font-weight: 700;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movie-card,
.theme-card,
.panel,
.rank-card,
.search-toolbar,
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.movie-card,
.theme-card,
.rank-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.movie-card:hover,
.theme-card:hover,
.rank-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.78);
}
.movie-card-link,
.theme-card-link {
  display: block;
  height: 100%;
}
.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}
.movie-card:hover .poster,
.theme-card:hover .poster {
  transform: scale(1.05);
}
.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,0.65) 100%);
}
.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #effcff;
  background: rgba(2, 132, 199, 0.88);
  box-shadow: 0 10px 20px rgba(2,132,199,0.18);
}
.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  backdrop-filter: blur(4px);
}
.movie-card-body {
  padding: 14px 14px 16px;
}
.movie-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.movie-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.movie-meta,
.movie-desc,
.rank-meta,
.detail-meta,
.footer-grid p,
.footer-grid li,
.search-hint,
.breadcrumb,
.detail-note,
.theme-card p {
  color: var(--muted);
}
.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  line-height: 1.65;
  font-size: 13px;
}
.movie-desc { min-height: 3.2em; }
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.movie-rating {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148,163,184,0.16);
  color: #e2e8f0;
  font-weight: 800;
}
.rating-hot { color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.rating-good { color: #67e8f9; border-color: rgba(34,211,238,0.25); }
.theme-card-body {
  padding: 18px;
}
.theme-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.theme-card .sample-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.theme-card .sample-mini {
  display: grid;
  gap: 8px;
}
.theme-card .sample-mini img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}
.panel {
  padding: 22px;
}
.search-toolbar {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}
.filter-grid input,
.filter-grid select,
.simple-filter input {
  width: 100%;
  padding: 12px 14px;
  color: #e8f2ff;
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 14px;
  outline: none;
}
.filter-grid input:focus,
.filter-grid select:focus,
.simple-filter input:focus {
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}
.search-hint { font-size: 13px; }
.detail-hero {
  padding: 28px 0 8px;
}
.breadcrumb {
  margin: 0 0 14px;
  font-size: 13px;
}
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 18px;
  padding: 18px;
}
.detail-poster {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2,6,23,0.66) 100%);
}
.detail-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.detail-desc {
  color: #d9e6fb;
  line-height: 1.9;
  font-size: 15px;
  margin: 0;
}
.detail-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.detail-point {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(148,163,184,0.12);
}
.detail-point h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #dff7ff;
}
.detail-point p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}
.player-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid rgba(148,163,184,0.16);
}
.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.14);
}
.player-box video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-tip {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.sidebar-stack {
  display: grid;
  gap: 18px;
}
.section-list {
  display: grid;
  gap: 14px;
}
.rank-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}
.rank-card img {
  width: 88px;
  height: 132px;
  object-fit: cover;
}
.rank-card-body {
  padding: 14px 14px 14px 0;
}
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  color: #03111f;
  font-weight: 900;
  margin-bottom: 10px;
}
.rank-title {
  margin: 0 0 8px;
  font-size: 16px;
}
.rank-meta { margin: 0; font-size: 13px; }
.mini-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15,23,42,0.56);
  border: 1px solid rgba(148,163,184,0.12);
  transition: 0.22s ease;
}
.mini-card:hover { border-color: rgba(34,211,238,0.28); transform: translateY(-2px); }
.mini-card img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}
.mini-card h4,
.mini-card p { margin: 0; }
.mini-card h4 { font-size: 14px; margin-bottom: 4px; }
.mini-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.category-head {
  display: grid;
  gap: 12px;
  padding: 22px;
  margin: 18px 0 22px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 32%),
    rgba(15, 23, 42, 0.56);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.category-head h1,
.page-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
}
.category-head p,
.page-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 24px;
  padding: 42px 0 20px;
}
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2,6,23,0.12), rgba(2,6,23,0.55));
}
.site-footer h3,
.site-footer h4 {
  margin: 0 0 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer a { color: #cfeaff; }
.site-footer a:hover { color: #fff; }
.footer-copy {
  padding: 0 0 30px;
  color: #7d8ca6;
  font-size: 12px;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.section-gap { height: 12px; }
.hidden { display: none !important; }
@media (max-width: 1180px) {
  .hero-grid,
  .detail-layout,
  .detail-card,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; }
  .hero-carousel { min-height: 82vh; }
  .hero-content { position: absolute; inset: auto 0 0 0; }
  .hero-side { display: none; }
  .grid-4,
  .grid-3,
  .grid-5,
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { max-width: none; }
  .hero-controls { inset: auto 0 14px 0; }
  .hero-arrows { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 20px, 1360px); }
  .nav-link { padding: 8px 11px; }
  .grid-4,
  .grid-3,
  .grid-5,
  .grid-2 { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 90vh; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 14px; }
  .section { padding-top: 22px; }
  .movie-title { font-size: 15px; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .rank-card-body { padding: 0 14px 14px; }
}
