:root {
  --amber: #d97706;
  --orange: #f97316;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1e5d3;
  --card: #ffffff;
}

body {
  min-height: 100vh;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48%, #fff7ed 100%);
}

img {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

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

.brand-text strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #78716c;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #78350f;
  background: #ffedd5;
}

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

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
}

.mobile-menu a:hover {
  color: var(--amber);
  background: #ffedd5;
}

.hero-section {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: brightness(0.72);
}

.hero-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 36px;
}

.hero-copy {
  color: #ffffff;
  max-width: 820px;
}

.hero-labels,
.hero-tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-labels span,
.hero-tags span {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff7ed;
  backdrop-filter: blur(10px);
}

.hero-labels span:first-child {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-search {
  width: min(680px, 100%);
  margin: 28px 0 22px;
  padding: 8px;
  display: flex;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid rgba(217, 119, 6, 0.18);
  outline: none;
  background: #ffffff;
  color: #1f2937;
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
}

.hero-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button.small {
  padding: 10px 18px;
  font-size: 14px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 40px rgba(217, 119, 6, 0.34);
}

.hero-panel {
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.58);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

.hero-panel > div {
  display: grid;
  gap: 14px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  color: #ffffff;
}

.hero-mini-card img {
  width: 80px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.hero-mini-card strong,
.hero-mini-card em {
  display: block;
}

.hero-mini-card strong {
  font-weight: 850;
  line-height: 1.35;
}

.hero-mini-card em {
  margin-top: 6px;
  color: #fed7aa;
  font-style: normal;
  font-size: 13px;
}

.content-section,
.detail-layout,
.footer-grid,
.rank-hero,
.detail-heading {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  padding: 56px 0;
}

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

.section-heading > div {
  display: grid;
  grid-template-columns: 6px 1fr;
  column-gap: 14px;
  align-items: center;
}

.section-heading > div span {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.section-heading p {
  grid-column: 2;
  margin-top: 6px;
  color: var(--muted);
}

.section-more {
  flex: none;
  color: var(--amber);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.16);
}

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

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

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

.category-card span {
  position: relative;
  z-index: 1;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 20px;
  font-weight: 900;
}

.category-card em {
  margin-top: 7px;
  color: #ffedd5;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: #1f2937;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #fef3c7;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.88);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.26);
}

.movie-card-text {
  min-height: 188px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-card-text.compact {
  min-height: 164px;
}

.movie-card-text strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-text em {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
}

.tag-row {
  margin-top: auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.12);
}

.rank-list,
.rank-grid,
.category-overview-list {
  display: grid;
  gap: 12px;
}

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

.small-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  color: #1f2937;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.14);
}

.small-card img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.small-card span {
  min-width: 0;
}

.small-card strong,
.small-card em,
.small-card b {
  display: block;
}

.small-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-weight: 900;
}

.small-card em {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card b {
  color: #d97706;
  font-size: 12px;
}

.small-rank {
  float: left;
  min-width: 28px;
  height: 28px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.inner-page {
  min-height: 70vh;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: clamp(42px, 7vw, 74px);
  border-radius: 34px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #92400e, #f97316);
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.20);
}

.soft-hero {
  color: #1f2937;
  background: radial-gradient(circle at 20% 10%, #fed7aa, transparent 32%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-hero {
  background: linear-gradient(135deg, #92400e, #f97316 62%, #f59e0b);
}

.page-hero span,
.rank-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.soft-hero span {
  color: #b45309;
  background: #ffedd5;
}

.page-hero h1,
.rank-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.rank-hero p {
  max-width: 780px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  margin-bottom: 26px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.09);
}

.filter-bar input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
}

.filter-bar div {
  display: flex;
  gap: 10px;
}

.filter-bar select {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.category-overview-wrap {
  display: grid;
  gap: 24px;
}

.category-overview {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.10);
}

.category-overview-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #b45309;
  background: #ffedd5;
  font-weight: 850;
}

.category-overview-copy h2 {
  font-size: 30px;
  font-weight: 950;
}

.category-overview-copy p {
  margin: 12px 0 20px;
  color: #6b7280;
  line-height: 1.8;
}

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

.category-overview-list .small-card {
  grid-template-columns: 58px 1fr;
}

.category-overview-list .small-card img {
  width: 58px;
  height: 78px;
}

.rank-hero {
  margin-top: 32px;
  min-height: 420px;
  padding: clamp(42px, 7vw, 76px);
  display: flex;
  align-items: end;
  border-radius: 34px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.20);
}

.rank-hero .primary-button {
  margin-top: 24px;
}

.detail-page {
  background: linear-gradient(180deg, #111827 0, #111827 310px, #fff7ed 310px, #ffffff 100%);
}

.detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #111827;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.28) 100%);
}

.detail-heading {
  position: relative;
  z-index: 1;
  padding: 90px 0 52px;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #fed7aa;
  font-weight: 750;
}

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

.detail-heading h1 {
  max-width: 980px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-heading p {
  max-width: 860px;
  margin-top: 16px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.detail-layout {
  position: relative;
  z-index: 2;
  margin-top: -84px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.16));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 38px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.36);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls,
.player-shell.is-paused .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
}

.player-progress {
  height: 8px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.player-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.player-time {
  font-size: 13px;
  color: #ffedd5;
  white-space: nowrap;
}

.story-card,
.info-box {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.10);
}

.story-card h2,
.info-box h2 {
  margin-bottom: 14px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.story-card p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.detail-poster {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

.info-box dl {
  display: grid;
  gap: 12px;
}

.info-box dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3e8d6;
}

.info-box dt {
  color: #9ca3af;
}

.info-box dd {
  color: #1f2937;
  font-weight: 750;
}

.info-box dd a {
  color: #d97706;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
  padding: 50px 0 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content,
  .split-section,
  .detail-layout,
  .category-overview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: center;
    padding-top: 44px;
  }

  .hero-panel,
  .rank-panel {
    position: static;
  }

  .detail-layout {
    margin-top: -54px;
  }

  .detail-side {
    grid-row: 1;
  }

  .detail-poster {
    display: none;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 66px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-section,
  .hero-content {
    min-height: 86vh;
  }

  .hero-search,
  .filter-bar,
  .filter-bar div {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .hero-search button {
    width: 100%;
  }

  .poster-grid,
  .compact-grid,
  .category-grid,
  .category-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-text,
  .movie-card-text.compact {
    min-height: 154px;
    padding: 12px;
  }

  .movie-card-text em,
  .tag-row {
    display: none;
  }

  .page-hero,
  .rank-hero {
    margin-top: 18px;
    border-radius: 24px;
  }

  .content-section {
    padding: 38px 0;
  }

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

  .player-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: auto 1fr auto;
  }

  .player-time,
  .player-mute {
    display: none;
  }

  .story-card,
  .info-box {
    padding: 20px;
    border-radius: 22px;
  }

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

  .small-card img {
    width: 58px;
    height: 78px;
  }
}

@media (max-width: 460px) {
  .poster-grid,
  .compact-grid,
  .category-grid,
  .category-overview-list {
    grid-template-columns: 1fr;
  }

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

  .movie-poster {
    aspect-ratio: auto;
    height: 100%;
    min-height: 158px;
  }

  .movie-card-text strong {
    -webkit-line-clamp: 3;
  }
}
