:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8ff;
  --soft: #fff7fb;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

* {
  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(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #f8fbff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
  font-size: 15px;
}

.brand-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input {
  width: 240px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #374151;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--pink);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #fce7f3;
}

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

.mobile-panel nav,
.mobile-categories,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-link,
.mobile-categories a,
.footer-links a {
  color: #4b5563;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #fce7f3;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
}

.mobile-link.active {
  color: var(--pink);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6 0%, #a855f7 48%, #3b82f6 100%);
  min-height: 620px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.25;
  background: #ffffff;
  animation: pulseGlow 5s ease-in-out infinite;
}

.glow-one {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 10%;
}

.glow-two {
  width: 240px;
  height: 240px;
  right: 8%;
  top: 28%;
  animation-delay: 1s;
}

.glow-three {
  width: 190px;
  height: 190px;
  left: 42%;
  bottom: 8%;
  animation-delay: 2s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.18;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.32;
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0;
}

.hero-slider {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 44px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(31, 41, 55, 0.32);
  transform: rotate(-2deg);
  background: rgba(255, 255, 255, 0.18);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(15, 23, 42, 0.52) 100%);
}

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

.hero-content {
  text-shadow: 0 16px 48px rgba(15, 23, 42, 0.24);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: #ffe4f1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-kicker {
  color: var(--pink);
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #fff1f7;
  font-size: 19px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  color: var(--pink-dark);
  background: #fff1f8;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-actions,
.hero-controls,
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 34px rgba(219, 39, 119, 0.28);
}

.btn-light {
  color: var(--pink-dark);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.hero-controls {
  justify-content: center;
  margin-top: 28px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.category-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 34px 0 8px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 13px 18px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 48px rgba(168, 85, 247, 0.22);
}

.color-pink { background: linear-gradient(135deg, #f472b6, #ec4899); }
.color-red { background: linear-gradient(135deg, #f87171, #e11d48); }
.color-yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.color-rose { background: linear-gradient(135deg, #fb7185, #ec4899); }
.color-purple { background: linear-gradient(135deg, #c084fc, #8b5cf6); }
.color-blue { background: linear-gradient(135deg, #60a5fa, #06b6d4); }
.color-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.color-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.color-stone { background: linear-gradient(135deg, #a8a29e, #57534e); }
.color-slate { background: linear-gradient(135deg, #94a3b8, #334155); }
.color-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.color-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }

.section-block {
  padding: 56px 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(244, 114, 182, 0.13);
  box-shadow: 0 16px 44px rgba(236, 72, 153, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-large .poster-link img {
  aspect-ratio: 16 / 11;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.86);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 10px 0 7px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

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

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.soft-band {
  margin: 26px 0;
  padding: 10px 0;
}

.pink-band {
  background: linear-gradient(90deg, #fff1f8, #faf5ff);
}

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

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 22px;
  scroll-snap-type: x mandatory;
}

.rail-card {
  width: 270px;
  flex: 0 0 270px;
  scroll-snap-align: start;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 56px 0;
}

.rank-panel,
.detail-side,
.filter-panel,
.detail-text,
.category-card,
.ranking-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 114, 182, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 52px rgba(236, 72, 153, 0.08);
}

.rank-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.rank-panel h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 950;
}

.rank-list,
.side-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #374151;
  background: #fff7fb;
  border-radius: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fce7f3;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.rank-meta {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  padding: 82px 0 70px;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #a855f7, #3b82f6);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff1f7;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-card {
  overflow: hidden;
}

.category-card a {
  display: block;
  min-height: 250px;
  padding: 28px;
  color: #ffffff;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  min-height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 28px;
}

.filter-panel input {
  width: min(680px, 100%);
  border-radius: 18px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row span {
  color: #6b7280;
  font-weight: 900;
  margin-right: 2px;
}

.filter-row button,
.filter-row a {
  border: 1px solid #fbcfe8;
  color: #4b5563;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter-row button.active,
.filter-row button:hover,
.filter-row a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #fce7f3;
}

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

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

.ranking-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

.ranking-poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  font-weight: 950;
}

.ranking-card h2 {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}

.ranking-card p {
  margin: 0 0 14px;
  color: #6b7280;
}

.detail-hero {
  padding: 56px 0;
  color: #ffffff;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #ec4899 0%, #a855f7 46%, #2563eb 100%);
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 36px 82px rgba(15, 23, 42, 0.32);
  transform: rotate(-1.5deg);
  background: rgba(255, 255, 255, 0.18);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-info .breadcrumb {
  margin: 0 0 16px;
}

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

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: #fff1f7;
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-meta dt {
  color: #ffe4f1;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.player-section {
  padding: 46px 0 18px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 52px rgba(236, 72, 153, 0.42);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 26px 0 10px;
}

.detail-text {
  padding: 28px;
  margin-bottom: 20px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.detail-text p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-side {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(90deg, #fce7f3, #f3e8ff, #dbeafe);
  border-top: 1px solid rgba(244, 114, 182, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #1f2937;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  color: #6b7280;
}

.footer-bottom {
  padding: 18px 16px 24px;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
}

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 66px;
  }

  .brand-text {
    font-size: 22px;
  }

  .hero-section,
  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
  }

  .hero-image {
    transform: none;
    max-width: 460px;
    margin: 0 auto;
  }

  .hero-image img {
    height: 300px;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 330px;
    margin: 0 auto;
  }

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

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

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

@media (max-width: 580px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-section,
  .hero-shell {
    min-height: 700px;
  }

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

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-image img {
    height: 240px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-large,
  .cards-medium,
  .cards-compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .player-shell {
    border-radius: 20px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
