:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --orange: #fb923c;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius-xl: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #ffe4e6 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 16px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark,
.footer-logo span {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.25);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--gray-500);
  font-size: 0.75rem;
  margin-top: 0.08rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.9rem;
  border-radius: 0.8rem;
  color: var(--gray-700);
  font-weight: 650;
  transition: all 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  background: #fff1f2;
  color: var(--rose-dark);
}

.nav-link.is-active,
.mobile-nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.18);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--gray-900);
  background: #fff1f2;
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
}

.mobile-nav {
  display: none;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.4rem;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e, #fb923c, #fbbf24);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  right: 1rem;
  bottom: 4.8rem;
  max-width: 48rem;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-content h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.hero-content p {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: #e5e7eb;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions,
.hero-tags,
.quick-cats,
.filter-tabs,
.detail-meta,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  color: var(--rose-dark);
  background: #fff;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff1f2;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.33);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: all 0.3s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #fff;
}

.quick-search {
  max-width: 80rem;
  margin: -2.1rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-box input,
.inline-search input {
  width: 100%;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  outline: none;
  color: var(--gray-900);
  background: #fff;
}

.search-box input:focus,
.inline-search input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.search-box button {
  border: 0;
  border-radius: 999px;
  padding: 0 1.4rem;
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  font-weight: 800;
}

.quick-cats {
  margin-top: 0.9rem;
}

.quick-cats a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--gray-700);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.quick-cats a:hover {
  color: var(--rose-dark);
  background: #fff1f2;
}

.content-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem 0;
}

.content-section.compact {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-title,
.preview-head,
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-title {
  justify-content: flex-start;
}

.section-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  border-radius: 0.9rem;
  box-shadow: 0 12px 25px rgba(251, 113, 133, 0.2);
}

.section-title h2,
.preview-head h2,
.list-tools h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.section-title p,
.preview-head p,
.list-tools p {
  margin: 0.25rem 0 0;
  color: var(--gray-500);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  color: inherit;
}

.movie-card-default,
.movie-card-large,
.movie-card-horizontal {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-default,
.movie-card-large {
  display: block;
  border-radius: 1rem;
}

.movie-card-horizontal {
  display: flex;
  border-radius: 1rem;
}

.movie-card-default:hover,
.movie-card-large:hover,
.movie-card-horizontal:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.16);
}

.default-thumb,
.large-thumb,
.movie-thumb,
.minimal-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.default-thumb {
  aspect-ratio: 16 / 9;
}

.large-thumb {
  aspect-ratio: 16 / 10;
}

.movie-thumb {
  width: 12rem;
  min-height: 8.2rem;
  flex: 0 0 12rem;
}

.minimal-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
}

