:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --muted: #94a3b8;
  --text: #ffffff;
  --orange: #f97316;
  --red: #dc2626;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 32%), var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.38);
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.18);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 300px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.large-search input,
.filter-input {
  width: 100%;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.header-search input {
  padding: 11px 14px;
}

.header-search button,
.large-search button {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  font-weight: 800;
  padding: 11px 18px;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide,
.hero-image,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.1) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 55%, rgba(2, 6, 23, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 18px 0;
}

.hero-content p {
  max-width: 700px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-labels,
.hero-tags,
.detail-tags,
.category-chips,
.filter-chips,
.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-labels span,
.hero-tags span,
.detail-tags span,
.category-chips a,
.filter-chip,
.movie-card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-weight: 700;
}

.hero-labels span,
.hero-tags span,
.category-chips a,
.filter-chip {
  padding: 8px 13px;
}

.hero-labels span:first-child,
.filter-chip.is-active {
  border-color: rgba(249, 115, 22, 0.65);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(220, 38, 38, 0.96));
  color: #ffffff;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.3);
}

.primary-button:hover,
.movie-card:hover,
.rank-item:hover,
.category-tile-main:hover,
.compact-movie:hover {
  transform: translateY(-3px);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button,
.section-more {
  border: 1px solid var(--line);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.55);
  transition: all 0.2s ease;
}

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

.hero-search-panel {
  width: min(1240px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 8;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-search {
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.large-search input {
  padding: 17px 18px;
  font-size: 16px;
}

.category-chips {
  margin-top: 16px;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 0;
}

.alt-section,
.rank-section {
  width: 100%;
  max-width: none;
  padding: 74px max(16px, calc((100% - 1240px) / 2)) 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.5));
}

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

.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-overview-head p,
.category-tile em,
.detail-card p,
.sidebar-card p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.movie-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.movie-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.movie-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

.movie-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.movie-card-badges span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.88);
}

.movie-card-badges span:first-child {
  background: var(--orange);
}

.movie-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

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

.movie-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
}

.movie-card-info h3 {
  font-size: 19px;
  line-height: 1.32;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-info p {
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.movie-card-tags span {
  padding: 4px 8px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  overflow: hidden;
}

.category-tile-main {
  position: relative;
  display: block;
  min-height: 170px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.category-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.46), transparent 38%), radial-gradient(circle at 80% 90%, rgba(220, 38, 38, 0.34), transparent 45%);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile strong {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 950;
}

.category-tile em {
  font-style: normal;
}

.category-tile ul {
  padding: 16px 20px 20px;
  display: grid;
  gap: 8px;
}

.category-tile li a {
  color: #cbd5e1;
  font-size: 14px;
}

.category-tile li a:hover {
  color: #fb923c;
}

.page-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.compact-hero {
  padding: 86px max(16px, calc((100% - 1240px) / 2)) 56px;
  border-bottom: 1px solid var(--line);
}

.compact-hero > div {
  max-width: 860px;
}

.eyebrow {
  color: #fb923c;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.category-overview-head h2 {
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 950;
}

.category-overview-head p {
  margin-bottom: 18px;
}

.compact-grid,
.compact-list {
  display: grid;
  gap: 12px;
}

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

.compact-movie {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-movie:hover {
  background: rgba(249, 115, 22, 0.12);
}

.compact-movie img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.compact-movie span {
  min-width: 0;
  color: #e2e8f0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
}

.filter-input {
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.62);
}

.filter-chip {
  cursor: pointer;
}

[data-search][hidden] {
  display: none !important;
}

.rank-list {
  display: grid;
  gap: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 138px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
  transition: all 0.24s ease;
}

.rank-item.compact {
  grid-template-columns: 56px 110px minmax(0, 1fr);
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(15, 23, 42, 0.98);
}

.rank-number {
  font-size: 26px;
  font-weight: 950;
  color: #fb923c;
  text-align: center;
}

.rank-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.rank-body {
  min-width: 0;
  display: block;
}

.rank-body strong,
.rank-body em,
.rank-body p {
  display: block;
}

.rank-body strong {
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 4px;
}

.rank-body em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.rank-body p {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.65;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.movie-player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(2, 6, 23, 0.5));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 45px rgba(249, 115, 22, 0.35);
}

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

.detail-card,
.sidebar-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
}

.detail-card h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 7px 11px;
}

.detail-card section {
  margin-top: 24px;
}

.detail-card h2,
.sidebar-card h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 950;
}

.detail-card p + p {
  margin-top: 12px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card:first-child {
  margin-top: 0;
}

.sidebar-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.sidebar-card p {
  margin-bottom: 16px;
}

.related-section {
  padding-bottom: 80px;
}

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
}

.site-footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 30px;
}

.site-footer p {
  margin-top: 10px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #cbd5e1;
}

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

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

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

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

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

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

  .detail-sidebar {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 66px;
  }

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

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    margin-top: -28px;
    padding: 16px;
  }

  .large-search {
    display: grid;
  }

  .large-search button {
    min-height: 48px;
  }

  .section-heading {
    display: grid;
  }

  .movie-grid,
  .all-grid,
  .feature-grid,
  .category-grid,
  .compact-grid,
  .home-rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .rank-item.compact {
    grid-template-columns: 46px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-body p {
    display: none;
  }

  .detail-layout {
    padding-top: 22px;
  }

  .detail-card,
  .sidebar-card {
    padding: 18px;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
  }
}
