:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --card-radius: 24px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #08111f 46%, #020617 100%);
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(59, 130, 246, 0.24);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 12px 26px rgba(34, 211, 238, 0.22);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #93c5fd);
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.top-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search {
  flex: 1;
  max-width: 460px;
}

.top-search input,
.mobile-search input,
.page-search input,
.category-filter-input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input,
.mobile-search input {
  border-radius: 999px;
  padding: 11px 16px;
}

.page-search input,
.category-filter-input,
.filter-bar select {
  border-radius: 16px;
  padding: 14px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.category-filter-input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.top-search button,
.mobile-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, var(--blue), var(--cyan-deep));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav a {
  color: #dbeafe;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: #67e8f9;
  background: rgba(37, 99, 235, 0.18);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 20px 20px;
  background: rgba(2, 6, 23, 0.98);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding: 74px 24px 48px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow-one {
  top: 70px;
  left: -110px;
  background: #2563eb;
}

.hero-glow-two {
  right: -90px;
  bottom: 20px;
  background: #22d3ee;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.58), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.24), transparent 18rem);
  pointer-events: none;
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 530px;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 38px;
  align-items: center;
  padding: 54px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
}

.hero-desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.56);
}

.hero-tags span,
.detail-meta span {
  padding: 7px 12px;
}

.tag-row span,
.card-meta span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--cyan-deep));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.ghost-btn,
.section-more {
  min-height: 44px;
  padding: 0 20px;
  color: #a5f3fc;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.42);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.18);
}

.hero-cover {
  position: relative;
  z-index: 2;
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 470px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(37, 99, 235, 0.32));
}

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

.hero-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  color: #cffafe;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  left: 54px;
  bottom: 32px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
}

.hero-categories {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 54px 42px;
}

.hero-categories span {
  color: var(--muted);
}

.hero-categories a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p:not(.section-kicker) {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.46);
}

.poster-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(14, 165, 233, 0.18));
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 145, 178, 0.92));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.card-body {
  padding: 16px;
}

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

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.card-meta {
  color: #bfdbfe;
  font-size: 12px;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.14);
}

.rank-panel {
  position: sticky;
  top: 96px;
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: var(--shadow);
}

.rank-head p {
  margin: 0 0 8px;
  color: #67e8f9;
  font-weight: 700;
}

.rank-head h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-no {
  color: #67e8f9;
  font-size: 17px;
  font-weight: 800;
}

.rank-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  display: block;
  overflow: hidden;
  color: white;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 58px 24px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.55)),
    radial-gradient(circle at right, rgba(34, 211, 238, 0.22), transparent 22rem);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.page-hero > div {
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.76;
}

.slim-hero {
  min-height: 260px;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 210px;
  border-radius: 28px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-thumbs img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-info p {
  margin: 0 0 8px;
  color: #67e8f9;
  font-weight: 700;
}

.category-info h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-info span {
  color: var(--muted);
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar select {
  appearance: none;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-row a:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.38);
}

.ranking-number {
  color: #67e8f9;
  font-size: 26px;
  font-weight: 900;
}

.ranking-row img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.search-hero .page-search {
  max-width: 720px;
  margin-top: 24px;
}

.search-result-head {
  margin-bottom: 22px;
}

.search-result-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.search-result-head p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  padding: 44px 24px 54px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), #020617 92%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.72);
}

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

.detail-info h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.detail-lead {
  max-width: 840px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-bottom: 30px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: black;
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
}

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

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding-left: 5px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan-deep));
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.38);
}

.player-start strong {
  font-size: 20px;
}

.detail-article {
  border-radius: 28px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: var(--soft);
  line-height: 1.9;
}

.site-footer {
  margin-top: 46px;
  padding: 48px 24px 28px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 34px;
}

.footer-brand {
  color: white;
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  background: linear-gradient(90deg, var(--blue), var(--cyan-deep));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.is-filter-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .top-search {
    max-width: 340px;
  }

  .main-nav a:nth-child(n + 7) {
    display: none;
  }

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    padding: 12px 18px;
  }

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

  .top-search,
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-section {
    min-height: auto;
    padding: 28px 14px;
  }

  .hero-inner {
    border-radius: 26px;
  }

  .hero-slide,
  .hero-slide.is-active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 20px 92px;
  }

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

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

  .hero-cover {
    max-height: none;
    width: min(100%, 340px);
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    left: 20px;
    bottom: 58px;
  }

  .hero-categories {
    padding: 0 20px 24px;
  }

  .section-head {
    display: grid;
  }

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

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

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

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

  .detail-info h1 {
    font-size: clamp(34px, 11vw, 56px);
  }

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

  .ranking-row a {
    grid-template-columns: 56px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 78px;
    height: 106px;
  }

  .ranking-number {
    font-size: 20px;
  }

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

@media (max-width: 560px) {
  .content-section {
    padding: 28px 14px;
  }

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

  .page-hero {
    margin: 22px 14px 0;
    padding: 34px 18px;
    border-radius: 24px;
  }

  .card-body p {
    min-height: auto;
  }

  .hero-actions,
  .page-search {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .page-search button {
    width: 100%;
  }

  .detail-hero {
    padding: 26px 14px 34px;
  }

  .detail-content {
    padding-top: 8px;
  }

  .player-start span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