.default-thumb img,
.large-thumb img,
.movie-thumb img,
.minimal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-info {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.movie-info strong,
.movie-card-minimal strong,
.large-overlay strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover strong {
  color: var(--rose-dark);
}

.movie-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 0.78rem;
  font-weight: 800;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.type-badge {
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.48rem;
  border-radius: 0.45rem;
}

.rank-badge {
  left: 0.7rem;
  top: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.movie-card-minimal {
  display: block;
}

.movie-card-minimal .movie-meta {
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.large-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.55rem;
  padding: 4rem 1rem 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  transform: translateY(0.4rem);
  transition: transform 0.28s ease;
}

.movie-card-large:hover .large-overlay {
  transform: translateY(0);
}

.movie-card-large > .movie-meta {
  padding: 0.85rem 1rem;
}

.wide-band {
  margin-top: 4rem;
}

.band-blue {
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

.band-warm {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
}

.filter-tabs {
  margin-bottom: 1.5rem;
}

.filter-tab {
  border: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: var(--gray-700);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  font-weight: 800;
  transition: all 0.25s ease;
}

.filter-tab.is-active,
.filter-tab:hover {
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  transform: translateY(-1px);
}

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

.category-tile {
  display: grid;
  min-height: 10.5rem;
  align-content: space-between;
  padding: 1.25rem;
  border-radius: 1.25rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 26px 52px rgba(17, 24, 39, 0.18);
}

.category-tile span {
  font-size: 1.28rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0.6rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.category-tile strong,
.preview-head a {
  width: fit-content;
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.accent-rose,
.gradient-rose {
  background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.accent-violet,
.gradient-violet {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.accent-orange,
.gradient-orange {
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.accent-amber,
.gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.accent-cyan,
.gradient-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.accent-red,
.gradient-red {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.accent-blue,
.gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #0f766e);
}

.accent-green,
.gradient-green {
  background: linear-gradient(135deg, #10b981, #84cc16);
}

.page-hero {
  max-width: 80rem;
  margin: 2rem auto 0;
  padding: 2.4rem;
  border-radius: 1.5rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.stack-sections {
  display: grid;
  gap: 2rem;
}

.category-preview,
.side-card,
.detail-panel,
.player-card {
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-preview {
  padding: 1.4rem;
}

.preview-head a {
  color: var(--rose-dark);
  background: #ffe4e6;
  font-weight: 800;
}

.list-tools {
  padding: 1.2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.inline-search {
  display: grid;
  gap: 0.35rem;
  min-width: min(24rem, 100%);
  color: var(--gray-600);
  font-weight: 800;
}

.inline-search.wide {
  min-width: min(34rem, 100%);
}

.no-results {
  display: none;
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: var(--gray-500);
  background: #fff;
}

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

.no-results.is-visible {
  display: block;
}

.detail-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

.detail-breadcrumb {
  color: var(--gray-600);
}

.detail-breadcrumb a:hover {
  color: var(--rose-dark);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 2rem;
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.44));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.28);
  font-size: 2.2rem;
}

.player-frame.is-playing .player-overlay,
.player-overlay[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  transform: translate(-50%, -50%);
}

.player-frame.is-error .player-message {
  display: block;
}

.detail-panel {
  padding: 1.6rem;
}

.detail-category {
  margin-bottom: 0.9rem;
}

.detail-panel h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.detail-lead {
  margin: 0 0 1.2rem;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--gray-700);
  background: #f3f4f6;
  font-weight: 700;
}

.tag-list {
  margin: 1.2rem 0;
}

.tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff1f2;
  font-weight: 700;
  font-size: 0.88rem;
}

.detail-text {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.3rem;
  margin-top: 1.3rem;
}

.detail-text h2,
.side-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}

.detail-text p {
  margin: 0 0 0.95rem;
  color: var(--gray-700);
  line-height: 1.9;
}

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

.side-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
}

.side-list {
  display: grid;
  gap: 1rem;
}

.side-list .movie-card-horizontal {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.side-list .movie-thumb {
  width: 8rem;
  flex-basis: 8rem;
  min-height: 5.5rem;
}

.detail-more {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 5rem;
  color: #fff;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-brand p,
.site-footer li,
.site-footer p {
  color: #d1d5db;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #fb7185;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

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

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .cards-4,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    left: 1rem;
    bottom: 4rem;
  }

  .hero-arrow {
    display: none;
  }

  .cards-2,
  .cards-3,
  .cards-4,
  .category-grid,
  .detail-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

  .section-title,
  .preview-head,
  .list-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-card-horizontal {
    min-height: 8rem;
  }

  .movie-thumb {
    width: 8.5rem;
    flex-basis: 8.5rem;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .hero-slider {
    height: 500px;
  }

  .hero-content p {
    font-size: 0.98rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 3rem;
  }

  .page-hero {
    margin: 1rem 1rem 0;
    padding: 1.5rem;
  }

  .movie-card-horizontal {
    display: block;
  }

  .movie-thumb,
  .side-list .movie-thumb {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .player-overlay span {
    width: 4rem;
    height: 4rem;
    font-size: 1.7rem;
  }
}
