:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 25px 60px rgba(244, 63, 94, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

* {
  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(--gray-900);
  background: linear-gradient(135deg, #f9fafb 0%, rgba(255, 241, 242, 0.64) 48%, rgba(253, 242, 248, 0.72) 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.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.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.26);
}

.logo-text {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--rose-500);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 220px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 46px 10px 18px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.search-input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
  width: 260px;
}

.search-button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 18px;
}

.mobile-panel .site-search {
  width: 100%;
}

.mobile-panel .search-input {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(236, 72, 153, 0.86));
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.08));
  content: "";
  z-index: 1;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.44) 48%, rgba(17, 24, 39, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.hero-copy {
  color: #fff;
}

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.hero-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-bottom: 28px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 30px rgba(244, 63, 94, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(244, 63, 94, 0.34);
}

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

.btn-light {
  color: var(--rose-600);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-poster {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.34);
  transform: rotate(2deg);
}

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
}

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

.main {
  padding: 56px 0 72px;
}

.section {
  margin-bottom: 64px;
}

.section-header,
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 28px;
}

.page-header {
  align-items: flex-start;
}

.section-title,
.page-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.section-subtitle,
.page-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-600);
  font-size: 16px;
}

.page-band {
  margin: 0 0 50px;
  padding: 54px 0;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 34%),
    linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.page-band .page-desc {
  color: rgba(255, 255, 255, 0.90);
}

.page-band .page-eyebrow {
  color: #fff;
}

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

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

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

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244, 63, 94, 0.24);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.movie-card:hover .poster-wrap img,
.featured-card:hover img {
  transform: scale(1.06);
}

.score-badge,
.rank-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.26);
}

.score-badge {
  top: 12px;
  left: 12px;
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.meta-line {
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.card-title {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 950;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--rose-600);
}

.card-desc {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.64;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.featured-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  background: #111827;
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.featured-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.18));
  content: "";
}

.featured-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.featured-body .card-title {
  color: #fff;
  font-size: 24px;
}

.featured-body .card-desc,
.featured-body .meta-line {
  color: rgba(255, 255, 255, 0.82);
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(135deg, #fff, rgba(255, 241, 242, 0.88));
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.category-card .category-arrow {
  margin-top: 24px;
  color: var(--rose-600);
  font-weight: 900;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

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

.ranking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, rgba(255, 241, 242, 0.42));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(244, 63, 94, 0.24);
}

.rank-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 16px;
  font-size: 18px;
  font-weight: 950;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}

.rank-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  color: var(--gray-800);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.no-results {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--gray-600);
  background: #fff;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-xl);
}

.no-results.is-visible {
  display: block;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gray-600);
  font-size: 14px;
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.10));
  cursor: pointer;
  z-index: 2;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.play-label {
  padding: 7px 14px;
  background: rgba(17, 24, 39, 0.48);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.detail-card,
.related-card,
.content-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.detail-card,
.content-card {
  padding: 28px;
}

.detail-title {
  margin: 24px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.detail-meta {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-weight: 800;
}

.detail-lead {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 18px;
}

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

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
}

.side-poster {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  background: #fff;
}

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

.related-card {
  margin-top: 24px;
  padding: 20px;
}

.related-card h2,
.related-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 950;
}

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

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.related-item h3,
.related-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.36;
}

.related-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(135deg, #fff, var(--gray-100));
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 44px 0;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-inner p,
.footer-inner a {
  color: var(--gray-600);
  font-size: 14px;
}

.footer-inner a:hover {
  color: var(--rose-600);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 950;
}

.footer-bottom {
  padding: 18px 0;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions > .site-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0 92px;
  }

  .hero-poster {
    width: min(320px, 72vw);
    transform: none;
  }

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

  .ranking-panel,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrows {
    display: none;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-header {
    display: block;
  }

  .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-thumb {
    width: 76px;
  }

  .detail-card,
  .content-card {
    padding: 20px;
  }
}
