:root {
  --sakura-50: #fff1f5;
  --sakura-100: #ffe4ec;
  --sakura-200: #fecdd8;
  --sakura-400: #fb7185;
  --sakura-500: #f43f5e;
  --sakura-600: #e11d48;
  --azuki-500: #be123c;
  --azuki-600: #9f1239;
  --matcha-500: #16a34a;
  --yuzu-400: #facc15;
  --yuzu-500: #eab308;
  --shiratama-50: #fffaf4;
  --ink-900: #18181b;
  --ink-800: #27272a;
  --ink-700: #3f3f46;
  --ink-600: #52525b;
  --ink-500: #71717a;
  --line: rgba(244, 63, 94, 0.14);
  --card: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 18px 50px rgba(190, 18, 60, 0.14);
  --shadow-card: 0 16px 36px rgba(24, 24, 27, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-800);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(250, 204, 21, 0.18), transparent 26rem),
    linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.26);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--sakura-600), var(--azuki-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-600);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sakura-600);
  background: rgba(244, 63, 94, 0.09);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px 10px 18px;
  background: transparent;
  color: var(--ink-800);
}

.header-search button {
  border: 0;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--ink-800);
  background: rgba(244, 63, 94, 0.08);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: block;
  animation: slideUp 0.24s ease both;
}

.mobile-links {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.mobile-links .nav-link {
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #190914;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 18, 0.92), rgba(20, 8, 18, 0.58), rgba(20, 8, 18, 0.24)),
    linear-gradient(0deg, rgba(20, 8, 18, 0.94), rgba(20, 8, 18, 0.2) 44%, rgba(20, 8, 18, 0.76));
}

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

.hero-copy {
  max-width: 760px;
  animation: fadeIn 0.7s ease both;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffe8ef;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.1);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.36);
}

.btn-soft {
  color: var(--sakura-600);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(244, 63, 94, 0.16);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(320px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.main-section {
  padding: 64px 0;
}

.main-section.compact {
  padding: 44px 0;
}

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

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

.section-desc {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--ink-600);
}

.section-kicker,
.detail-kicker {
  color: var(--sakura-600);
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.16);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.26);
  box-shadow: 0 24px 52px rgba(190, 18, 60, 0.18);
}

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

.movie-cover-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(250, 204, 21, 0.14));
}

.movie-cover-link img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.movie-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 24, 27, 0.76), transparent 52%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-cover-link::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.9);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.card-rating {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(24, 24, 27, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--sakura-600);
  background: rgba(244, 63, 94, 0.08);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #2a0d1d;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(190, 18, 60, 0.20);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 8, 18, 0.92), rgba(244, 63, 94, 0.18));
}

.category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  padding: 24px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-count {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 900;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.spotlight {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background: #200b19;
  box-shadow: var(--shadow-soft);
}

.spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 8, 18, 0.92), rgba(24, 8, 18, 0.24));
}

.spotlight-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 34px;
}

.spotlight-content h3 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.spotlight-content p {
  color: rgba(255, 255, 255, 0.82);
}

.rank-panel {
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  font-weight: 950;
}

.rank-thumb {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(244, 63, 94, 0.1);
}

.rank-title {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--sakura-600);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 54px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(24, 8, 18, 0.94), rgba(159, 18, 57, 0.88)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.24), transparent 26rem);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 16px;
  outline: 0;
  padding: 12px 14px;
  color: var(--ink-800);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.filter-result {
  margin: -8px 0 22px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 800;
}

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

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

.detail-shell {
  padding: 38px 0 70px;
}

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

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(244, 63, 94, 0.10);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-card);
}

.detail-title {
  margin: 0 0 16px;
  color: var(--ink-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-line {
  margin: 18px 0 0;
  color: var(--ink-700);
  font-size: 18px;
  font-weight: 800;
}

.player-section {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-card);
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.player-title h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #10060e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #10060e;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(16, 6, 14, 0.70), rgba(16, 6, 14, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button-core {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 18px 48px rgba(244, 63, 94, 0.34);
}

.play-button-core svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
  fill: currentColor;
}

.movie-content {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.content-card {
  padding: 26px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-card);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}

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

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #1f0715, #3b0a22);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 30px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed rgba(244, 63, 94, 0.24);
  border-radius: 24px;
  color: var(--ink-500);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 920px) {
  .nav-links,
  .header-search {
    display: none;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster {
    justify-self: start;
    width: 220px;
    transform: rotate(0deg);
  }

  .feature-panel,
  .detail-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
    max-width: 320px;
  }

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

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

  .navbar {
    height: 66px;
  }

  .logo-text {
    font-size: 18px;
  }

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

  .hero-arrow {
    display: none;
  }

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

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

  .section-header {
    display: grid;
  }

  .player-section,
  .detail-info,
  .content-card {
    padding: 18px;
    border-radius: 24px;
  }

  .rank-row {
    grid-template-columns: 36px 50px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-title {
    font-size: 15px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }
}
