* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  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,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #e11d48 48%, #be123c 100%);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.28);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #e11d48;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  color: #ffe4e6;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: #ffe4e6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: linear-gradient(135deg, #991b1b 0%, #be123c 50%, #7f1d1d 100%);
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(190, 18, 60, 0.72) 52%, rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.section-kicker {
  border-color: rgba(225, 29, 72, 0.16);
  color: #e11d48;
  background: #fff1f2;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #ffe4e6;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.detail-tags span,
.tag-row span {
  background: #fff1f2;
  color: #be123c;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ef4444);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.34);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 88px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: 90px;
  color: #f9fafb;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

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

.search-panel {
  margin-top: -24px;
  padding-top: 0;
  position: relative;
  z-index: 5;
}

.search-box {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.search-box.large {
  margin-bottom: 32px;
}

.search-box input,
.inline-search input {
  width: 100%;
  height: 52px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  outline: none;
  padding: 0 22px;
  color: #111827;
  background: #fffafa;
}

.search-box input:focus,
.inline-search input:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.quick-filters {
  margin-top: 16px;
}

.quick-filters button,
.inline-search button {
  border: 0;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-weight: 800;
  padding: 9px 14px;
  cursor: pointer;
}

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

.category-tile {
  min-height: 120px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #b91c1c);
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.overview-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 600;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6b7280;
}

.section-more,
.card-link {
  color: #be123c;
  background: #ffe4e6;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 50px rgba(225, 29, 72, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #e11d48);
}

.card-poster img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card--small .card-poster img {
  height: 230px;
}

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

.card-year,
.card-rank {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(225, 29, 72, 0.92);
  backdrop-filter: blur(6px);
}

.card-year {
  right: 12px;
}

.card-rank {
  left: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span {
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #e11d48;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.tag-row {
  margin-bottom: 16px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 9px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
}

.rank-block,
.spotlight-card,
.content-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rank-block {
  padding: 28px;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #be123c, #7f1d1d);
}

.spotlight-card .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.spotlight-card h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
}

.spotlight-card p {
  color: #ffe4e6;
}

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

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.15);
}

.compact-card img {
  width: 74px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background: #fecdd3;
}

.compact-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compact-info strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info small {
  color: #6b7280;
}

.list-rank {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #b91c1c);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #991b1b, #e11d48 54%, #7f1d1d);
}

.page-hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(1px) saturate(1.15);
}

.page-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  color: #ffe4e6;
  font-size: 19px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #fecdd3, #f43f5e);
}

.overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 16px;
}

.overview-body {
  padding: 26px;
}

.overview-body h2 {
  margin: 0 0 10px;
}

.overview-body p {
  color: #6b7280;
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
}

.page-filters {
  margin: -10px 0 24px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: #be123c;
  background: #fff1f2;
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #7f1d1d, #be123c 55%, #111827);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(127, 29, 29, 0.74));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #fecdd3;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 800px;
  color: #ffe4e6;
  font-size: 20px;
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.detail-meta-grid strong {
  color: #fecdd3;
  font-size: 12px;
}

.detail-section {
  padding-bottom: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.play-circle {
  position: relative;
  z-index: 3;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ef4444);
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.42);
  font-size: 30px;
  transform: translateX(3px);
}

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

.article-section {
  padding-top: 24px;
}

.content-card {
  padding: 34px;
}

.content-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 18px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-grid p {
  color: #9ca3af;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 58px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: center;
  }

  .section-heading,
  .rank-layout,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .rank-layout,
  .detail-grid {
    display: grid;
  }

  .ranking-list,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .header-shell {
    min-height: 66px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-stage {
    min-height: 720px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 58px;
  }

  .section-shell,
  .page-hero-inner,
  .detail-hero-inner,
  .footer-shell,
  .header-shell,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .card-poster img,
  .movie-card--small .card-poster img {
    height: 300px;
  }

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

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .inline-search {
    display: grid;
  }

  .content-card {
    padding: 24px;
  }
}
