:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --blue: #38bdf8;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f7;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
  --radius: 24px;
}

* {
  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(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7fb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(244, 63, 94, 0.96));
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 9px 16px;
  border-radius: 999px;
  transition: 0.24s ease;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.nav-search,
.mobile-search,
.big-search,
.page-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.page-search-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 190px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder,
.page-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button,
.big-search button,
.page-search-form button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--pink);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

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

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease, transform 0.72s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.2);
  transform: scale(1.12);
  opacity: 0.44;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(236, 72, 153, 0.58), transparent 32%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(236, 72, 153, 0.58) 52%, rgba(244, 63, 94, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  align-items: center;
  gap: 64px;
  padding: 84px 0 96px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 24px 0 20px;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 1000;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span,
.tag-cloud a {
  color: var(--pink);
  background: #fff1f7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.btn.primary:hover,
.card-poster:hover .play-badge {
  transform: translateY(-2px) scale(1.04);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.btn.ghost-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.btn.line {
  color: var(--pink);
  border: 1px solid rgba(236, 72, 153, 0.28);
  background: #ffffff;
}

.btn.full {
  width: 100%;
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 3 / 4.18;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
}

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

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

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

.hero-dot.active {
  width: 58px;
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

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

.soft-bg {
  background: linear-gradient(180deg, #fff7fb, #ffffff);
}

.rose-bg {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 1000;
}

.section-head.inverted h2,
.section-head.inverted .section-kicker {
  color: #ffffff;
}

.section-head.inverted .section-kicker {
  background: rgba(255, 255, 255, 0.18);
}

.compact-head {
  margin-bottom: 18px;
}

.text-link {
  color: var(--pink);
  font-weight: 900;
}

.text-link.light {
  color: #ffffff;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.12);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(17, 24, 39, 0.92));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 21px;
  font-weight: 1000;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.72));
  opacity: 0.82;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.45);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, var(--rose));
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 1000;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}

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

.rank-list-item {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-list-item img {
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.list-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 1000;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-weight: 1000;
}

.rank-info em,
.rank-views {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.search-panel-large {
  border-radius: 34px;
  padding: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.38), transparent 38%),
    linear-gradient(135deg, #111827, #be185d);
  box-shadow: var(--shadow);
}

.search-panel-large h2 {
  margin: 16px 0 12px;
  font-size: 38px;
  line-height: 1.08;
}

.search-panel-large p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.big-search {
  margin-top: 24px;
}

.big-search input,
.page-search-form input {
  flex: 1;
  min-width: 0;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  min-height: 260px;
  border-radius: 36px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #ec4899, #f43f5e 50%, #fb923c);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 1000;
}

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

.page-hero .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 180px 180px 220px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border-color: #f9a8d4;
  background: #fff7fb;
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.category-overview-card {
  border-radius: 30px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-overview-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.category-overview-head > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 1000;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 1000;
}

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

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.mini-poster-row a {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.mini-poster-row img {
  height: 100%;
  object-fit: cover;
}

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

.ranking-grid .movie-card:nth-child(-n+3) {
  box-shadow: 0 22px 48px rgba(245, 158, 11, 0.22);
}

.archive-table {
  display: grid;
  gap: 8px;
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 110px 130px minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.archive-head {
  color: var(--pink);
  font-weight: 1000;
  background: #fff1f7;
  box-shadow: none;
}

.archive-title {
  font-weight: 1000;
}

.archive-row:hover .archive-title {
  color: var(--pink);
}

.page-search-form {
  width: min(460px, 100%);
}

.search-results:empty {
  display: none;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--pink);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(2, 6, 23, 0.46));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.45);
  font-size: 34px;
}

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

.detail-card,
.side-card,
.poster-card {
  border-radius: 28px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 1000;
}

.score-badge {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, var(--rose));
  font-size: 24px;
  font-weight: 1000;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fff1f7;
  font-weight: 900;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  font-weight: 1000;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.tag-cloud {
  margin: 22px 0 6px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 98px;
}

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

.side-card dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #111827;
  line-height: 1.6;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.narrow-inner {
  width: 100%;
}

.movie-card.compact .card-desc {
  min-height: auto;
}

.site-footer {
  margin-top: 42px;
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: #ffffff;
}

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

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

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

  .hero-poster {
    max-width: 360px;
    transform: none;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav-wrap {
    height: 66px;
  }

  .site-logo span:last-child {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slider,
  .hero-inner {
    min-height: 620px;
  }

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

  .hero-actions,
  .section-head,
  .page-hero,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 52px 0;
  }

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

  .card-body {
    padding: 14px;
  }

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

  .card-desc {
    display: none;
  }

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

  .rank-views {
    display: none;
  }

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

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

  .archive-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .archive-head {
    display: none;
  }

  .detail-card,
  .side-card,
  .poster-card {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-title-row {
    flex-direction: column;
  }

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

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

  .hero-inner,
  .section-inner,
  .detail-wrap,
  .page-hero,
  .footer-inner,
  .nav-wrap,
  .mobile-panel {
    width: min(100% - 20px, 1180px);
  }

  .hero-poster {
    max-width: 280px;
  }
}
