
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: #0f172a;
  --line: rgba(8, 145, 178, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --yellow: #facc15;
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.22), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0b1120 42%, #111827 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 78%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.top-nav {
  max-width: 1420px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.mobile-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.28);
}

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

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
}

.category-nav {
  margin-left: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--cyan);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-brand {
  color: var(--cyan);
  font-size: 18px;
}

main {
  min-height: 70vh;
}

.hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 72px 22px 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.25fr);
  gap: 34px;
  align-items: center;
}

.hero-intro {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #e0f2fe, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.hero-intro > p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 18px;
}

.hero-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-search button,
.filter-panel button,
.primary-button,
.ghost-button,
.section-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hero-search button,
.primary-button {
  color: #03131c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.22);
}

.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.3);
}

.ghost-button,
.section-link,
.filter-panel button {
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(8, 47, 73, 0.25);
}

.ghost-button:hover,
.section-link:hover,
.filter-panel button:hover {
  color: #e0f2fe;
  background: rgba(8, 145, 178, 0.28);
}

.hero-frame {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel-strong);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: auto 8% -8% 8%;
  height: 120px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.3);
  filter: blur(64px);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 48%);
}

.hero-content {
  position: absolute;
  inset: auto auto 72px 48px;
  max-width: 620px;
  z-index: 2;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
}

.hero-summary {
  margin: 0;
  color: #e2e8f0;
  font-size: 17px;
}

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

.hero-tags {
  margin: 22px 0;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.26);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-controls {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(2, 6, 23, 0.6);
  cursor: pointer;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.content-section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 54px 22px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.compact-heading h2 {
  font-size: 28px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 58px rgba(8, 145, 178, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-compact .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1.04);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), transparent 55%);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #022c22;
  background: rgba(34, 211, 238, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rating-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #422006;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  font-weight: 900;
  font-size: 13px;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

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

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-compact p {
  -webkit-line-clamp: 2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.info-card,
.article-card,
.player-card,
.category-overview-card,
.ranking-table {
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
  box-shadow: var(--shadow);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.38);
}

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

.rank-number,
.ranking-index {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score,
.ranking-rating {
  color: var(--yellow);
  font-weight: 900;
}

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

.category-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 50%);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
}

.category-card span {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  color: var(--soft);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--muted);
  font-size: 13px;
}

.category-samples a:hover {
  color: var(--cyan);
}

.page-hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 78px 22px 36px;
}

.simple-hero,
.category-hero {
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--soft);
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 32px;
}

.category-overview-head p {
  color: var(--muted);
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
}

.filter-panel select {
  max-width: 190px;
}

.empty-result {
  display: block;
  margin: 38px auto 0;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.ranking-page {
  max-width: 1100px;
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: rgba(8, 145, 178, 0.12);
}

.ranking-row img {
  width: 82px;
  height: 108px;
  border-radius: 16px;
  object-fit: cover;
}

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

.ranking-main strong {
  font-size: 19px;
}

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

.detail-hero {
  max-width: 1420px;
  margin: 0 auto;
  padding: 64px 22px 42px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-one-line {
  max-width: 900px;
  color: var(--soft);
  font-size: 18px;
}

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

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

.detail-main {
  display: grid;
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #042f2e;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 18px rgba(34, 211, 238, 0.14), 0 30px 70px rgba(0, 0, 0, 0.38);
  font-size: 34px;
}

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

.article-card {
  padding: 28px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 14px;
  color: var(--cyan);
}

.article-card p {
  margin: 0 0 24px;
  color: #dbeafe;
  text-align: justify;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.info-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.info-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.info-card div {
  display: grid;
  gap: 4px;
}

.info-card dt {
  color: var(--muted);
  font-size: 13px;
}

.info-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.related-section {
  display: grid;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  max-width: 1420px;
  margin: 0 auto;
  padding: 46px 22px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: inline-flex;
  color: var(--cyan);
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--text);
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.copyright {
  max-width: 1420px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .ranking-panel,
  .info-card {
    position: static;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 520px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .detail-hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .top-nav {
    height: 64px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .page-hero,
  .detail-hero,
  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-frame {
    min-height: 470px;
    border-radius: 24px;
  }

  .hero-content {
    inset: auto 20px 66px 20px;
  }

  .hero-controls {
    left: 20px;
    right: 20px;
  }

  .hero-search,
  .filter-panel,
  .section-heading,
  .category-overview-head,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel select {
    max-width: none;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

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

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

  .ranking-rating {
    grid-column: 3;
  }

  .ranking-row img {
    width: 66px;
    height: 90px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .poster-link,
  .movie-card-compact .poster-link {
    aspect-ratio: auto;
    min-height: 100%;
  }

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

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
