:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #ef4444;
  --orange: #f97316;
  --slate: #0f172a;
  --soft-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

.logo-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
}

.header-search {
  background: rgba(51, 65, 85, 0.9);
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input {
  width: 220px;
  padding: 11px 16px;
  color: white;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 700;
  padding: 11px 18px;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.6rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-panel-inner {
  padding: 16px 0 20px;
}

.mobile-search {
  background: rgba(51, 65, 85, 0.9);
  margin-bottom: 16px;
}

.mobile-search input {
  color: white;
  flex: 1;
  padding: 12px 16px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-link {
  display: block;
  padding: 8px 0;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.15);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(248, 113, 113, 0.28), transparent 34%), linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.7) 48%, rgba(15, 23, 42, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 56px;
  color: white;
}

.hero-copy {
  max-width: 720px;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 999px;
  padding: 5px 10px;
  color: #fee2e2;
  background: rgba(248, 113, 113, 0.14);
  font-size: 0.82rem;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin-top: 22px;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 0 24px;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.35);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 24px;
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover,
.movie-card:hover,
.horizontal-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 38px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.search-band {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.search-band-inner,
.filter-panel,
.text-block,
.related-panel,
.player-shell,
.category-overview-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 26px;
  align-items: center;
  border-radius: 24px;
  padding: 28px;
}

.search-band h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.search-band p,
.section-heading p,
.card-body p,
.horizontal-card p,
.category-card p,
.category-overview-card p,
.text-block p,
.related-panel p,
.inner-hero p,
.detail-info .lead,
.footer-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.wide-search {
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.wide-search input {
  flex: 1;
  padding: 15px 20px;
}

.page-section {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #fed7aa;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 24px;
  color: white;
  padding: 24px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.25), transparent 28%), linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #111827, #f97316);
}

.category-card span {
  font-size: 1.4rem;
  font-weight: 900;
}

.category-card p {
  color: #fff7ed;
  margin-top: 10px;
}

.movie-grid,
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.category-overview-card:hover img,
.horizontal-card:hover img {
  transform: scale(1.06);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.year-badge {
  left: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.74);
}

.rank-badge {
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin-top: 8px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.82rem;
}

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

.tag-row {
  margin-top: 12px;
}

.card-body .tag-row span,
.detail-tags span {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff1f2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.85fr;
  gap: 40px;
  align-items: start;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
}

.horizontal-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
}

.horizontal-card p {
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.more-link {
  margin-top: 18px;
  padding: 0 20px;
  color: white;
  background: #0f172a;
}

.inner-hero,
.detail-hero {
  color: white;
  padding: 72px 0;
}

.gradient-hero {
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(135deg, #dc2626, #f97316);
}

.dark-hero {
  background: radial-gradient(circle at 90% 10%, rgba(248, 113, 113, 0.28), transparent 26%), linear-gradient(135deg, #111827, #334155);
}

.inner-hero h1 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.inner-hero p {
  max-width: 720px;
  margin-top: 12px;
  color: #fff7ed;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: white;
}

.filter-panel {
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 28px;
}

.filter-panel input {
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  border-radius: 26px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin-top: 8px;
  font-size: 1.55rem;
  font-weight: 900;
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 18px;
  color: #dc2626;
  font-weight: 900;
}

.detail-hero {
  background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.32), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b 58%, #7f1d1d);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  max-width: 780px;
  margin-top: 18px;
  color: #e2e8f0;
  font-size: 1.12rem;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fee2e2;
}

.detail-tags {
  margin: 18px 0 24px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.46), rgba(127, 29, 29, 0.52));
  cursor: pointer;
  z-index: 3;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.38);
}

.play-icon::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid white;
}

.play-overlay strong {
  font-size: 1.15rem;
}

.text-block,
.related-panel {
  border-radius: 24px;
  padding: 26px;
}

.text-block h2,
.related-panel h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  font-weight: 900;
}

.review-block {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.related-panel {
  position: sticky;
  top: 96px;
}

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

.movie-card-small {
  border-radius: 18px;
}

.movie-card-small .card-body p,
.movie-card-small .tag-row {
  display: none;
}

.search-page-form {
  margin-bottom: 20px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 58%, #111827);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 30px;
  padding: 48px 0 34px;
}

.footer-logo {
  color: white;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.footer-grid h3 {
  color: white;
  margin-bottom: 14px;
  font-weight: 900;
}

.footer-grid a {
  display: block;
  color: #cbd5e1;
  margin: 9px 0;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

[data-card].hidden {
  display: none;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-content,
  .search-band-inner,
  .split-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 112px 0 86px;
  }

  .hero-poster {
    display: none;
  }

  .detail-layout {
    gap: 24px;
  }

  .related-panel {
    position: static;
  }
}

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

  .detail-hero-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .search-band-inner,
  .filter-panel,
  .text-block,
  .related-panel {
    border-radius: 18px;
    padding: 18px;
  }

  .wide-search {
    border-radius: 18px;
    display: grid;
  }

  .wide-search button {
    border-radius: 0;
  }

  .page-section {
    padding: 44px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-card {
    min-height: 140px;
    padding: 18px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 0.98rem;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .horizontal-card {
    grid-template-columns: auto 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .horizontal-card img {
    width: 76px;
    height: 98px;
  }

  .horizontal-card p {
    display: none;
  }

  .rank-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
}
