:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-soft: rgba(30, 41, 59, 0.46);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --brand: #f59e0b;
  --brand-2: #f97316;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.09), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
}

.site-logo-text,
.footer-logo span:last-child {
  font-size: 21px;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fbbf24;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.12));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(30, 41, 59, 0.65);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 14px 16px;
}

.page-main {
  overflow: hidden;
}

.inner-page {
  padding-top: 92px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.24)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.3) 46%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 128px 0 74px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-kicker,
.detail-kicker,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.detail-kicker span,
.card-meta span,
.hero-tags span,
.tag-row span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero-kicker span,
.detail-kicker span {
  padding: 6px 11px;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.card-tags span {
  padding: 5px 10px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.site-search button,
.filter-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.site-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.2);
}

.ghost-btn,
.filter-search button {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.7);
  transition: 0.22s ease;
  cursor: pointer;
}

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

.search-band {
  position: relative;
  z-index: 8;
  margin-top: -20px;
}

.search-band-inner,
.filter-panel,
.page-hero,
.detail-article,
.side-info,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band-inner {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-article h1 {
  margin: 0;
  letter-spacing: -0.035em;
}

.search-band h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.search-band p,
.section-head p,
.page-hero p,
.detail-article p,
.category-tile p,
.category-overview-card p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.site-search,
.filter-search {
  display: flex;
  gap: 10px;
}

.site-search input,
.filter-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: #f8fafc;
  outline: 0;
  background: rgba(2, 6, 23, 0.62);
}

.site-search input:focus,
.filter-search input:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.quick-categories,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip,
.filter-row button {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.48);
  transition: 0.22s ease;
}

.category-chip {
  padding: 10px 14px;
}

.filter-row button {
  padding: 8px 12px;
  cursor: pointer;
}

.category-chip:hover,
.filter-row button:hover,
.filter-row button.is-active {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.content-section {
  padding: 62px 0 0;
}

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-head p {
  margin: 8px 0 0;
}

.section-more {
  color: #fbbf24;
  font-weight: 800;
}

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

.movie-card,
.wide-card,
.compact-card,
.category-tile,
.category-overview-main {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.movie-card:hover,
.wide-card:hover,
.compact-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.12);
}

.poster-frame,
.wide-card-image,
.compact-thumb,
.side-poster {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.wide-card-image img,
.compact-thumb img,
.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.poster-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  font-size: 12px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.28s ease;
}

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

.movie-card-body {
  padding: 14px;
}

.card-meta {
  margin-bottom: 9px;
}

.card-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h2,
.wide-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p,
.wide-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags span {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.56);
  border-color: rgba(148, 163, 184, 0.16);
}

.two-column-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
}

.compact-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.compact-card span,
.compact-card em {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
}

.compact-card strong {
  display: block;
  margin: 4px 0;
  color: #f8fafc;
  font-size: 15px;
}

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

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

.category-tile {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent),
    rgba(15, 23, 42, 0.58);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 800;
}

.category-tile p {
  margin: 0;
  font-size: 14px;
}

.page-hero {
  padding: 36px;
}

.compact-hero {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.11), rgba(15, 23, 42, 0.72)),
    rgba(15, 23, 42, 0.74);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.breadcrumb > * + *::before {
  content: "/";
  margin-right: 9px;
  color: #475569;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  width: min(820px, 100%);
  margin: 14px 0 0;
  font-size: 17px;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
}

.filter-row {
  align-items: center;
}

.filter-row span {
  color: #f8fafc;
  font-weight: 800;
}

.all-grid {
  padding-bottom: 20px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  display: block;
  padding: 24px;
}

.category-overview-main h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-main p {
  margin: 0;
}

.category-sample-links {
  display: grid;
  gap: 1px;
  background: rgba(148, 163, 184, 0.1);
}

.category-sample-links a {
  padding: 13px 24px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.26);
}

.category-sample-links a:hover {
  color: #fbbf24;
}

.wide-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.56);
}

.wide-card-image {
  aspect-ratio: 16 / 10;
}

.wide-card-body {
  display: grid;
  align-content: center;
  padding: 18px 18px 18px 0;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.24), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
  font-size: 36px;
  text-indent: 5px;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.detail-article {
  margin-top: 24px;
  padding: 26px;
}

.detail-article h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-article h2,
.side-info h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-article .lead-text {
  color: #dbeafe;
  font-size: 18px;
}

.tag-row {
  margin: 20px 0;
}

.side-poster {
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.side-info {
  margin-top: 18px;
  padding: 22px;
}

.side-info h2 {
  margin-top: 0;
}

.side-info dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.side-info dt {
  color: var(--muted-2);
}

.side-info dd {
  margin: 0;
  color: #f8fafc;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.prev-next a {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.32);
}

.prev-next a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-grid p {
  margin: 14px 0 0;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted-2);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }

  .side-info {
    margin-top: 0;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-arrow {
    display: none;
  }

  .two-column-layout,
  .category-overview-grid,
  .footer-grid,
  .wide-card,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .wide-card-body {
    padding: 18px;
  }

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

@media (max-width: 640px) {
  .container,
  .site-header-inner {
    width: min(100% - 22px, 1280px);
  }

  .site-logo-text {
    font-size: 18px;
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-content {
    padding: 100px 0 62px;
  }

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

  .site-search,
  .filter-search,
  .prev-next {
    flex-direction: column;
    display: flex;
  }

  .poster-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h2 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .category-grid.small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-article,
  .search-band-inner {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 84px 1fr;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
