:root {
  --bg: #030712;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-soft: rgba(17, 24, 39, 0.68);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --amber-dark: #d97706;
  --danger: #ef4444;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 1.25rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.10), transparent 25rem),
    linear-gradient(180deg, #030712 0%, #0b1120 44%, #030712 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  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% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.35rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.logo-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.9rem;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.28);
  font-size: 0.9rem;
}

.logo-text {
  display: grid;
  gap: 0.05rem;
}

.logo-text strong,
.footer-logo strong {
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.74rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  width: 100%;
  overflow: hidden;
}

.main-nav a,
.mobile-nav a {
  color: #d1d5db;
  padding: 0.55rem 0.78rem;
  border-radius: 0.75rem;
  font-size: 0.93rem;
  transition: 0.22s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: white;
  background: rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(31, 41, 55, 0.75);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  background: rgba(3, 7, 18, 0.94);
}

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

main {
  min-height: 64vh;
}

.hero-carousel {
  position: relative;
  height: min(700px, calc(100vh - 4.35rem));
  min-height: 560px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background: #020617;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.70) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-slide::after {
  background: linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.1) 45%, rgba(3, 7, 18, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 44rem;
  padding-top: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--amber-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-meta,
.detail-meta-row,
.card-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions,
.search-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.72rem 1.15rem;
  border-radius: 0.9rem;
  font-weight: 750;
  transition: 0.22s ease;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
}

.btn-secondary,
.btn-ghost {
  color: #e5e7eb;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.75);
}

.btn-secondary:hover,
.btn-ghost:hover {
  color: white;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.86);
}

.hero-arrow.prev {
  left: 1rem;
}

.hero-arrow.next {
  right: 1rem;
}

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

.hero-dots button {
  width: 0.58rem;
  height: 0.58rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-dots button.is-active {
  width: 2.1rem;
  background: var(--amber);
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -5rem;
  margin-bottom: 4rem;
}

.search-panel,
.glass-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.search-panel input,
.filter-panel input,
.filter-panel select,
.site-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  color: white;
  background: rgba(3, 7, 18, 0.72);
  outline: none;
  padding: 0.85rem 1rem;
}

.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.site-search input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.section-block {
  margin: 0 auto 4rem;
}

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

.section-head h1,
.section-head h2 {
  display: inline;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 45rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.55rem;
  border-radius: 0.75rem;
  color: var(--amber-2);
  background: rgba(245, 158, 11, 0.13);
  vertical-align: middle;
}

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

.movie-grid.large-gap {
  gap: 1.5rem;
}

.movie-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 1rem;
  scroll-snap-type: x proximity;
}

.movie-row .movie-card {
  width: 15rem;
  min-width: 15rem;
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
  transition: 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.68);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.28), transparent 35%),
    linear-gradient(135deg, #111827, #020617);
}

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

.poster-frame.poster-missing::after {
  content: "热播剧集";
  position: absolute;
  inset: auto 1rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.poster-frame.poster-missing img {
  opacity: 0;
}

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

.poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.rating-badge,
.type-pill,
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-weight: 800;
}

.rating-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  color: var(--amber-2);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.play-float {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 0.95rem;
}

.type-pill {
  margin-bottom: 0.65rem;
  padding: 0.18rem 0.55rem;
  color: white;
  background: var(--amber-dark);
  font-size: 0.75rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
  color: var(--amber-2);
}

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

.card-meta {
  gap: 0.45rem;
  font-size: 0.78rem;
}

.card-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.45rem;
  color: var(--muted-2);
}

.card-tags {
  margin-top: 0.6rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-wide .card-link {
  display: grid;
  grid-template-columns: 13rem 1fr;
}

.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.movie-card-compact .card-link {
  display: grid;
  grid-template-columns: 7rem 1fr;
}

.movie-card-compact .poster-frame {
  aspect-ratio: 4 / 3;
  min-height: 6rem;
}

.movie-card-compact .card-body p,
.movie-card-wide .card-body p {
  min-height: auto;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 45%),
    rgba(17, 24, 39, 0.88);
  transition: 0.25s ease;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.62);
  transform: translateY(-3px);
}

.category-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-card strong {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--amber-2);
  font-size: 1.6rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 5.25rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  padding: 0.75rem;
  background: rgba(17, 24, 39, 0.78);
  transition: 0.22s ease;
}

.rank-item:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(31, 41, 55, 0.75);
}

.rank-number {
  width: 2.45rem;
  height: 2.45rem;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.score-pill {
  color: var(--amber-2);
  font-size: 1.08rem;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-hero .glass-panel {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(8rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
}

.filter-status {
  margin: 0.6rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: var(--amber-2);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.player-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(17, 24, 39, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 32%),
    rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.play-button:hover {
  transform: scale(1.04);
  background: var(--amber-dark);
}

.player-message {
  min-height: 1.8rem;
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
}

.detail-card {
  padding: 1.25rem;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0 0 1.1rem;
  background: #111827;
}

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

.detail-card h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #d1d5db;
  background: rgba(55, 65, 81, 0.78);
  font-size: 0.82rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.info-box {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.95rem;
  padding: 0.8rem;
  background: rgba(3, 7, 18, 0.36);
}

.info-box small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.info-box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  margin-bottom: 1.2rem;
  background: rgba(17, 24, 39, 0.65);
}

.content-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.content-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.site-search {
  display: grid;
  gap: 1rem;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

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

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0.28rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--amber-2);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1rem;
  color: var(--muted-2);
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    margin-top: -3rem;
  }

  .search-panel,
  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    gap: 1rem;
  }

  .detail-card {
    order: -1;
  }

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

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

  .logo-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 570px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }

  .hero-meta,
  .hero-actions,
  .search-actions {
    gap: 0.55rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .movie-grid,
  .category-grid,
  .search-results {
    gap: 0.75rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-body p,
  .card-tags {
    display: none;
  }

  .rank-item {
    grid-template-columns: auto 1fr;
  }

  .rank-cover,
  .score-pill {
    display: none;
  }

  .movie-card-wide .card-link,
  .movie-card-compact .card-link {
    display: block;
  }

  .movie-card-wide .poster-frame,
  .movie-card-compact .poster-frame {
    aspect-ratio: 3 / 4;
  }
}
