:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --red: #ef4444;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(31, 41, 55, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
}

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

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

.brand-text,
.footer-brand span:last-child {
  font-size: clamp(19px, 2.2vw, 27px);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

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

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

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

.search-form input,
.mobile-search input,
.search-page-form input {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: white;
  color: var(--text);
}

.search-form input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.search-form button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.secondary-btn,
.mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  font-weight: 750;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link:hover {
  background: #ffedd5;
  color: var(--orange);
}

.hero-carousel {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  height: min(560px, calc(100vh - 120px));
  min-height: 430px;
  margin: 32px auto 64px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.48) 50%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 42vw, 520px);
  bottom: clamp(34px, 8vw, 84px);
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 780;
}

.hero-content h1,
.hero-content h2.hero-movie-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ghost-btn,
.ghost-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.ghost-dark-btn {
  color: var(--orange-dark);
  background: #fff7ed;
  border-color: #fed7aa;
}

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

.hero-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

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

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

.hero-dot.is-active {
  width: 26px;
  background: white;
}

.content-section,
.page-main {
  margin-top: 48px;
  margin-bottom: 56px;
}

.tinted-section {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(219, 234, 254, 0.86),
    rgba(252, 231, 243, 0.82),
    rgba(255, 237, 213, 0.9)
  );
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.08);
}

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

.section-head > div {
  min-width: 0;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  color: white;
  border-radius: 13px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
}

.section-head h2,
.page-title-card h1,
.detail-info h1 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p,
.page-title-card p,
.category-panel p,
.detail-info .one-line {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 800;
}

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

.movie-card,
.category-panel,
.text-card,
.page-title-card,
.ranking-row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.66);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.movie-card {
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-link img,
.featured-card img,
.category-tile img,
.category-cover img,
.ranking-poster img,
.compact-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img,
.featured-card:hover img,
.category-tile:hover img {
  transform: scale(1.07);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.24s ease;
}

.movie-card:hover .poster-link::after {
  background: rgba(0, 0, 0, 0.38);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: white;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

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

.duration,
.category-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 750;
}

.duration {
  right: 12px;
  background: rgba(0, 0, 0, 0.66);
}

.category-badge {
  left: 12px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.movie-card-body {
  padding: 17px;
}

.movie-card-body h2 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover,
.category-panel h2 a:hover {
  color: var(--orange);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  color: #6b7280;
}

.movie-meta span {
  background: #f3f4f6;
  color: #6b7280;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  box-shadow: var(--shadow);
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 21px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
}

.featured-card {
  position: relative;
  display: block;
  height: 470px;
  overflow: hidden;
  color: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.featured-overlay strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.featured-overlay em {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  font-style: normal;
}

.pill {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.meta-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(254, 215, 170, 0.6);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.compact-card:hover {
  transform: translateX(3px);
  background: #fff7ed;
}

.compact-thumb {
  width: 108px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #fed7aa;
}

.compact-body {
  min-width: 0;
}

.compact-body strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
  border-top: 1px solid rgba(251, 146, 60, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.site-footer p {
  color: #6b7280;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 10px 0;
  color: #6b7280;
}

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

.footer-bottom {
  padding: 20px 0 28px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

.page-main {
  min-height: 58vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

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

.page-title-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
}

.page-title-card h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.category-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
}

.category-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #fed7aa;
}

.category-panel h2 {
  margin: 0;
  font-size: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.category-movie-grid {
  margin-top: 30px;
}

.ranking-table {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  font-weight: 900;
}

.ranking-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #fed7aa;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 32px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 247, 237, 0.94)
  );
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster {
  min-height: 340px;
  overflow: hidden;
  border-radius: 26px;
  background: #fed7aa;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.16);
}

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

.detail-info h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

.detail-info .one-line {
  margin-top: 16px;
  font-size: 18px;
}

.detail-meta {
  margin-top: 18px;
  color: #6b7280;
}

.detail-meta span {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag {
  color: #be123c;
  background: #fce7f3;
}

.watch-section {
  margin-top: 42px;
}

.compact-head {
  margin-bottom: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.24),
    rgba(0, 0, 0, 0.46)
  );
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.play-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 36px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.play-overlay strong {
  font-size: 18px;
}

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

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

.text-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.wide-card {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-list div {
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.info-list dt {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 8px 0 0;
  color: #1f2937;
  font-weight: 750;
}

.search-page-form {
  margin-top: 22px;
}

.search-page-form input {
  width: min(520px, 100%);
}

.search-results {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.search-empty {
  padding: 26px;
  border-radius: 22px;
  background: white;
  color: #6b7280;
  border: 1px solid #fed7aa;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

@media (max-width: 760px) {
  .container,
  .hero-carousel,
  .mobile-panel,
  .tinted-section {
    width: min(100% - 22px, 1240px);
  }

  .hero-carousel {
    min-height: 560px;
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 82px;
  }

  .hero-controls {
    justify-content: center;
  }

  .hero-tags span:nth-child(n + 3) {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .detail-text-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    aspect-ratio: 16 / 9;
  }

  .ranking-row {
    grid-template-columns: 42px 92px 1fr;
  }

  .ranking-row .mini-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .compact-card {
    grid-template-columns: 92px 1fr auto;
  }

  .compact-thumb {
    width: 92px;
  }

  .detail-poster {
    min-height: 250px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-page-form,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .search-page-form input,
  .mobile-search input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .movie-card-body h2,
  .movie-card-body p {
    min-height: 0;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .rank-badge {
    position: absolute;
    margin: 10px;
  }

  .ranking-poster {
    aspect-ratio: 16 / 9;
  }
}
