:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --bg: #ecfeff;
  --ink: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --line: rgba(148, 163, 184, 0.35);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 48%, #eef2ff 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1180px);
  height: 64px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #ffffff;
}

.brand-name {
  font-size: 1.22rem;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #334155;
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  padding: 0.72rem 0.9rem;
  border-radius: 0.8rem;
  color: #374151;
  font-weight: 650;
}

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

.hero {
  position: relative;
  height: 68vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-badges,
.detail-tags,
.footer-tags,
.filter-buttons,
.pill-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges span {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-badges span:first-child {
  background: var(--cyan);
}

.hero h1,
.hero h2 {
  margin: 1rem 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(100%, 620px);
  margin: 0 0 1.35rem;
  color: #e5e7eb;
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  color: #f8fafc;
}

.hero-meta strong {
  color: #fde68a;
}

.btn-primary,
.btn-ghost,
.btn-small,
.section-link,
.pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.btn-primary {
  padding: 0.95rem 1.55rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-small:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.32);
}

.btn-primary.full {
  width: 100%;
  margin-top: 1rem;
}

.btn-ghost {
  padding: 0.9rem 1.35rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 1.2rem;
}

.hero-next {
  right: 1.2rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

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

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

.quick-cats {
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.pill-row {
  justify-content: center;
}

.pill {
  padding: 0.72rem 1.15rem;
  color: #374151;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.pill:hover,
.pill.active,
.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-block {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.5), rgba(219, 234, 254, 0.55));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link,
.btn-small {
  padding: 0.72rem 1rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

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

.poster-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18), transparent);
  transition: opacity 0.28s ease;
}

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

.play-dot,
.play-large {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.play-dot {
  width: 60px;
  height: 60px;
  transform: scale(0.86);
  transition: transform 0.28s ease;
}

.movie-card-link:hover .play-dot {
  transform: scale(1);
}

.play-dot::after,
.play-large::after,
.brand-mark::after {
  border-radius: 2px;
}

.play-dot::after,
.play-large::after {
  content: "";
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--cyan-dark);
}

.badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.badge {
  top: 0.75rem;
  padding: 0.36rem 0.7rem;
}

.badge-left {
  left: 0.75rem;
  background: rgba(6, 182, 212, 0.9);
}

.badge-right {
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.66);
}

.rank-badge {
  left: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: #111827;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.24s ease;
}

.movie-card-link:hover h2 {
  color: var(--cyan-dark);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 0.75rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: #64748b;
  font-size: 0.78rem;
}

.movie-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card.compact .movie-card-body {
  padding: 0.85rem;
}

.movie-card.compact .movie-card-body h2 {
  font-size: 0.92rem;
}

.movie-card.compact .movie-card-body p {
  display: none;
}

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

.category-tile,
.category-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-thumbs,
.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.category-thumbs img,
.category-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0.7rem;
  object-fit: cover;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.category-tile strong {
  color: #111827;
  font-size: 1.1rem;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
}

.ranking-card,
.detail-card,
.side-card,
.category-panel,
.filter-bar {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.ranking-card {
  padding: 1.4rem;
}

.compact-head {
  margin-bottom: 1rem;
}

.rank-list {
  display: grid;
  gap: 0.7rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  transition: background 0.24s ease, transform 0.24s ease;
}

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

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-row img {
  width: 54px;
  aspect-ratio: 3 / 4;
  border-radius: 0.65rem;
  object-fit: cover;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.rank-title {
  overflow: hidden;
  color: #111827;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-type {
  color: var(--muted);
  font-size: 0.85rem;
}

.search-teaser h2 {
  margin: 0 0 0.45rem;
  font-size: 2rem;
}

.search-teaser p {
  color: var(--muted);
  line-height: 1.7;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 1rem 0;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px transparent;
}

.search-box span {
  color: var(--cyan-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.search-box.wide {
  max-width: 560px;
  margin: 0;
}

.search-box.emphasis {
  max-width: none;
  min-height: 56px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.empty-state {
  display: none;
  margin: 1.3rem 0 0;
  padding: 1rem;
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(37, 99, 235, 0.14));
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.crumb a:hover {
  color: var(--cyan-dark);
}

.inner-pills {
  justify-content: flex-start;
  margin-top: 1.35rem;
}

.category-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-panel-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.category-panel-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.category-panel-body ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.category-panel-body li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #334155;
  font-size: 0.92rem;
}

.category-panel-body li a:hover {
  color: var(--cyan-dark);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.filter-buttons.wrap {
  justify-content: flex-start;
}

.filter-chip {
  padding: 0.62rem 1rem;
  color: #334155;
  background: #f8fafc;
}

.detail-page {
  padding: 2rem 0 0;
}

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

.movie-player {
  overflow: hidden;
  border-radius: var(--radius);
  background: #020617;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.24);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  width: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.34));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-large {
  width: 86px;
  height: 86px;
}

.play-large::after {
  border-top-width: 14px;
  border-bottom-width: 14px;
  border-left-width: 22px;
}

.player-heading {
  padding: 0 1rem;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
}

.detail-card {
  margin-top: 1.3rem;
  padding: 1.6rem;
}

.detail-card h1 {
  margin-bottom: 1rem;
}

.detail-card h2,
.info-side h2 {
  margin: 1.5rem 0 0.65rem;
  color: #111827;
  font-size: 1.25rem;
}

.detail-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-card .lead-text {
  margin-bottom: 1rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 650;
}

.detail-tags {
  margin: 0 0 1rem;
}

.detail-tags span,
.footer-tags a {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  color: var(--cyan-dark);
  font-size: 0.86rem;
  font-weight: 750;
  background: #cffafe;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
}

.side-card {
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.info-side {
  padding: 1.25rem;
}

.info-side h2 {
  margin-top: 0;
}

.info-side dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.info-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

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

.info-side dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
  text-align: right;
}

.info-side dd a {
  color: var(--cyan-dark);
}

.related-block {
  padding-top: 3rem;
}

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

.ranking-grid .movie-card:nth-child(-n + 3) .rank-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.site-footer {
  margin-top: 3rem;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1f2937);
}

.footer-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.22rem;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-tags {
  gap: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }

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

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

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

  .detail-side {
    position: static;
  }

  .poster-side {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 540px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36));
  }

  .hero-content {
    top: auto;
    bottom: 4.6rem;
    transform: none;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .card-grid,
  .large-grid,
  .related-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

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

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

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

  .rank-type {
    display: none;
  }

  .search-box.wide {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .container,
  .site-nav,
  .mobile-menu,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.78rem 1rem;
  }

  .section-block {
    padding: 3rem 0;
  }

  .movie-card-body {
    padding: 0.85rem;
  }

  .movie-card-body h2 {
    font-size: 0.95rem;
  }

  .movie-card-body p {
    font-size: 0.84rem;
  }

  .detail-card,
  .ranking-card,
  .info-side {
    padding: 1rem;
  }

  .play-large {
    width: 72px;
    height: 72px;
  }
}
