html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(127, 29, 29, 0.42), transparent 34rem),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.2), transparent 28rem),
    #020617;
  color: #f3f4f6;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(127, 29, 29, 0.92), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid rgba(153, 27, 27, 0.36);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fde68a;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(2, 6, 23, 0.6);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28), 0 0 30px rgba(245, 158, 11, 0.16);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: #e5e7eb;
  font-size: 0.96rem;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: #fbbf24;
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.mobile-menu-button span {
  width: 1.15rem;
  height: 2px;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(153, 27, 27, 0.28);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.45rem;
}

.mobile-nav a {
  padding: 0.72rem 0;
  color: #e5e7eb;
}

.hero-carousel {
  position: relative;
  min-height: clamp(34rem, 76vh, 48rem);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.45)),
    linear-gradient(0deg, #020617 0%, transparent 42%),
    radial-gradient(circle at 75% 22%, rgba(245, 158, 11, 0.18), transparent 25rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 2rem));
  min-height: clamp(34rem, 76vh, 48rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 22rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 4rem 0;
}

.hero-copy {
  max-width: 54rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.9rem;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 48rem;
  color: #fff;
  font-size: clamp(2.65rem, 7vw, 5.85rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
  max-width: 46rem;
  margin-top: 1.35rem;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags {
  margin-top: 1.5rem;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.18);
  color: #fde68a;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.28);
}

.ghost-button {
  color: #fde68a;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.primary-button.full {
  width: 100%;
  margin-top: 1rem;
}

.text-link {
  color: #fbbf24;
  padding-left: 0;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

.hero-poster img {
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.score-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fbbf24;
  font-weight: 900;
  padding: 0.35rem 0.62rem;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.24);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.7rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #f59e0b;
}

.content-section,
.page-main {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.content-section {
  padding: 4.3rem 0;
}

.page-main {
  padding-bottom: 4rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.section-title h2,
.rank-block h2,
.detail-article h2 {
  color: #f8fafc;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p {
  margin-top: 0.35rem;
  color: #94a3b8;
}

.section-title.compact {
  margin-bottom: 1rem;
}

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

.movie-card,
.horizontal-card,
.feature-card,
.category-card,
.rank-block,
.detail-side,
.detail-article,
.player-panel,
.ranking-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.movie-card {
  overflow: hidden;
  border-radius: 1.2rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.74);
  border-color: rgba(251, 191, 36, 0.24);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  transition: transform 0.34s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
}

.movie-card-body {
  padding: 1rem;
}

.movie-meta {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.movie-card h2,
.horizontal-card h2,
.feature-card h2,
.rank-row h2 {
  color: #f8fafc;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card h2 a:hover,
.horizontal-card h2 a:hover,
.feature-card h2 a:hover,
.rank-row h2 a:hover {
  color: #fbbf24;
}

.movie-card p,
.horizontal-card p,
.feature-card p,
.rank-row p,
.detail-article p,
.detail-side dd,
.site-footer p,
.page-hero p {
  color: #cbd5e1;
  line-height: 1.75;
}

.movie-card p {
  min-height: 4.9rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.tag-row {
  margin-top: 0.85rem;
}

.tag-row span {
  color: #fcd34d;
  font-size: 0.74rem;
  padding: 0.25rem 0.55rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 1.2rem;
  overflow: hidden;
  border-radius: 1.4rem;
  padding: 1rem;
}

.feature-card > a {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16 / 11;
}

.feature-card img {
  transition: transform 0.34s ease;
}

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

.category-band {
  border-top: 1px solid rgba(153, 27, 27, 0.24);
  border-bottom: 1px solid rgba(153, 27, 27, 0.24);
}

.category-chips,
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-chips a,
.category-card {
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.15);
  padding: 0.78rem 1.15rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-chips a:hover,
.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(127, 29, 29, 0.42);
}

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

.category-card {
  border-radius: 1.1rem;
  padding: 1.2rem;
}

.category-card span {
  display: block;
  color: #f8fafc;
  font-weight: 900;
  font-size: 1.05rem;
}

.category-card em {
  display: block;
  margin-top: 0.35rem;
  color: #fbbf24;
  font-style: normal;
  font-size: 0.86rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  border-radius: 1rem;
  padding: 0.8rem;
}

.horizontal-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.8rem;
}

.ranking-panel {
  position: sticky;
  top: 5.5rem;
  border-radius: 1.2rem;
  padding: 1.1rem;
}

.ranking-panel ol {
  display: grid;
  gap: 0.7rem;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 2rem 1fr 3rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.38);
}

.ranking-panel span,
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: white;
  font-weight: 900;
}

.ranking-panel a {
  color: #f8fafc;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-panel em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.page-hero {
  position: relative;
  margin: 2rem 0 0;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(251, 191, 36, 0.16);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.62), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 24rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.compact-hero {
  padding: clamp(2rem, 5vw, 4rem);
}

.page-hero h1,
.detail-hero h1 {
  max-width: 52rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-hero p {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.filter-line {
  max-width: 34rem;
  margin-top: 1.6rem;
}

.filter-line.wide {
  max-width: 48rem;
}

.filter-line input {
  width: 100%;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(2, 6, 23, 0.66);
  color: #f8fafc;
  padding: 0 1.25rem;
  outline: none;
}

.filter-line input:focus {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.rank-block {
  border-radius: 1.2rem;
  padding: 1.2rem;
}

.rank-block h2 {
  margin-bottom: 1rem;
}

.rank-block ol {
  display: grid;
  gap: 0.9rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.1rem 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.7rem;
}

.rank-row h2 {
  font-size: 0.98rem;
}

.rank-row p {
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.rank-row em {
  display: block;
  margin-top: 0.28rem;
  color: #fbbf24;
  font-size: 0.8rem;
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 1.3rem 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.detail-tags {
  margin-top: 1.25rem;
}

.player-panel {
  overflow: hidden;
  border-radius: 1.35rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.86);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
  font-weight: 900;
  font-size: 1.15rem;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 22px 50px rgba(220, 38, 38, 0.3);
  font-size: 2rem;
  padding-left: 0.24rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.detail-article,
.detail-side {
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.detail-article h2 + p {
  margin-top: 0.7rem;
}

.detail-article p + h2 {
  margin-top: 1.6rem;
}

.detail-side img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.detail-side dl {
  display: grid;
  gap: 0.7rem;
}

.detail-side dl div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 0.7rem;
}

.detail-side dt {
  color: #fbbf24;
  font-weight: 800;
}

.related-section {
  padding-top: 3rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(153, 27, 27, 0.32);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), #020617);
}

.footer-grid {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.05fr;
  gap: 1.5rem;
}

.footer-brand {
  color: #fde68a;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.site-footer h2 {
  color: #fde68a;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #94a3b8;
}

.footer-bottom {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1.2rem 0 2rem;
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .split-layout,
  .rank-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    height: 3.8rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero-carousel,
  .hero-content {
    min-height: 34rem;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.75rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .movie-card-body {
    padding: 0.82rem;
  }

  .movie-card p {
    display: none;
  }

  .horizontal-card,
  .rank-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .rank-row .rank-num {
    display: none;
  }

  .detail-side dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .play-circle {
    width: 4rem;
    height: 4rem;
  }
}
