* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --surface: rgba(255, 255, 255, 0.86);
  --border: rgba(226, 232, 240, 0.9);
  --shadow: 0 22px 60px rgba(79, 70, 229, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(135deg, #fff7fb 0%, #f7f2ff 48%, #eef7ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.narrow {
  width: min(860px, calc(100% - 32px));
}

.top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.32);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  color: #374151;
}

.desktop-nav a {
  position: relative;
  padding: 4px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.3);
  transition: 0.2s ease;
}

.desktop-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 30vw);
}

.header-search input,
.filter-panel input,
.filter-panel select,
.hero-search-card input {
  width: 100%;
  border: 1px solid var(--border);
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition: 0.2s ease;
}

.header-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.hero-search-card input:focus {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.hero-search-card button {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.24);
}

.header-search button {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.58;
  pointer-events: none;
}

.hero-glow-one {
  top: 7%;
  left: -8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(244, 114, 182, 0.24);
}

.hero-glow-two {
  right: -7rem;
  bottom: 10%;
  width: 24rem;
  height: 24rem;
  background: rgba(96, 165, 250, 0.24);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: 24px;
  min-height: 620px;
}

.hero-slides {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 42px;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  box-shadow: var(--shadow);
  opacity: 0;
  overflow: hidden;
  transform: translateY(20px) scale(0.985);
  transition: 0.45s ease;
  backdrop-filter: blur(18px);
}

.hero-slide::before {
  position: absolute;
  inset: auto auto -10rem -8rem;
  width: 24rem;
  height: 24rem;
  content: "";
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
}

.hero-slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 12px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #4b5563;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 10px;
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.88);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.26);
}

.ghost-btn {
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(139, 92, 246, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  transition: 0.3s ease;
}

.hero-poster::after,
.poster-wrap::after,
.detail-poster::after,
.rank-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.64));
  pointer-events: none;
}

.hero-poster:hover img,
.poster-wrap:hover img,
.rank-poster:hover img {
  transform: scale(1.06);
}

.hero-play,
.poster-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(236, 72, 153, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-play {
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  font-size: 1.45rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-search-card,
.ranking-panel,
.story-card,
.filter-panel,
.category-tile,
.movie-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.12);
  backdrop-filter: blur(14px);
}

.hero-search-card {
  padding: 26px;
  border-radius: 28px;
}

.hero-search-card span {
  color: var(--pink);
  font-weight: 800;
}

.hero-search-card h2 {
  margin: 8px 0 8px;
  font-size: 1.8rem;
  line-height: 1.15;
}

.hero-search-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-search-card form {
  display: flex;
  gap: 8px;
}

.hero-search-card input {
  padding: 12px 14px;
}

.hero-search-card button {
  padding: 12px 16px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.mini-card:first-child {
  grid-column: span 2;
}

.mini-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  filter: saturate(1.05);
}

.mini-card span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.mini-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 25%, rgba(15, 23, 42, 0.72));
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

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

.soft-panel {
  background: rgba(255, 255, 255, 0.32);
  border-block: 1px solid rgba(255, 255, 255, 0.58);
}

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

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

.section-head h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-head a {
  color: var(--pink);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(79, 70, 229, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.poster-play {
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: 0.22s ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  color: #fff;
  background: rgba(15, 23, 42, 0.64);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-meta span {
  display: inline-flex;
  padding: 3px 8px;
  background: rgba(243, 244, 246, 0.86);
  border-radius: 999px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--pink);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-tile {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(79, 70, 229, 0.18);
}

.category-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--tile-color), var(--purple));
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.category-tile strong {
  font-size: 1.35rem;
}

.category-tile small {
  flex: 1;
  color: var(--muted);
}

.category-tile em {
  color: var(--pink);
  font-style: normal;
  font-weight: 800;
}

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

.ranking-panel,
.story-card {
  padding: 24px;
  border-radius: 28px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: 0.2s ease;
}

.rank-list a:hover {
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateX(4px);
}

.rank-list strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 14px;
}

.rank-list span {
  display: block;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 70px 0 44px;
  text-align: center;
}

.page-hero h1 {
  margin: 16px 0 14px;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 1.12rem;
}

.category-hero h1 {
  background: linear-gradient(90deg, var(--tile-color), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 0.32fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 26px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  padding: 12px 14px;
}

.result-line {
  min-height: 28px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 210px;
}

.rank-poster {
  position: relative;
  display: block;
  overflow: hidden;
}

.rank-poster strong {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.rank-poster img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: 0.24s ease;
}

.detail-main {
  background:
    radial-gradient(circle at 70% 5%, rgba(236, 72, 153, 0.12), transparent 24rem),
    radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.11), transparent 22rem);
}

.detail-hero {
  padding: 56px 0 38px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.2);
}

.detail-poster img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 800;
}

.detail-info h1 {
  margin: 16px 0;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
}

.lead {
  max-width: 760px;
  color: #4b5563;
  font-size: 1.15rem;
}

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

.detail-stats span {
  padding: 8px 12px;
  color: #374151;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.74));
}

.big-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
}

.player-cover strong {
  max-width: 90%;
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
}

.player.is-playing .player-cover {
  display: none;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.text-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.story-card p {
  margin: 0;
  color: #4b5563;
}

.accent-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(253, 242, 248, 0.88));
}

.site-footer {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer a {
  margin: 8px 0;
}

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

.footer-bottom {
  padding: 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

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

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

  .hero-stage,
  .hero-slide,
  .two-column,
  .detail-grid,
  .text-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-slides {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-section {
    padding: 28px 0 42px;
  }

  .hero-slide {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
  }

  .hero-search-card form,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .category-grid.large,
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .rank-poster img {
    min-height: 190px;
  }

  .detail-poster img {
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
