:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(51, 65, 85, 0.72);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --green: #4ade80;
  --yellow: #facc15;
  --orange: #fb923c;
  --purple: #c084fc;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.14), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand {
  flex: 0 0 auto;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  border-radius: 12px;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.34);
  font-size: 13px;
}

.brand-text {
  max-width: 280px;
  font-size: 20px;
  line-height: 1.12;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  color: var(--muted);
}

.desktop-nav a,
.footer-links a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
  color: var(--cyan);
}

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

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select,
.search-page-form input {
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-page-form input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.header-search button,
.search-page-form button,
.mobile-panel button {
  color: white;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel a {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-panel form {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.84) 30%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.54) 48%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 150px;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 720px;
}

.hero-kicker,
.hero-meta,
.card-stats,
.rank-meta,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.section-kicker,
.tag-row span,
.detail-tags span,
.quality,
.duration {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-kicker span,
.tag-row span,
.detail-tags span {
  padding: 5px 10px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 13px;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(36px, 7vw, 64px);
}

.hero-content p,
.page-hero p,
.detail-info .one-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta {
  margin-top: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.25);
}

.btn-secondary {
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.btn-ghost {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.34);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1280px, calc(100% - 32px))) / 2);
  bottom: 42px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-wrap {
  padding: 54px 0;
}

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

.compact-title {
  align-items: center;
}

.section-title h2,
.site-footer h2,
.detail-text h2 {
  margin: 0;
  color: white;
  font-size: 26px;
  line-height: 1.2;
}

.section-title a {
  color: var(--cyan);
  font-weight: 800;
}

.section-kicker {
  margin-bottom: 8px;
  padding: 5px 10px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.32);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-kicker.green {
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
}

.section-kicker.yellow {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.3);
}

.section-kicker.purple {
  color: var(--purple);
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.3);
}

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

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

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

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

.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card,
.rank-card,
.category-card,
.category-tile,
.player-card,
.detail-text article,
.ranking-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.movie-card,
.rank-card,
.category-card,
.category-tile {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-card:hover,
.category-tile:hover {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.12);
}

.movie-card a,
.category-card a,
.rank-card a {
  display: block;
  height: 100%;
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.poster img,
.category-cover img,
.rank-card img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster img,
.category-card:hover img,
.rank-card:hover img {
  transform: scale(1.07);
}

.poster-horizontal {
  width: 190px;
  min-height: 128px;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}

.poster-minimal {
  aspect-ratio: 2 / 3;
}

.quality,
.duration {
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.quality {
  top: 10px;
  left: 10px;
  padding: 4px 8px;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
}

.card-body {
  padding: 16px;
}

.card-body.compact {
  padding: 12px;
}

.card-meta,
.rank-meta {
  color: var(--subtle);
  font-size: 13px;
}

.movie-card h3,
.rank-card h3,
.category-card h2 {
  margin: 8px 0;
  color: white;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card-minimal h3 {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p,
.rank-card p,
.category-card p,
.category-tile em {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--subtle);
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 3px 8px;
  font-size: 12px;
}

.card-stats {
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-horizontal a {
  display: flex;
}

.stack-list {
  display: grid;
  gap: 16px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.rank-card a {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.rank-card img {
  width: 74px;
  height: 92px;
  border-radius: 12px;
}

.rank-card h3 {
  margin: 0 0 6px;
  padding-right: 46px;
  font-size: 16px;
}

.rank-card p {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.rank-number {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  color: white;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  font-weight: 900;
}

.rank-number.gold {
  background: rgba(250, 204, 21, 0.22);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde68a;
}

.rank-number.silver {
  background: rgba(203, 213, 225, 0.2);
  border-color: rgba(203, 213, 225, 0.42);
}

.rank-number.bronze {
  background: rgba(251, 146, 60, 0.22);
  border-color: rgba(251, 146, 60, 0.42);
  color: #fed7aa;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  display: grid;
  min-height: 160px;
  align-content: end;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(37, 99, 235, 0.09)),
    rgba(15, 23, 42, 0.8);
}

.category-tile span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong {
  margin-top: 8px;
  color: white;
  font-size: 20px;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.category-cover {
  height: 180px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.category-card div:last-child {
  padding: 20px;
}

.category-card span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  margin: 0 auto;
  padding: 76px 0 44px;
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(34px, 6vw, 56px);
}

.page-actions {
  margin-top: 24px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.filter-bar select {
  width: 160px;
  padding: 12px 14px;
}

.detail-hero {
  min-height: 600px;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.8) 44%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.5));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: rgba(15, 23, 42, 0.9);
}

.detail-info {
  max-width: 820px;
}

.detail-tags {
  margin: 22px 0;
}

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

.detail-meta li {
  padding: 13px 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 14px;
}

.detail-meta span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 14px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: black;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  color: white;
  background: #020617;
  border: 0;
}

.player-cover.hidden {
  display: none;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.24)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 22rem);
}

.player-glow,
.play-button,
.player-title {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
}

.player-glow {
  top: calc(50% - 42px);
  width: 130px;
  height: 130px;
  background: rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  filter: blur(22px);
}

.play-button {
  top: calc(50% - 34px);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.38);
  font-size: 30px;
}

.player-title {
  top: calc(50% + 58px);
  width: min(90%, 720px);
  color: white;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 900;
  text-align: center;
}

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

.detail-text article {
  padding: 26px;
}

.detail-text p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin-top: 26px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: var(--subtle);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--subtle);
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: flex;
  }

  .header-search {
    margin-left: auto;
  }

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

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

  .ranking-panel {
    position: relative;
    top: auto;
  }
}

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

  .brand-text {
    max-width: 180px;
    font-size: 17px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 112px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

  .section-title,
  .filter-bar,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar select {
    width: 100%;
  }

  .three-col,
  .four-col,
  .five-col,
  .six-col,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-horizontal a,
  .category-card a {
    display: block;
  }

  .poster-horizontal {
    width: 100%;
  }

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

  .detail-poster {
    width: min(280px, 74vw);
  }

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

@media (max-width: 540px) {
  .mobile-panel.open,
  .three-col,
  .four-col,
  .five-col,
  .six-col,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .section-wrap {
    padding: 38px 0;
  }

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

  .rank-card a {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .rank-card img {
    width: 64px;
    height: 84px;
  }
}
