:root {
  color-scheme: dark;
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111827;
  --bg-800: #1e293b;
  --bg-700: #334155;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--bg-950), var(--bg-900) 46%, var(--bg-950));
  color: var(--text);
  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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.filter-toolbar input {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 78px 11px 16px;
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-toolbar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.15);
  color: white;
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 80px 12px 16px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(16px, calc((100% - 1180px) / 2));
  width: min(660px, calc(100% - 32px));
  transform: translateY(-50%);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.78);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
  margin: 20px 0 0;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 14px;
}

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

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

.primary-button {
  padding: 0 26px;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.25);
}

.ghost-button {
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-heading.no-gap {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
}

.section-heading a,
.text-link {
  margin-left: auto;
  color: var(--cyan);
  font-size: 15px;
}

.section-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
}

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

.all-movie-grid {
  align-items: stretch;
}

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.16), rgba(15, 23, 42, 0.92));
}

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

.movie-card:hover .movie-thumb img,
.small-movie:hover img,
.rank-cover:hover img {
  transform: scale(1.08);
}

.thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .thumb-gradient {
  opacity: 1;
}

.movie-badge,
.movie-duration {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.movie-badge {
  left: 10px;
  background: rgba(6, 182, 212, 0.85);
  font-weight: 800;
}

.movie-duration {
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  width: 62px;
  height: 62px;
  margin: auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  font-size: 24px;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

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

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

.category-card-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  margin-top: 70px;
  color: #ffffff;
  font-size: 23px;
}

.category-card em {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.wide-panel,
.ranking-panel,
.sidebar-card,
.movie-detail-card,
.player-card,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.wide-panel,
.ranking-panel {
  padding: 24px;
}

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

.ranking-list,
.ranking-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ranking-list li > span {
  color: var(--cyan);
  font-weight: 900;
}

.small-movie {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.small-movie img {
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.small-movie strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-movie em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main,
.detail-main {
  padding: 34px 0 68px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 66px);
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.22), transparent 35%), linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  margin-top: 30px;
  padding: 22px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin: 22px 0 28px;
  align-items: center;
}

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

.filter-toolbar input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  background: rgba(51, 65, 85, 0.86);
  color: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background: var(--cyan-strong);
  color: #ffffff;
}

.empty-state {
  display: none;
  margin: 38px 0 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.ranking-page-item {
  display: grid;
  grid-template-columns: 58px 178px minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.72);
}

.rank-number {
  color: var(--cyan);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

.player-card {
  overflow: hidden;
  background: #000000;
}

.video-shell {
  position: relative;
  background: #000000;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  border: 0;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.86);
  font-size: 36px;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.38);
}

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

.custom-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.custom-controls button {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
  cursor: pointer;
}

.custom-controls input {
  accent-color: var(--cyan-strong);
}

.movie-detail-card,
.sidebar-card {
  padding: 24px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-title-row img {
  width: 148px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.detail-title-row h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1.65;
}

.movie-detail-card section {
  margin-top: 26px;
}

.movie-detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
}

.movie-detail-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

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

.related-list {
  display: grid;
  gap: 14px;
}

.vertical-chips {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
  padding: 42px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--soft);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

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

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

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

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .content-section,
  .page-main,
  .detail-main {
    width: min(100% - 22px, 1180px);
  }

  .site-logo {
    font-size: 19px;
  }

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

  .hero-content {
    top: auto;
    bottom: 92px;
    transform: none;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

  .movie-card-desc {
    display: none;
  }

  .category-overview-card,
  .ranking-page-item,
  .detail-title-row,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .category-covers {
    grid-template-columns: repeat(4, 1fr);
  }

  .rank-cover {
    width: 100%;
  }

  .detail-title-row img {
    width: 126px;
  }

  .custom-controls {
    gap: 8px;
  }
}

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

  .hero-actions,
  .page-actions {
    display: grid;
  }

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

  .small-movie img {
    width: 84px;
  }
}
