:root {
  color-scheme: light;
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --red: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  font-size: 21px;
  line-height: 1.1;
}

.brand__text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav a {
  padding: 10px 16px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav a:hover {
  background: #f1f5f9;
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #111827;
}

.hero {
  min-height: 628px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.45), transparent 32%), linear-gradient(135deg, #7f1d1d 0%, #9a3412 46%, #92400e 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
  background-size: 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 628px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.04fr 0.78fr;
  gap: 54px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: 0.65s ease;
}

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

.hero-slide__content h1,
.page-hero h1,
.detail-main h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-slide__content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-slide__media {
  justify-self: end;
  width: min(390px, 100%);
  border-radius: 30px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.hero-slide__media img {
  width: 100%;
  aspect-ratio: 3 / 4.12;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
}

.eyebrow {
  color: #fed7aa;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
}

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

.tag-row span,
.detail-tags a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.tag-row--hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  background: #fff;
}

.intro-section,
.section-title,
.two-column,
.footer-grid,
.detail-grid {
  display: grid;
  gap: 24px;
}

.intro-section {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 54px 0 24px;
}

.intro-section h2,
.section-title h2,
.side-panel h2,
.article-card h2,
.related-section h2,
.category-block h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.intro-section p,
.section-title p,
.page-hero p,
.article-card p,
.category-tile p,
.movie-card p,
.rank-card p,
.site-footer p {
  color: var(--muted);
}

.section-link,
.section-title a {
  color: var(--red);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.category-tile,
.side-panel,
.article-card,
.filter-bar,
.category-block,
.rank-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-tile {
  padding: 20px;
  transition: 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.category-tile div {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.category-tile div a {
  color: #475569;
  font-size: 13px;
}

.two-column {
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  padding-bottom: 58px;
}

.section-title {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.movie-card__cover {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

.movie-card__cover img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.movie-card__cover em {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__body {
  padding: 15px;
}

.movie-card__title {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.movie-card__title:hover,
.rank-card__title:hover {
  color: var(--red);
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 46px;
  font-size: 13px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
}

.movie-card__meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card--compact .movie-card__body {
  padding: 12px;
}

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

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-item strong {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-item span {
  font-weight: 900;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, #7f1d1d, #9a3412 48%, #92400e);
}

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

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.stacked {
  display: grid;
  gap: 30px;
  padding: 44px 0 64px;
}

.category-block {
  padding: 24px;
}

.filter-bar {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin: 34px 0 24px;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  background: #f8fafc;
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
}

.filter-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-card-list {
  display: grid;
  gap: 14px;
  margin-bottom: 60px;
}

.rank-card {
  display: grid;
  grid-template-columns: 70px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: 0.2s ease;
}

.rank-card__index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 22px;
  font-weight: 900;
}

.rank-card__cover img {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

.rank-card__title {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 900;
}

.detail-hero {
  color: #fff;
  padding: 34px 0 44px;
  background: radial-gradient(circle at 82% 15%, rgba(251, 191, 36, 0.35), transparent 30%), linear-gradient(135deg, #7f1d1d, #9a3412 52%, #0f172a);
}

.detail-grid {
  grid-template-columns: 300px 1fr;
  align-items: center;
}

.detail-cover {
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

.detail-main .lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.player-section {
  padding: 42px 0 18px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
}

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

.player-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.52));
}

.player.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.player-button span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.34);
  position: relative;
}

.player-button span::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 34px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #fff;
}

.content-section {
  padding: 22px 0 34px;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.article-card h2 + p {
  margin-bottom: 28px;
}

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

.site-footer {
  padding: 36px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-brand {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

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

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header__inner {
    height: 64px;
  }

  .brand__text small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
  }

  .hero-slide__media {
    justify-self: start;
    width: min(280px, 72vw);
    order: -1;
  }

  .hero-dots {
    bottom: 24px;
  }

  .intro-section,
  .section-title,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 48px 72px 1fr;
    gap: 12px;
  }

  .rank-card__index {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .rank-card__cover img {
    width: 72px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .movie-grid,
  .movie-grid--compact {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
