:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-2: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --green: #10b981;
  --green-2: #34d399;
  --yellow: #f59e0b;
  --blue: #38bdf8;
  --red: #fb7185;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0f172a 0%, #020617 55%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  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;
  white-space: nowrap;
}

.brand {
  font-size: 21px;
}

.brand:hover {
  color: var(--green-2);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.nav-search {
  flex: 1;
  max-width: 560px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  padding: 11px 120px 11px 18px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(52, 211, 153, 0.78);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.nav-search button,
.mobile-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

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

.mobile-search {
  position: relative;
  margin-bottom: 10px;
}

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

.hero-track {
  height: 100%;
  display: flex;
  transition: transform 0.55s ease;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.25), transparent 38%), #020617;
}

.hero-image,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 0 24px 76px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.9);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #cbd5e1;
}

.hero-meta {
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.25);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 34px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

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

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

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

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

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

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell.standalone {
  padding: 42px 0 72px;
}

.section-block {
  margin: 54px 0;
}

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

.section-heading.center {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.section-heading a {
  color: var(--green-2);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.68);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.35), transparent 42%), linear-gradient(135deg, #0f172a, #111827);
}

.card-cover img,
.mini-cover img,
.rank-thumb img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

.card-score,
.card-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-score {
  left: 12px;
  color: #111827;
  background: #fbbf24;
}

.card-type {
  right: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.compact .card-body h2 {
  font-size: 16px;
}

.card-body h2 a:hover {
  color: var(--green-2);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 14px;
}

.card-meta {
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

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

.tag-row span {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.tag-row.large span {
  font-size: 14px;
  padding: 7px 12px;
}

.category-band {
  margin: 60px 0;
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--line);
}

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

.category-tile,
.category-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  gap: 8px;
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f766e, #065f46);
  transition: transform 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.tile-1 {
  background: linear-gradient(135deg, #2563eb, #6d28d9);
}

.tile-2 {
  background: linear-gradient(135deg, #db2777, #7c2d12);
}

.tile-3 {
  background: linear-gradient(135deg, #ca8a04, #15803d);
}

.category-tile span,
.category-icon {
  font-size: 34px;
}

.category-tile strong,
.category-card strong {
  font-size: 20px;
}

.category-tile em,
.category-card em {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  line-height: 1.5;
}

.category-card {
  min-height: 260px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
}

.category-cover {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.category-card > *:not(.category-cover) {
  position: relative;
  z-index: 2;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.mini-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  flex: 0 0 360px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.mini-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.mini-info {
  padding: 16px;
}

.mini-info strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.mini-info em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.ranking-block {
  margin: 56px 0;
}

.ranking-list {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: rgba(15, 23, 42, 0.52);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-thumb {
  display: block;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.rank-main strong {
  display: block;
  color: #ffffff;
}

.rank-main em {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #fbbf24;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  padding: 48px;
  border-radius: 28px;
  background: radial-gradient(circle at 18% 10%, rgba(16, 185, 129, 0.28), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--line);
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.84);
  border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
  padding: 12px 14px;
  border-radius: 14px;
}

.result-line {
  min-height: 28px;
  margin: 0 0 18px;
  color: #cbd5e1;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
}

.pager a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
}

.pager a.current,
.pager a:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.88);
}

.detail-page {
  background: linear-gradient(180deg, #0f172a 0%, #020617 48%);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 32px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--green-2);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 35% 20%, rgba(16, 185, 129, 0.32), transparent 42%), #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
}

.detail-info .lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.75;
}

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

.detail-info .primary-btn {
  margin-top: 22px;
}

.detail-content {
  padding: 52px 0 80px;
}

.player-section,
.article-section,
.info-panel {
  margin-bottom: 38px;
  border-radius: 24px;
  padding: 26px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid var(--line);
}

.player-section h2,
.article-section h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), rgba(0, 0, 0, 0.74));
  font-weight: 900;
  font-size: 18px;
}

.player.is-playing .player-start {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.35);
  font-size: 28px;
  padding-left: 4px;
}

.article-section p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.info-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-panel div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
}

.info-panel dt {
  color: #94a3b8;
  font-size: 13px;
}

.info-panel dd {
  margin: 6px 0 0;
  color: #ffffff;
  font-weight: 700;
}

.sitemap-list ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list a {
  display: block;
  min-height: 82px;
  border-radius: 16px;
  padding: 16px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid var(--line);
}

.sitemap-list a:hover {
  border-color: rgba(52, 211, 153, 0.68);
}

.sitemap-list span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
  color: #cbd5e1;
}

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

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  max-width: 320px;
  color: #94a3b8;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--green-2);
}

.footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

[data-cover].image-missing {
  opacity: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .cards-4,
  .cards-3,
  .category-grid,
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-shell {
    padding: 0 16px;
  }

  .desktop-nav,
  .nav-search {
    display: none;
  }

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

  .brand {
    font-size: 18px;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    padding: 0 22px 70px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .page-shell {
    width: min(100% - 28px, 1280px);
  }

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

  .cards-4,
  .cards-3,
  .category-grid,
  .category-overview,
  .sitemap-list ul {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 30px 22px;
  }

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

  .detail-poster {
    width: min(280px, 70vw);
  }

  .ranking-item {
    grid-template-columns: 38px 74px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .mini-card {
    flex-basis: 300px;
    grid-template-columns: 120px 1fr;
  }

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