* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #2f1a14;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 48%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 241, 242, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 2px solid #d97706;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.12);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(185, 28, 28, 0.28);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

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

.brand-text strong {
  display: block;
  color: #7f1d1d;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.brand-text em {
  display: block;
  color: #b45309;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.16em;
  margin-top: 4px;
}

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

.nav-link {
  position: relative;
  color: #7f1d1d;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #d97706;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #d97706;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.12);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7f1d1d;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(217, 119, 6, 0.28);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  color: #7f1d1d;
  font-weight: 700;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: #ffedd5;
  color: #b45309;
}

.hero-carousel {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: linear-gradient(120deg, #7f1d1d, #92400e, #7f1d1d);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.24) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: gridFloat 14s linear infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes gridFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(58px, 58px, 0); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 10, 10, 0.96) 0%, rgba(127, 29, 29, 0.78) 42%, rgba(120, 53, 15, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  box-shadow: 0 16px 30px rgba(127, 29, 29, 0.28);
}

.ghost-button,
.section-more {
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.ghost-button.small,
.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.22);
}

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

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(69, 10, 10, 0.25);
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fbbf24;
}

.hero-search-wrap {
  position: relative;
  z-index: 10;
  width: min(1200px, calc(100% - 32px));
  margin: -50px auto 0;
}

.hero-search-panel,
.filter-panel,
.category-block,
.detail-content,
.info-card,
.player-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(127, 29, 29, 0.12);
}

.hero-search-panel {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(14px);
}

.hero-search-panel strong {
  display: block;
  color: #7f1d1d;
  font-size: 24px;
}

.hero-search-panel span {
  color: #b45309;
  font-weight: 700;
}

.site-search,
.filter-search {
  display: flex;
  gap: 10px;
}

.site-search input,
.filter-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #7f1d1d;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  outline: none;
}

.site-search input:focus,
.filter-search input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.site-search button {
  min-width: 90px;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #d97706);
  font-weight: 800;
}

.quick-categories {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-categories a {
  padding: 9px 13px;
  color: #92400e;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-section.no-top-space {
  padding-top: 28px;
}

.band-section {
  background: linear-gradient(90deg, #ffedd5, #ffe4e6, #ffedd5);
}

.white-section {
  background: #ffffff;
  border-top: 4px solid rgba(251, 191, 36, 0.65);
  border-bottom: 4px solid rgba(251, 191, 36, 0.65);
}

.dark-section {
  background: linear-gradient(135deg, #7f1d1d, #78350f, #7f1d1d);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  border-radius: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #7f1d1d;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
}

.light-heading h2 {
  color: #ffffff;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(127, 29, 29, 0.1);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.18);
  transform: translateY(-8px);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #d97706);
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: #dc2626;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.meta-badges {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: #dc2626;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.meta-badges {
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.meta-badges b {
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 7px;
  font-size: 12px;
}

.meta-badges b:first-child {
  background: #d97706;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #b91c1c;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #5b514c;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 4px 8px;
  color: #92400e;
  background: #fffbeb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.page-shell,
.detail-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 58px;
  color: #ffffff;
  background: linear-gradient(120deg, #7f1d1d, #92400e, #7f1d1d);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.2);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: rgba(251, 191, 36, 0.18);
  border-radius: 999px;
}

.page-hero.slim-hero {
  padding: 42px;
}

.page-hero span {
  display: inline-block;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.75;
}

.category-list {
  display: grid;
  gap: 26px;
}

.category-block {
  padding: 24px;
}

.category-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.category-block h2 {
  margin: 0 0 8px;
  color: #7f1d1d;
  font-size: 28px;
}

.category-block p {
  margin: 0;
  color: #6b5148;
  line-height: 1.7;
}

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

.filter-panel.expanded {
  gap: 22px;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group strong {
  color: #7f1d1d;
}

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

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  color: #92400e;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  border-color: transparent;
}

.no-results {
  display: none;
  padding: 36px;
  color: #7f1d1d;
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
  font-weight: 800;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 2px solid rgba(251, 191, 36, 0.38);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #7f1d1d, #d97706);
  border-radius: 14px;
}

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

.rank-info h2 {
  margin: 0 0 8px;
  color: #7f1d1d;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #5b514c;
  line-height: 1.65;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span {
  padding: 4px 8px;
  color: #92400e;
  background: #ffedd5;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.player-card {
  padding: 10px;
  background: #111827;
  border-color: rgba(251, 191, 36, 0.55);
}

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

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

.player video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.72));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #d97706);
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.detail-content {
  padding: 30px;
}

.detail-content h1 {
  margin: 0 0 16px;
  color: #7f1d1d;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #7f1d1d;
  font-size: 22px;
}

.detail-content section + section {
  margin-top: 24px;
}

.detail-content p {
  margin: 0;
  color: #4b3f3a;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span,
.detail-tags span {
  padding: 7px 12px;
  color: #92400e;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.review-box h2 {
  font-size: 28px;
}

.detail-side {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin: 0 0 16px;
  color: #7f1d1d;
  font-size: 22px;
}

.info-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3e3d2;
}

.info-card dl div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: #6b5148;
  font-weight: 700;
}

.info-card dd {
  margin: 0;
  color: #7f1d1d;
  font-weight: 900;
  text-align: right;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-link:hover {
  background: #ffedd5;
}

.side-link img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d, #d97706);
  border-radius: 10px;
}

.side-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-link em {
  display: block;
  color: #8a6756;
  font-size: 12px;
  font-style: normal;
  margin-top: 5px;
}

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

.site-footer {
  color: #fffbeb;
  background: linear-gradient(90deg, #7f1d1d, #78350f, #7f1d1d);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
}

.footer-logo .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-logo .brand-text strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-logo .brand-text em {
  color: #fde68a;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #fde68a;
  line-height: 1.75;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: 18px;
}

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

.footer-links a {
  color: #ffedd5;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #fde68a;
  border-top: 1px solid rgba(253, 230, 138, 0.28);
  font-size: 14px;
}

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

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

  .detail-side {
    position: static;
  }

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

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

  .mobile-menu-button {
    display: block;
  }

  .site-header-inner {
    height: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .hero-carousel {
    height: 620px;
  }

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

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

  .site-search,
  .filter-search,
  .category-block-head,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

  .page-hero {
    padding: 34px 24px;
  }

  .rank-row {
    grid-template-columns: 48px 96px 1fr;
  }

  .rank-row .ghost-button {
    grid-column: 2 / -1;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .hero-actions,
  .hero-controls {
    width: calc(100% - 32px);
  }

  .hero-controls {
    justify-content: space-between;
  }

  .rank-row {
    grid-template-columns: 48px 1fr;
  }

  .rank-cover {
    grid-column: 1 / -1;
    order: -1;
  }

  .rank-info,
  .rank-row .ghost-button {
    grid-column: 1 / -1;
  }

  .side-link {
    grid-template-columns: 96px 1fr;
  }

  .side-link img {
    width: 96px;
    height: 64px;
  }
}
