:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --red: #dc2626;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  padding: 24px 0;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #374151;
}

.channel-strip {
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  background: rgba(248, 250, 252, 0.92);
}

.channel-inner {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.channel-inner a {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.channel-inner a:hover {
  color: var(--cyan-dark);
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 42%, rgba(6, 182, 212, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 52%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 70px;
  padding-top: 70px;
}

.hero-copy {
  max-width: 760px;
  animation: slideUp 0.7s ease-out both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.22);
  font-weight: 750;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
  line-height: 1.75;
}

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

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

.hero-tags span,
.detail-tags span,
.detail-badges span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

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

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 3 / 4;
}

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

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

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

.hero-dot.active {
  width: 66px;
  background: #fff;
}

.section-block,
.category-cloud,
.split-section,
.category-grid,
.filter-panel,
.search-summary {
  margin-top: 58px;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
}

.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.category-cloud-grid a,
.quick-links a,
.channel-tabs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  color: #0f172a;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-cloud-grid a:hover,
.quick-links a:hover,
.channel-tabs a.active {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.55);
}

.category-cloud-grid span {
  color: #64748b;
  font-size: 13px;
}

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

.side-column,
.detail-sidebar {
  position: sticky;
  top: 116px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
}

.movie-grid.small .poster-wrap,
.movie-card.compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-wrap img,
.category-cover:hover img,
.rank-list-item:hover img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 56%);
  pointer-events: none;
}

.year-badge,
.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  background: var(--red);
}

.play-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(6, 182, 212, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.55;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 10px;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 8px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.rank-panel,
.side-card,
.content-panel,
.filter-panel,
.search-summary {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

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

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

.rank-list-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.rank-list-item:hover {
  background: #ecfeff;
}

.rank-list-item img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
  font-size: 13px;
}

.rank-list-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-list-item p {
  margin: 0 0 5px;
  color: #64748b;
  line-height: 1.45;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-list-item span:last-child {
  color: #94a3b8;
  font-size: 12px;
}

.page-main {
  padding-bottom: 50px;
}

.page-hero {
  margin-top: 42px;
  padding: 56px;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 18%, rgba(20, 184, 166, 0.35), transparent 28%),
    linear-gradient(135deg, #0f172a, #164e63 55%, #0f766e);
  box-shadow: var(--shadow);
}

.page-hero.compact-hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.15), transparent 32%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.compact-hero p {
  color: #64748b;
}

.compact-hero .eyebrow {
  color: #0e7490;
  background: #ecfeff;
  border-color: #cffafe;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.quick-links a {
  justify-content: center;
  padding: 12px 16px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-cover {
  height: 190px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.category-body {
  padding: 22px;
}

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

.category-body p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.65;
}

.category-count {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 800;
}

.category-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-body li a {
  color: #475569;
  font-size: 14px;
}

.category-body li a:hover {
  color: var(--cyan-dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.channel-tabs a {
  padding: 10px 14px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-search {
  flex: 1;
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.filter-search input,
.search-box-large input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search input:focus,
.search-box-large input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-count {
  color: #64748b;
}

.filter-count strong {
  color: var(--cyan-dark);
  font-size: 26px;
}

.search-box-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  max-width: 780px;
  margin-top: 28px;
}

.search-box-large button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-weight: 800;
  cursor: pointer;
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  height: 440px;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.15) 65%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.72), transparent 64%);
}

.detail-title-block {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: #fff;
}

.detail-title-block h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.65;
}

.content-panel {
  margin-top: 24px;
}

.content-panel p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.2), transparent 38%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.24));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35);
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: #94a3b8;
}

.info-card dd {
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.detail-tags span {
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: #64748b;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 0;
  color: #64748b;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hidden-by-filter {
  display: none !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .movie-grid.small,
  .category-cloud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-column,
  .detail-sidebar {
    position: static;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 90px;
    padding-bottom: 76px;
  }

  .hero-poster {
    width: min(260px, 70vw);
  }

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

  .section-head,
  .filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .detail-hero {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-actions,
  .search-box-large {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .search-box-large button {
    width: 100%;
  }

  .search-box-large button {
    min-height: 50px;
  }

  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .category-cloud-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-title-block {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .detail-hero {
    height: 430px;
  }

  .rank-list-item {
    grid-template-columns: auto 68px minmax(0, 1fr);
  }

  .rank-list-item img {
    width: 68px;
    height: 54px;
  }
}
