:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0f766e;
  --cyan: #0e7490;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.brand:hover {
  color: var(--emerald-dark);
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.26);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  width: 230px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-500);
  background: var(--slate-50);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input,
.search-page-form input,
.local-filter input {
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: var(--white);
}

.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-weight: 800;
  cursor: pointer;
}

.mobile-links {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-700);
  font-weight: 800;
  background: var(--slate-50);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #115e59 48%, #164e63);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(15, 23, 42, 0.62) 47%, rgba(15, 23, 42, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  color: var(--white);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 243, 208, 0.28);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.30);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.white-section {
  background: var(--white);
}

.soft-section {
  background: linear-gradient(135deg, var(--slate-50), #eef2ff);
}

.green-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--emerald-dark);
  font-weight: 900;
}

.green-section .section-heading a {
  color: var(--white);
}

.section-bar {
  width: 5px;
  height: 36px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--emerald), var(--teal));
}

.green-section .section-bar {
  background: rgba(255, 255, 255, 0.58);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow-hover);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-100);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-quality {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--emerald-dark);
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 155px 1fr;
}

.movie-card-horizontal .card-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 210px;
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 9;
}

.movie-card-large .card-title {
  min-height: auto;
  font-size: 22px;
}

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

.category-tile,
.category-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-thumbs,
.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 120px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.15);
}

.category-preview {
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
}

.category-thumbs img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile h3,
.category-card h2 {
  margin: 16px 16px 6px;
  font-size: 20px;
  line-height: 1.2;
}

.category-tile p,
.category-card p {
  margin: 0 16px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-tile span,
.category-card span {
  display: inline-block;
  margin: 0 16px 18px;
  color: #d1fae5;
  font-weight: 900;
}

.category-overview-grid .category-card {
  color: var(--slate-900);
  background: var(--white);
  border-color: rgba(226, 232, 240, 0.86);
}

.category-overview-grid .category-card p {
  color: var(--slate-600);
}

.category-overview-grid .category-card span {
  color: var(--emerald-dark);
}

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

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

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

.rank-row span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-size: 12px;
  font-weight: 900;
}

.rank-row strong {
  display: block;
  overflow: hidden;
  color: var(--slate-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  display: block;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 80px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.26), transparent 34%), linear-gradient(135deg, #052e16, #115e59 52%, #0f172a);
}

.compact-hero h1 {
  max-width: 780px;
  margin: 0 0 15px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.local-filter,
.search-page-form {
  width: min(680px, 100%);
  margin-top: 26px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
}

.local-filter input {
  width: 100%;
}

.empty-state {
  display: none;
  padding: 60px 0;
  color: var(--slate-500);
  text-align: center;
  font-weight: 800;
}

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

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

.ranking-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 15px;
  background: var(--slate-100);
}

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

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.92);
  font-weight: 900;
}

.ranking-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.ranking-card p {
  margin: 0 0 18px;
  color: var(--slate-600);
}

.detail-hero {
  padding: 44px 0 60px;
  color: var(--white);
  background: radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.24), transparent 34%), linear-gradient(135deg, var(--slate-950), #134e4a 56%, var(--slate-900));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.player-card video,
.player-poster,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-card video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-poster {
  z-index: 2;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.player-shade {
  z-index: 3;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.54));
  transition: opacity 0.25s ease;
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-button svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: currentColor;
  margin-left: 5px;
}

.player-card.is-playing .player-poster,
.player-card.is-playing .player-shade,
.player-card.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.player-card.is-loading .player-button {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-line {
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb strong {
  color: var(--white);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta span {
  display: block;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta strong {
  color: var(--white);
}

.detail-content {
  max-width: 980px;
}

.detail-content article {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.detail-content p {
  margin: 0 0 26px;
  color: var(--slate-700);
  font-size: 17px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--slate-600);
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

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

.site-footer p {
  max-width: 440px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-wrap {
    height: 64px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-control {
    display: none;
  }

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

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

  .catalog-grid,
  .movie-grid,
  .featured-grid,
  .two-column-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card-horizontal .card-cover {
    aspect-ratio: 2 / 3;
    min-height: 0;
  }

  .category-thumbs,
  .category-preview {
    height: 110px;
  }

  .detail-meta,
  .footer-inner,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .player-button {
    width: 70px;
    height: 70px;
  }

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

@media (max-width: 480px) {
  .catalog-grid,
  .movie-grid,
  .featured-grid,
  .two-column-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .brand,
  .footer-brand {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .card-cover {
    aspect-ratio: 16 / 10;
  }
}
