:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.28);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--orange-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: #fff7ed;
  color: var(--orange-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber) 58%, var(--yellow));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.7) 2px, transparent 0);
  background-size: 42px 42px;
  pointer-events: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 54px;
  width: 100%;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 126px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-copy {
  max-width: 740px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.primary-button {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(720px, calc(100% - 32px));
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 800;
}

.hero-stats {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(920px, calc(100% - 32px));
  margin: -36px auto 0;
}

.hero-stats a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  font-size: 26px;
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.hero-cats {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(900px, calc(100% - 32px));
  margin: 18px auto 48px;
}

.hero-cats a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.section {
  padding-top: 74px;
  padding-bottom: 74px;
}

.soft-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head > a {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

.wide-poster {
  aspect-ratio: 16 / 10;
}

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

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: var(--orange);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card-wide {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.movie-card-wide .card-title {
  min-height: auto;
  font-size: 20px;
}

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

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-main {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-main span {
  font-size: 21px;
  font-weight: 900;
}

.category-main strong {
  font-size: 34px;
  line-height: 1;
}

.category-main em {
  font-size: 13px;
  font-style: normal;
  opacity: 0.85;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 6px;
}

.category-samples a {
  overflow: hidden;
  color: #374151;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--orange-dark);
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber) 55%, var(--yellow));
  padding: 86px 0 92px;
}

.page-hero.compact {
  padding: 58px 0 66px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.detail-wrap .breadcrumb {
  color: var(--muted);
}

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

.detail-wrap .breadcrumb a:hover {
  color: var(--orange-dark);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
}

.list-search,
.select-wrap {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.list-search input,
.select-wrap select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: var(--text);
  background: #ffffff;
}

.list-search input:focus,
.select-wrap select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.movie-card.is-hidden {
  display: none;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-poster {
  display: block;
  overflow: hidden;
  width: 78px;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
}

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

.ranking-main a {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-main a:hover {
  color: var(--orange-dark);
}

.ranking-main p {
  margin: 0 0 10px;
  color: var(--muted);
}

.ranking-score {
  display: grid;
  justify-items: center;
  color: var(--muted);
}

.ranking-score strong {
  color: var(--orange-dark);
  font-size: 24px;
}

.detail-wrap {
  padding-top: 34px;
  padding-bottom: 80px;
}

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

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

.player-card,
.detail-content,
.info-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player video {
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.play-icon {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  font-size: 30px;
}

.player-cover strong,
.player-cover em {
  position: relative;
  z-index: 4;
  display: block;
}

.player-cover strong {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto 8px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}

.player-cover em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.86);
}

.movie-player.is-started .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.detail-content {
  padding: 28px;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 800;
}

.copy-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: #f9fafb;
}

.copy-box.accent {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.copy-box.review {
  border-left: 5px solid var(--blue);
  background: #eff6ff;
}

.copy-box h2,
.tag-cloud h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.2;
}

.copy-box p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-cloud h2 {
  flex-basis: 100%;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.info-card {
  padding: 22px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.side-link {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #374151;
  font-weight: 800;
}

.side-link:hover {
  color: var(--orange-dark);
}

.related-section {
  padding-bottom: 0;
}

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

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mini-card span {
  display: -webkit-box;
  min-height: 44px;
  margin: 12px 12px 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card em {
  display: block;
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2,
.footer-brand strong {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

@media (max-width: 1120px) {
  .cards-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 66px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .search-toolbar {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy em {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-slide {
    min-height: 460px;
    padding: 50px 16px 120px;
  }

  .hero-copy p {
    margin-bottom: 22px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero-search {
    bottom: 76px;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .hero-search button {
    min-height: 44px;
  }

  .hero-dots {
    bottom: 170px;
  }

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

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .cards-3,
  .cards-4,
  .cards-6,
  .category-grid,
  .category-grid.large,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-tile {
    grid-column: span 2;
  }

  .card-body {
    padding: 12px;
  }

  .ranking-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .title-row {
    display: grid;
  }

  .detail-content {
    padding: 20px;
  }

  .copy-box {
    padding: 18px;
  }

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