
:root {
  --bg: #08111f;
  --bg2: #0d1728;
  --card: rgba(15, 23, 42, 0.78);
  --card2: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #9fb0c7;
  --accent: #22c55e;
  --accent2: #14b8a6;
  --accent3: #2563eb;
  --shadow: 0 30px 80px rgba(3, 7, 18, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at right top, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #050b14 0%, var(--bg) 30%, #07101d 100%);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 20, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.34);
  color: white;
  font-size: 18px;
}
.logo-title { font-size: 18px; line-height: 1.1; }
.logo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #dbeafe;
}
.nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(229, 238, 252, .88);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.actions { display: flex; gap: 10px; align-items: center; }
.btn, .chip-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: .22s ease;
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: white;
  box-shadow: 0 16px 40px rgba(20, 184, 166, .18);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost {
  background: rgba(148, 163, 184, 0.10);
  color: #e5eefc;
  border: 1px solid rgba(148, 163, 184, .14);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.16); }

.mobile-toggle { display: none; }
.mobile-panel {
  display: none;
  padding: 0 0 16px;
}
.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  margin-top: 8px;
  color: #eef6ff;
}

.hero {
  padding: 30px 0 24px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 10%, rgba(20, 184, 166, 0.28), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(10, 19, 35, 0.86));
  box-shadow: var(--shadow);
}
.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.05), transparent 20%, transparent 80%, rgba(255,255,255,.04));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
  padding: 28px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: #baf8ef;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
}
.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.hero-title span {
  background: linear-gradient(90deg, #f8fafc, #7dd3fc 50%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 56ch;
  color: rgba(226, 232, 240, 0.86);
  font-size: 17px;
}
.hero-actions, .section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}
.searchbar input::placeholder { color: #91a3bb; }
.searchbar .btn-primary { padding-inline: 18px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.stat {
  border-radius: 18px;
  padding: 14px 14px 13px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.11);
}
.stat strong { display: block; font-size: 18px; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.hero-showcase {
  display: grid;
  gap: 12px;
}
.hero-carousel {
  position: relative;
  min-height: 356px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, .42);
}
.hero-slide {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide .backdrop {
  position: absolute;
  inset: 0;
  background: var(--slide-bg);
  opacity: .98;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, .22) 46%, rgba(2, 6, 23, .9) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 1;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 15, 30, 0.6);
  border: 1px solid rgba(255,255,255,.12);
  color: #eff6ff;
  font-size: 12px;
}
.hero-slide-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.12;
}
.hero-slide-text {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  max-width: 34ch;
}
.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 13px;
}
.hero-slide .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.66));
  box-shadow: 0 12px 36px rgba(2, 6, 23, .22);
  transition: transform .22s ease, box-shadow .22s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(2, 6, 23, .28); }
.mini-card .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 99, 235, .18);
  border: 1px solid rgba(96, 165, 250, .22);
  color: #bfdbfe;
  font-weight: 800;
  font-size: 12px;
}
.mini-card h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.24;
}
.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section {
  padding: 18px 0 8px;
}
.section h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
}
.section p.lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 72ch;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.movie-card, .category-card, .info-card, .rank-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .12);
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.72));
  box-shadow: 0 12px 34px rgba(2, 6, 23, .22);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.movie-card:hover, .category-card:hover, .info-card:hover, .rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(2,6,23,.32);
  border-color: rgba(34, 197, 94, .28);
}
.movie-card .poster {
  position: relative;
  min-height: 180px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--poster-bg);
}
.poster .poster-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.poster .poster-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .40);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: #fff;
}
.poster .poster-number {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  opacity: .92;
}
.poster .poster-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 12ch;
}
.poster .poster-sub {
  color: rgba(236, 253, 245, .9);
  font-size: 12px;
}
.movie-card .body {
  padding: 16px;
}
.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.excerpt {
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
  margin: 10px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .10);
  border: 1px solid rgba(148, 163, 184, .12);
  color: #dbeafe;
  font-size: 12px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  color: #d1fae5;
}
.card-link::after { content: '→'; transition: transform .2s ease; }
.movie-card:hover .card-link::after { transform: translateX(3px); }

.category-card { padding: 18px; }
.category-card h3 { margin: 0 0 8px; font-size: 20px; }
.category-card p { margin: 0; color: var(--muted); }
.category-card .count { margin-top: 12px; font-size: 13px; color: #dbeafe; }
.category-card .accent {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  margin-top: 16px;
  background: var(--cat-bar);
}

.list-rail {
  display: grid;
  gap: 10px;
}
.rank-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}
.rank-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(96, 165, 250, .20);
  font-weight: 900;
  color: #bfdbfe;
}
.rank-row h3 { margin: 0; font-size: 18px; }
.rank-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.rank-row .stats { color: #dbeafe; font-size: 13px; text-align: right; }

.page-header {
  padding: 30px 0 10px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { color: #dbeafe; }
.page-title {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}
.page-summary { color: rgba(226,232,240,.85); max-width: 78ch; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 18px;
  margin-top: 18px;
}
.detail-panel, .content-panel, .player-panel {
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: linear-gradient(180deg, rgba(15,23,42,.90), rgba(15,23,42,.76));
  box-shadow: 0 18px 42px rgba(2,6,23,.24);
}
.detail-panel { padding: 18px; }
.detail-poster {
  min-height: 420px;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--poster-bg);
  border: 1px solid rgba(255,255,255,.08);
}
.detail-poster .big-num { font-size: 72px; font-weight: 900; line-height: 1; }
.detail-poster .detail-title { font-size: clamp(30px, 4vw, 54px); line-height: 1.04; font-weight: 900; max-width: 10ch; }
.detail-poster .detail-lead { max-width: 38ch; color: rgba(226,232,240,.9); }
.detail-meta { display: grid; gap: 10px; margin-top: 16px; }
.meta-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.12);
}
.meta-card .label { color: var(--muted); font-size: 12px; }
.meta-card .value { font-weight: 700; margin-top: 2px; }

.player-panel { padding: 18px; }
.player-box {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
  background: #020617;
}
video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}
.player-meta { margin-top: 14px; color: var(--muted); }
.player-meta strong { color: #fff; }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.content-panel { padding: 18px; }
.content-panel h2 { margin-top: 0; }
.content-panel p { color: rgba(226,232,240,.88); }
.content-panel .article { white-space: pre-wrap; }

.footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148,163,184,.12);
  background: rgba(5, 11, 20, 0.7);
}
.footer-inner {
  padding: 24px 0 30px;
  color: var(--muted);
  display: grid;
  gap: 14px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 16px;
}
.footer h3 { margin: 0 0 10px; color: #fff; }
.footer a { color: #dbeafe; }
.footer small { color: var(--muted); }

.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.inline-flex { display: inline-flex; }
.spacer { height: 8px; }

@media (max-width: 1100px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  .cards-grid, .cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .actions { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-panel.is-open { display: block; }
  .hero-grid, .hero-copy, .detail-grid { gap: 14px; }
  .hero-grid { padding: 18px; }
  .hero-copy { min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-mini-list { grid-template-columns: 1fr; }
  .cards-grid, .cards-grid.three, .cards-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .container { width: min(100vw - 20px, 1280px); }
  .hero-title { font-size: 34px; }
  .hero-slide-title { font-size: 22px; }
  .cards-grid, .cards-grid.three, .cards-grid.six { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 40px minmax(0, 1fr); }
  .rank-row .stats { grid-column: 2 / -1; text-align: left; }
}
