:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f6;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.14);
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #fb923c;
  --blue: #60a5fa;
  --green: #34d399;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.14);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.20);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #fff9f1 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.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.88);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 25px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

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

.brand-name {
  font-size: clamp(18px, 2vw, 24px);
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.10);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.10);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--pink-dark);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #ec4899;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(96, 165, 250, 0.38), transparent 25%),
    linear-gradient(120deg, #ec4899 0%, #fb923c 52%, #60a5fa 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-container {
  position: relative;
  z-index: 2;
  padding: 88px 0 140px;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateY(0);
}

.hero-kicker,
.page-hero span,
.section-title span,
.hot-panel-head span,
.detail-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #be185d;
  background: #fff1f7;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.30);
}

.hero-actions .btn-primary {
  color: var(--pink-dark);
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.btn-soft {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.10);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.hero-search,
.inline-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(720px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.hero-search {
  margin-top: 38px;
}

.hero-search input,
.inline-search input,
.filter-bar input {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: #ffffff;
  border-radius: 999px;
  padding: 14px 18px;
}

.hero-search button,
.inline-search button,
.filter-reset {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
}

.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-category-row a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  color: #fff7fb;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
  fill: currentColor;
}

.content-section {
  padding: 72px 0;
}

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

.section-title span,
.hot-panel-head span,
.page-hero span,
.detail-badge {
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.10);
}

.section-title h2,
.hot-panel-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more,
.hot-panel-head a {
  color: var(--pink-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fff9fb);
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

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

.card-year,
.card-play {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-dark);
  font-weight: 900;
}

.card-year {
  left: 12px;
}

.card-play {
  right: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-category {
  color: var(--pink-dark);
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a:hover,
.ranking-info h3 a:hover,
.overview-body h2 a:hover {
  color: var(--pink-dark);
}

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

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

.category-card,
.overview-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.76fr) 1fr;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-cover,
.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  min-height: 230px;
  padding: 10px;
  background: linear-gradient(135deg, #fff1f7, #ffedd5);
}

.category-cover img,
.overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 95px;
  object-fit: cover;
  border-radius: 18px;
}

.category-text,
.overview-body {
  align-self: center;
  padding: 24px 24px 24px 0;
}

.category-text h3,
.overview-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-text p,
.overview-body p {
  margin: 0;
  color: var(--muted);
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.overview-links a {
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(236, 72, 153, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

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

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

.hot-panel,
.ranking-side {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hot-panel-head {
  margin-bottom: 18px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 78px 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.07);
}

.ranking-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #fff1f7;
}

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

.ranking-number {
  font-size: 30px;
  font-weight: 900;
  color: var(--pink-dark);
  letter-spacing: -0.08em;
}

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.ranking-meta strong {
  color: var(--pink-dark);
}

.mini-ranking .ranking-item {
  grid-template-columns: 54px 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.mini-ranking .ranking-number {
  font-size: 22px;
}

.mini-ranking .ranking-info p,
.mini-ranking .ranking-meta span:nth-child(2),
.mini-ranking .ranking-meta span:nth-child(3) {
  display: none;
}

.page-hero,
.movie-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.20), transparent 28%),
    linear-gradient(135deg, #fff7fb, #ffffff 55%, #fff1e8);
}

.page-hero h1,
.movie-detail-hero h1 {
  max-width: 840px;
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
}

.inline-search {
  margin-top: 24px;
  background: #ffffff;
  border-color: var(--line);
}

.inline-search input {
  background: #fff7fb;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  gap: 36px;
  align-items: center;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

.compact-card img {
  width: 64px;
  height: 86px;
  border-radius: 13px;
  object-fit: cover;
}

.compact-card span,
.compact-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card span {
  font-weight: 900;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.filter-bar input {
  flex: 1;
  background: #fff7fb;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  font-weight: 800;
}

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

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--pink-dark);
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  transform: rotate(-1.5deg);
}

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

.detail-info h1 {
  margin-bottom: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-meta div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.player-section {
  padding-bottom: 40px;
}

.player-card {
  padding: 16px;
  border-radius: 32px;
  background: linear-gradient(135deg, #111827, #312e81 52%, #831843);
  box-shadow: var(--shadow-strong);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.52);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: var(--pink-dark);
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(255, 255, 255, 0.18);
  font-size: 34px;
}

.player-overlay strong {
  max-width: min(720px, 90%);
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.2;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 32px;
}

.story-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, #fff1f7, #fff7ed);
}

.search-hero .inline-search,
.soft-hero .inline-search {
  width: min(780px, 100%);
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  color: #d1d5db;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 42px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  text-align: center;
}

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

  .hero-slide,
  .category-hero-grid,
  .split-section,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    min-height: auto;
    max-width: 430px;
    margin: 0 auto;
  }

  .hero-poster img {
    min-height: 520px;
  }

  .hot-panel,
  .ranking-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .brand-name {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-container {
    padding-top: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .hero-poster img {
    min-height: 420px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .overview-card,
  .movie-detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-text,
  .overview-body {
    padding: 22px;
  }

  .detail-poster {
    max-width: 340px;
  }
}

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

  .hero-search,
  .inline-search,
  .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .hero-search button,
  .inline-search button,
  .filter-reset {
    min-height: 46px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .detail-content,
  .featured-strip {
    grid-template-columns: 1fr;
  }

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

  .ranking-info p {
    -webkit-line-clamp: 1;
  }

  .page-hero,
  .movie-detail-hero {
    padding: 50px 0;
  }

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

  .content-section {
    padding: 48px 0;
  }
}
