:root {
  --color-primary: #0284c7;
  --color-primary-strong: #0369a1;
  --color-secondary: #0d9488;
  --color-accent: #f97316;
  --color-ink: #1c1917;
  --color-muted: #78716c;
  --color-line: #e7e5e4;
  --color-soft: #f5f5f4;
  --color-paper: #ffffff;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 12px 32px rgba(28, 25, 23, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fafaf9 0%, #ffffff 55%, #f0fdfa 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.mobile-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
}

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

.brand__text strong,
.footer-brand strong {
  font-size: 20px;
  font-weight: 900;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #44403c;
  font-weight: 700;
}

.main-nav a,
.nav-dropdown > button {
  position: relative;
  padding: 8px 0;
  color: #44403c;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav a:hover,
.nav-dropdown > button:hover {
  color: var(--color-primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: 10px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-dropdown__menu a:hover {
  background: #e0f2fe;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(330px, 26vw);
  padding: 4px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button,
.search-box button {
  padding: 10px 16px;
  color: #ffffff;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f4;
  cursor: pointer;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #0c0a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 0 max(24px, calc((100vw - 1280px) / 2)) 92px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.92) 0%, rgba(12, 10, 9, 0.55) 48%, rgba(12, 10, 9, 0.15) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.18) 55%, rgba(12, 10, 9, 0.3) 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 120px));
}

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

.hero .eyebrow {
  color: #ffffff;
  padding: 8px 14px;
  background: rgba(2, 132, 199, 0.85);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-slide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-slide__meta span,
.detail-tags span,
.movie-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide__meta span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.22);
}

.button--ghost {
  color: var(--color-primary-strong);
  background: #e0f2fe;
}

.hero .button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.button--small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero__arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero__arrow--prev {
  left: 24px;
}

.hero__arrow--next {
  right: 24px;
}

.hero__dots {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero__dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero__dots button.is-active {
  background: #ffffff;
}

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

.section {
  padding: 72px 0;
}

.section--after-hero {
  padding-top: 56px;
}

.section--soft {
  width: min(1280px, calc(100% - 32px));
  padding: 52px;
  border-radius: 32px;
  background: linear-gradient(135deg, #f0f9ff, #f0fdfa);
}

.section--rank {
  padding-bottom: 96px;
}

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

.section__heading h2,
.page-hero h1,
.detail-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section__heading a,
.section__note {
  color: var(--color-primary-strong);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(2, 132, 199, 0.38);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.movie-card__year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.movie-card__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-card__tags span {
  color: var(--color-primary-strong);
  background: #e0f2fe;
}

.movie-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #1c1917;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #57534e;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #78716c;
  font-size: 12px;
  font-weight: 700;
}

.movie-card--wide {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card--wide .movie-card__poster {
  aspect-ratio: auto;
  min-height: 210px;
}

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

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

.channel-card,
.category-overview-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
}

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

.channel-card span,
.category-overview-card__top span {
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 900;
}

.channel-card strong,
.category-overview-card h2 {
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 950;
}

.channel-card p,
.category-overview-card p {
  margin: 0;
  color: #57534e;
  font-size: 14px;
  line-height: 1.7;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(28, 25, 23, 0.06);
}

.ranking-item__number {
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 950;
}

.ranking-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-item__content {
  display: grid;
  gap: 6px;
}

.ranking-item__content strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-item__content small {
  color: var(--color-muted);
  line-height: 1.5;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 24px 0 36px;
  padding: 54px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(240, 253, 250, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.26), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(20, 184, 166, 0.24), transparent 30%);
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.08);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #57534e;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #78716c;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--color-primary-strong);
}

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

.category-overview-card__top {
  display: flex;
  justify-content: space-between;
}

.category-overview-card__top strong {
  color: var(--color-primary-strong);
}

.category-overview-card__samples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 0;
}

.category-overview-card__samples a {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-radius: 14px;
  background: #0f172a;
}

.category-overview-card__samples img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card__samples span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 8px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.filter-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.filter-panel__search input,
.search-box input {
  width: 100%;
  padding: 16px 18px;
  color: var(--color-ink);
  border: 1px solid #d6d3d1;
  border-radius: 18px;
  outline: 0;
  background: #ffffff;
}

.filter-panel__search input:focus,
.search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.filter-panel__chips button {
  padding: 9px 14px;
  color: #44403c;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.filter-panel__chips button.is-active {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.filter-panel__count {
  margin: 0 0 20px;
  color: #78716c;
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.ranking-list {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.08);
}

.ranking-row__poster img {
  width: 128px;
  height: 172px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-row__rank {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.ranking-row h2 {
  margin: 8px 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.ranking-row p {
  max-width: 780px;
  margin: 0 0 14px;
  color: #57534e;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.detail-content {
  display: grid;
  gap: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.34), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay__icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 20px 38px rgba(2, 132, 199, 0.38);
}

.play-overlay strong {
  font-size: 24px;
  font-weight: 950;
}

.play-overlay small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.detail-card,
.poster-panel,
.side-box {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #44403c;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  background: #f5f5f4;
}

.detail-one-line {
  margin: 0;
  color: #44403c;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags span {
  color: var(--color-primary-strong);
  background: #e0f2fe;
}

.detail-card p {
  margin: 14px 0 0;
  color: #44403c;
  font-size: 16px;
  line-height: 2;
}

.detail-card--review {
  background: linear-gradient(135deg, #f0f9ff, #f0fdfa);
}

.detail-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.poster-panel {
  display: grid;
  gap: 16px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.side-box h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 950;
}

.side-box dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.side-box dt {
  color: #78716c;
  font-weight: 900;
}

.side-box dd {
  margin: 0;
  color: #292524;
}

.section--related {
  padding-top: 54px;
}

.site-footer {
  margin-top: 40px;
  color: #d6d3d1;
  background: linear-gradient(135deg, #1c1917, #0f172a);
}

.site-footer__inner {
  display: grid;
  gap: 28px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #a8a29e;
  line-height: 1.8;
}

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

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

.footer-copy {
  margin: 0;
  color: #a8a29e;
  font-size: 14px;
}

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

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

  .header-search {
    width: min(460px, 44vw);
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e7e5e4;
    box-shadow: var(--shadow-soft);
  }

  .mobile-open .mobile-panel {
    display: grid;
    gap: 12px;
  }

  .mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f4;
    font-weight: 900;
  }

  .mobile-panel__channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

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

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

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

  .detail-sidebar {
    position: static;
    grid-template-columns: 260px 1fr;
  }
}

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

  .brand__text small {
    display: none;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .mobile-panel {
    inset: 68px 0 auto 0;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-slide {
    padding: 0 22px 88px;
  }

  .hero-slide__content {
    width: 100%;
  }

  .hero__arrow {
    display: none;
  }

  .hero__dots {
    right: 22px;
    bottom: 34px;
  }

  .section,
  .page-main {
    width: min(100% - 24px, 1280px);
  }

  .section {
    padding: 48px 0;
  }

  .section--soft,
  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .section__heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--dense,
  .channel-grid,
  .category-overview-grid,
  .ranking-grid,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card__body {
    padding: 14px;
  }

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

  .ranking-row {
    grid-template-columns: 92px 1fr;
  }

  .ranking-row__poster img {
    width: 92px;
    height: 128px;
  }

  .ranking-row h2 {
    font-size: 22px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header__inner {
    width: min(100% - 20px, 1280px);
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand__text strong {
    font-size: 16px;
  }

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

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

  .movie-grid,
  .movie-grid--dense,
  .channel-grid,
  .category-overview-grid,
  .ranking-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 44px 60px 1fr;
  }

  .ranking-item img {
    width: 60px;
    height: 78px;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-row__poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .detail-card,
  .poster-panel,
  .side-box,
  .filter-panel {
    padding: 18px;
  }

  .side-box dl {
    grid-template-columns: 1fr;
  }
}
