* {
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --green: #16a34a;
  --red: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgb(37 99 235 / 0.22);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.05);
}

.logo-text {
  font-size: 20px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-700);
  font-weight: 600;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--blue);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  margin: 5px auto;
  display: block;
  background: var(--gray-800);
  border-radius: 99px;
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--blue);
  background: var(--gray-50);
}

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

.page-home,
.page-categories,
.page-category,
.page-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 0;
}

.hero {
  position: relative;
  height: 500px;
  margin-bottom: 64px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-900), var(--blue));
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.08));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 72px);
  width: min(620px, calc(100% - 96px));
  transform: translateY(-50%);
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 + h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgb(229 231 235 / 0.96);
  font-size: 18px;
  line-height: 1.7;
}

.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-bottom: 26px;
  font-weight: 700;
}

.hero-meta span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(10px);
}

.btn-primary,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-glass {
  color: var(--white);
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgb(255 255 255 / 0.36);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgb(255 255 255 / 0.28);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgb(255 255 255 / 0.46);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.5);
  cursor: pointer;
}

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

.hero-search,
.wide-search {
  position: relative;
}

.hero-search {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(360px, calc(100% - 56px));
}

.hero-search input,
.wide-search input {
  width: 100%;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 14px;
  outline: 0;
  padding: 0 18px;
  color: var(--gray-900);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-md);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 360px;
  overflow: auto;
  display: none;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.search-result-item span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.poster-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--gray-200);
}

.movie-card-compact .poster-wrap {
  height: 220px;
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px;
  color: var(--white);
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.82));
  transition: opacity 0.3s ease;
}

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

.poster-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.play-round {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgb(255 255 255 / 0.92);
  font-size: 24px;
  transform: translate(-50%, -50%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgb(0 0 0 / 0.7);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0 0 12px;
  overflow: hidden;
  display: -webkit-box;
  min-height: 42px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: var(--gray-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.category-tile span,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
  color: var(--white);
}

.category-tile span {
  bottom: 48px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  bottom: 18px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-section {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.rank-number {
  color: var(--red);
  font-weight: 900;
  font-size: 20px;
}

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

.rank-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.page-hero-lite {
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  box-shadow: var(--shadow-md);
}

.page-hero-lite > span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #dbeafe;
  font-weight: 800;
}

.page-hero-lite h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.page-hero-lite p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.75;
}

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.category-card-large img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: var(--gray-200);
}

.category-card-large div {
  padding: 24px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card-large p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card-large span {
  color: var(--blue);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 34px;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-row strong {
  padding-top: 8px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.empty-state {
  display: none;
  padding: 48px 0;
  color: var(--gray-500);
  text-align: center;
  font-size: 18px;
}

.empty-state.is-visible {
  display: block;
}

.detail-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

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

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

.player-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #000000;
  cursor: pointer;
}

.player-layer.is-hidden {
  display: none;
}

.player-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgb(37 99 235 / 0.15), rgb(0 0 0 / 0.76));
}

.player-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgb(255 255 255 / 0.92);
  font-size: 34px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.28);
}

.player-layer strong {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  text-align: left;
  font-size: clamp(22px, 3vw, 34px);
}

.detail-info-card,
.side-card {
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-info-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-info-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.tag-pill {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.story-block {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.story-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-sidebar {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.mini-list {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-poster {
  position: relative;
  height: 78px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-200);
}

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

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

.mini-poster span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgb(0 0 0 / 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mini-card:hover .mini-poster span {
  opacity: 1;
}

.mini-card strong {
  overflow: hidden;
  display: -webkit-box;
  margin-bottom: 6px;
  color: var(--gray-900);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card:hover strong {
  color: var(--blue);
}

.mini-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.related-section {
  margin-top: 56px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: var(--gray-600);
}

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

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--gray-300);
  text-align: center;
  font-size: 14px;
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    top: 44%;
  }

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

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-home,
  .page-categories,
  .page-category,
  .page-detail {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .hero {
    height: 620px;
    border-radius: 18px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small,
  .category-grid,
  .category-large-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-wrap {
    height: 230px;
  }

  .movie-card-compact .poster-wrap {
    height: 210px;
  }

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

  .category-card-large img {
    height: 220px;
  }

  .ranking-section {
    padding: 20px;
  }

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

  .rank-meta {
    display: none;
  }

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

  .mini-card {
    grid-template-columns: 106px 1fr;
  }

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

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

  .poster-wrap,
  .movie-card-compact .poster-wrap {
    height: 320px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-glass {
    width: 100%;
  }
}
