:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --black: #050508;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  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;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 36%, #fff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 231, 235, 0.84);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22);
}

.brand-text,
.footer-brand {
  font-size: 22px;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-700);
  background: var(--rose-50);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--black);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.67) 42%, rgba(5, 5, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.76), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 94px 0 110px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rose-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
  color: #fecdd3;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
}

.hero h2 {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 54px);
}

.hero p,
.page-hero p,
.detail-lead {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.3);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-ghost.light {
  color: var(--rose-700);
  border-color: var(--rose-100);
  background: var(--rose-50);
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero .hero-tags span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--white);
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.quick-categories a {
  padding: 12px 18px;
  color: var(--rose-700);
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-weight: 900;
}

.section {
  padding: 58px 0;
}

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

.section-head h2,
.prose-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--gray-500);
  max-width: 680px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-700);
  font-weight: 900;
}

.section-link span {
  transition: transform 0.25s ease;
}

.section-link:hover span {
  transform: translateX(4px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 34px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.filter-label {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 950;
}

.filter-panel p {
  margin: 4px 0 0;
  color: var(--gray-500);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 130px 130px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(225, 29, 72, 0.88);
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  transform: scale(0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

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

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3,
.rank-info h3 {
  margin: 8px 0 6px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--rose-700);
}

.card-body p,
.rank-info p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-100);
}

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

.rank-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-radius: 16px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(225, 29, 72, 0.26);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 22px;
  color: var(--white);
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.45s ease;
}

.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 8, 0.88), rgba(5, 5, 8, 0.18));
}

.category-tile span,
.category-tile p,
.category-overview-card > div:last-child {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 108px;
  font-size: 26px;
  font-weight: 950;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-overview-card {
  display: flex;
  align-items: flex-end;
  min-height: 270px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-overview-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-covers img:nth-child(2),
.category-covers img:nth-child(3) {
  display: none;
}

.page-shell {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 64px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.32), transparent 30%),
    linear-gradient(135deg, #111827, #2f0b19 58%, #050508);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.page-hero.small {
  padding: 48px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.28), transparent 28%),
    linear-gradient(135deg, #111827, #1f0812 62%, #050508);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  background: var(--gray-900);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 68px);
}

.detail-lead {
  color: rgba(255, 255, 255, 0.8);
}

.detail-meta {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  height: 100%;
  background: var(--black);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: radial-gradient(circle, rgba(225, 29, 72, 0.28), rgba(0, 0, 0, 0.74));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 20px 38px rgba(225, 29, 72, 0.38);
}

.play-cover strong {
  font-size: 20px;
  letter-spacing: 0.1em;
}

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

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

.prose-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.prose-card h2 {
  font-size: 30px;
}

.prose-card p {
  margin: 14px 0 0;
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 20px;
  color: rgba(255, 255, 255, 0.74);
  background: #07070a;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 9px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero-arrow {
    display: none;
  }

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

  .hero-copy {
    padding: 96px 0 80px;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 72px 44px minmax(0, 1fr);
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .category-grid,
  .category-overview-grid,
  .prose-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-hero.small,
  .detail-layout {
    padding: 28px;
    border-radius: 26px;
  }

  .detail-cover img {
    min-height: auto;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
  }

  .rank-info {
    grid-column: 2;
  }

  .play-cover span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
