:root {
  --color-pink: #ec4899;
  --color-rose: #f43f5e;
  --color-orange: #fb923c;
  --color-bg: #fff7fb;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 30vw),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.14), transparent 28vw),
    linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.container-wide {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose), var(--color-orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
}

.site-header__inner {
  width: var(--container);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.25s ease;
}

.site-logo:hover {
  transform: scale(1.04);
}

.site-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.site-logo__text {
  font-size: clamp(18px, 2vw, 26px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.nav-link {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  min-width: 230px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.24);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--color-rose);
  background: #fff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
  color: #fff;
}

.mobile-menu__links,
.mobile-menu__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mobile-menu__links a,
.mobile-menu__categories a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel {
  position: relative;
  height: min(640px, calc(100vh - 68px));
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-carousel__slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.58) 48%, rgba(17, 24, 39, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.65), transparent 42%);
}

.hero-slide__content {
  width: var(--container);
  margin: 0 auto;
  max-width: 760px;
  color: #fff;
}

.hero-slide__badge,
.detail-info__category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  background: var(--color-pink);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.3);
}

.hero-slide h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-slide p {
  max-width: 700px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-slide__tags,
.detail-tags,
.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-slide__tags span,
.detail-tags span,
.movie-card__tags span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--color-rose);
  font-size: 12px;
  font-weight: 700;
}

.hero-slide__tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0;
  color: #fff;
  font-weight: 700;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.3);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.site-section {
  padding: 58px 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading > div:first-child {
  min-width: max-content;
}

.section-heading__icon {
  font-size: 28px;
}

.section-heading h2 {
  display: inline-block;
  margin: 0 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--color-muted);
}

.section-heading__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.45), transparent);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(236, 72, 153, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.22);
}

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #f97316);
}

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

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

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
}

.movie-card__category,
.movie-card__duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__category {
  top: 10px;
  left: 10px;
  background: var(--color-pink);
}

.movie-card__duration {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.78);
}

.movie-card__play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card__body {
  padding: 16px;
}

.movie-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card__body h3 a:hover {
  color: var(--color-pink);
}

.movie-card__body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card--horizontal {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 190px;
}

.movie-card--horizontal .movie-card__cover {
  aspect-ratio: auto;
  height: 100%;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.detail-side-panel,
.ranking-list-card,
.search-results-panel,
.detail-article {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-panel__title {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.ranking-row__num,
.ranking-list-row__rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
  font-weight: 900;
}

.ranking-row__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.ranking-row__views {
  color: var(--color-muted);
  font-size: 12px;
}

.ranking-panel__more {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-pink);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-tile::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.78));
}

.category-tile span,
.category-tile strong,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
}

.cta-banner,
.page-hero {
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(34px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(90deg, var(--color-pink), var(--color-rose), var(--color-orange));
  box-shadow: var(--shadow-soft);
}

.cta-banner {
  margin-top: 58px;
  margin-bottom: 18px;
  text-align: center;
}

.cta-banner h2,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
}

.cta-banner p,
.page-hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.page-main {
  padding-top: 32px;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero--category {
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  min-width: min(520px, 100%);
  color: var(--color-text);
  background: #fff;
  border-color: rgba(236, 72, 153, 0.25);
}

.filter-bar select {
  min-width: 160px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-pink);
}

.category-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.category-overview-card a {
  min-height: 220px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
}

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

.category-overview-card span {
  font-weight: 800;
}

.ranking-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.ranking-list-card {
  padding: 22px;
}

.ranking-list-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 8px;
  max-height: 780px;
  overflow: auto;
  padding-right: 5px;
}

.ranking-list-row {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.ranking-list-row:hover {
  background: rgba(236, 72, 153, 0.08);
}

.ranking-list-row img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-list-row__main {
  min-width: 0;
}

.ranking-list-row__main strong,
.ranking-list-row__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list-row__main small {
  color: var(--color-muted);
}

.ranking-list-row__value {
  color: var(--color-pink);
  font-weight: 800;
  white-space: nowrap;
}

.detail-main {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 500px;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 46px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.9), rgba(236, 72, 153, 0.6), rgba(251, 146, 60, 0.45)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.detail-info__line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta-grid span {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.player-section {
  margin-top: 32px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.24);
  aspect-ratio: 16 / 9;
}

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

.movie-player__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.movie-player__overlay.is-hidden {
  display: none;
}

.movie-player__button {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.32);
  font-size: 36px;
}

.movie-player__overlay strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 32px;
}

.detail-article,
.detail-side-panel {
  padding: clamp(22px, 3vw, 34px);
}

.detail-article h2,
.detail-side-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-side-panel dt {
  color: var(--color-muted);
  font-size: 13px;
}

.detail-side-panel dd {
  margin: 0 0 8px;
  font-weight: 800;
}

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

.search-page-form {
  align-items: stretch;
  max-width: 760px;
}

.search-page-form input {
  flex: 1;
  font-size: 17px;
}

.search-results-panel {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
}

.search-results-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.search-results-panel__head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.search-results-panel__head span {
  color: var(--color-muted);
}

.site-footer {
  margin-top: 76px;
  color: #fff;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose), var(--color-orange));
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 42px 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #fff;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.78);
}

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

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

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

  .ranking-panel {
    position: static;
  }

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

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

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

  .hero-carousel {
    min-height: 590px;
  }

  .hero-slide__overlay {
    align-items: flex-end;
    padding-bottom: 74px;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.45) 62%, rgba(17, 24, 39, 0.18) 100%);
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid--4,
  .movie-grid--3,
  .movie-grid--2,
  .category-tile-grid,
  .category-overview-grid,
  .ranking-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 22px, 1180px);
  }

  .site-logo__text {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-search input {
    min-width: 0;
  }

  .hero-carousel {
    min-height: 610px;
  }

  .hero-slide h1 {
    font-size: 36px;
  }

  .hero-slide__meta {
    gap: 10px;
  }

  .movie-grid--4,
  .movie-grid--3,
  .movie-grid--2,
  .category-tile-grid,
  .category-overview-grid,
  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--horizontal {
    grid-template-columns: 120px 1fr;
  }

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

  .ranking-list-row {
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .ranking-list-row__value {
    grid-column: 3;
  }
}
