:root {
  color-scheme: dark;
  --bg: #111827;
  --panel: rgba(31, 41, 55, 0.72);
  --panel-strong: #1f2937;
  --text: #ffffff;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --red: #7f1d1d;
  --orange: #7c2d12;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #111827 0%, #1f2937 42%, #111827 100%);
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #1f2937;
}

body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: var(--amber-strong);
  border-radius: 999px;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
  padding-top: 64px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #7f1d1d 48%, #7c2d12 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #451a03;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.55);
}

.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fcd34d, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.nav-drop-button,
.mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover,
.mobile-menu a:hover {
  color: #fcd34d;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 180ms ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.nav-drop-panel a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
}

.top-search input,
.mobile-search input,
.filter-field,
.search-page-form input,
.sort-select {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.top-search input {
  width: 190px;
  padding: 8px 42px 8px 16px;
  border-radius: 999px;
  transition: width 180ms ease, border-color 180ms ease;
}

.top-search input:focus {
  width: 260px;
  border-color: #fcd34d;
}

.top-search button {
  position: absolute;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  color: #fcd34d;
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #7f1d1d, #7c2d12);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

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

.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #fcd34d;
  padding: 0 16px;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1000ms ease;
}

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

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

.hero-shade {
  background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.78) 36%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-copy {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  right: 32px;
  bottom: 72px;
  width: min(760px, calc(100% - 64px));
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
}

.hero-tags span,
.detail-tags span {
  padding: 5px 12px;
  font-size: 0.88rem;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--soft);
}

.hero-meta {
  margin-bottom: 16px;
  font-size: 1.08rem;
  color: #fff;
}

.star {
  color: var(--amber);
}

.hero-copy p {
  max-width: 680px;
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.section-more,
.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  min-height: 46px;
  padding: 0 28px;
  color: #fff;
  background: var(--amber);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.primary-button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  background: var(--amber-strong);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.38);
}

.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 211, 77, 0.85);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 2.3rem;
  line-height: 0;
  transition: background 180ms ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

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

.section-more {
  min-height: 38px;
  padding: 0 18px;
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
}

.section-more:hover {
  color: #111827;
  background: #fcd34d;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
  opacity: 0.68;
}

.poster-score {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #111827;
  background: #fcd34d;
  font-size: 0.82rem;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber);
}

.card-meta {
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.32);
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags span {
  padding: 3px 8px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.75rem;
}

.movie-card.is-small .card-body p,
.movie-card.is-small .card-tags {
  display: none;
}

.channel-grid,
.category-large-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.channel-card,
.category-large-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.channel-card img,
.category-large-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.channel-mask,
.category-large-mask,
.rank-hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(127, 29, 29, 0.25), rgba(0, 0, 0, 0.08));
}

.channel-card strong,
.channel-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.channel-card strong {
  bottom: 58px;
  font-size: 1.35rem;
}

.channel-card em {
  bottom: 22px;
  color: #d1d5db;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
}

.category-large-card {
  min-height: 260px;
}

.category-large-content {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.category-large-content strong {
  font-size: 1.7rem;
}

.category-large-content em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.6;
}

.category-large-content b {
  width: max-content;
  padding: 8px 15px;
  border-radius: 999px;
  color: #111827;
  background: #fcd34d;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 42px 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.8);
  transition: background 180ms ease, transform 180ms ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  background: rgba(55, 65, 81, 0.9);
}

.ranking-number {
  color: var(--amber);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

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

.ranking-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ranking-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.inner-hero {
  min-height: 320px;
  display: flex;
  align-items: end;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px)) 54px;
  background:
    radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(135deg, #111827 0%, #7f1d1d 48%, #111827 100%);
}

.inner-hero span,
.rank-hero-copy span {
  color: #fcd34d;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.inner-hero h1,
.rank-hero-copy h1 {
  margin: 12px 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
}

.inner-hero p,
.rank-hero-copy p {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.toolbar-section {
  margin-bottom: 28px;
}

.filter-box {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.64);
}

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

.sort-select {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
}

.rank-hero,
.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.rank-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-hero-copy {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  right: 32px;
  bottom: 64px;
  z-index: 2;
  max-width: 720px;
}

.rank-table {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.72);
  transition: transform 180ms ease, background 180ms ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(55, 65, 81, 0.86);
}

.rank-row-no {
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-row-main strong {
  font-size: 1.05rem;
}

.rank-row-main em,
.rank-row-meta small {
  color: var(--muted);
  font-style: normal;
}

.rank-row-meta {
  display: grid;
  gap: 4px;
  color: #fcd34d;
  font-weight: 900;
  text-align: right;
}

.search-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.72);
}

.search-page-form {
  display: flex;
  gap: 12px;
}

.search-page-form input {
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
}

.search-page-form button {
  min-width: 110px;
  border: 0;
  color: #fff;
  background: var(--amber);
}

.search-summary {
  min-height: 24px;
  color: var(--muted);
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--soft);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-main h1 {
  margin: 16px 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
}

.detail-main p {
  max-width: 820px;
  margin: 20px 0 28px;
  color: #e5e7eb;
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-meta span {
  color: #fff;
}

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

.player-section,
.detail-text,
.related-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.72);
  padding: 22px;
}

.player-section {
  grid-column: 1 / -1;
}

.player-section h2,
.detail-text h2 {
  margin: 0 0 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.96);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
  font-size: 2rem;
}

.detail-text p {
  color: var(--soft);
  line-height: 1.85;
}

.detail-text dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.detail-text dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-text dt {
  color: var(--muted);
}

.detail-text dd {
  margin: 0;
}

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

.site-footer {
  background: linear-gradient(180deg, #111827, #000);
  color: var(--muted);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  gap: 18px;
}

.footer-brand {
  color: #fff;
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 780px;
  margin: 0;
  line-height: 1.7;
}

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

.footer-links a:hover {
  color: var(--amber);
}

.copyright {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

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

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

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

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

  .brand-text {
    font-size: 1.2rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 70px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-layout {
    grid-template-columns: 150px 1fr;
    gap: 20px;
  }

  .rank-row {
    grid-template-columns: 40px 62px 1fr;
  }

  .rank-row-meta {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .page-shell,
  .footer-inner,
  .detail-content {
    width: min(100% - 24px, 1280px);
  }

  .hero-copy h1,
  .detail-main h1,
  .inner-hero h1,
  .rank-hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-copy p,
  .detail-main p,
  .inner-hero p {
    font-size: 0.98rem;
  }

  .movie-grid,
  .channel-grid,
  .category-large-grid,
  .related-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .filter-box,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-poster {
    width: 160px;
  }

  .player-section,
  .detail-text,
  .related-section {
    padding: 16px;
    border-radius: 18px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
  }
}
