:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-700: #c2410c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 42px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 30px 80px rgba(17, 24, 39, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f9fafb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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: linear-gradient(90deg, var(--amber-800), var(--orange-700), var(--amber-800));
  color: var(--white);
  box-shadow: 0 14px 35px rgba(120, 53, 15, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-title {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
}

.mobile-menu {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: var(--amber-900);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(120, 53, 15, 0.95), rgba(194, 65, 12, 0.78), rgba(17, 24, 39, 0.86));
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 + h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: #fde68a;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-actions,
.hero-arrows,
.library-filters,
.category-pills,
.detail-tags,
.tag-row,
.hero-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button,
.quick-search button,
.inline-search button,
.search-box button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-700));
  box-shadow: 0 16px 28px rgba(194, 65, 12, 0.28);
}

.primary-button:hover,
.quick-search button:hover,
.inline-search button:hover,
.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(194, 65, 12, 0.36);
}

.ghost-button {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 390px);
  margin-left: auto;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.hero-poster span,
.poster-play,
.editor-poster span,
.play-ring {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
}

.hero-poster span {
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 62px;
  height: 62px;
  font-size: 26px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  background: #fde68a;
}

.hero-arrows button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 28px;
}

.quick-panel {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.quick-search,
.inline-search,
.search-box {
  display: flex;
  gap: 10px;
}

.quick-search input,
.inline-search input,
.search-box input,
.library-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.inline-search input:focus,
.search-box input:focus,
.library-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.category-pills a,
.genre-cloud a,
.detail-tags a,
.tag-row span,
.library-filters button {
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-800);
  font-weight: 700;
}

.category-pills a,
.genre-cloud a,
.detail-tags a,
.library-filters button {
  padding: 10px 14px;
}

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

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

.section-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

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

.section-heading a,
.text-link {
  color: var(--amber-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--amber-100), var(--gray-200));
}

.movie-card-small .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.66));
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.poster-badge,
.poster-time {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: var(--amber-600);
}

.poster-time {
  right: 12px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: 0.28s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 6px 9px;
  font-size: 12px;
}

.soft-section {
  margin: 24px 0;
  background: linear-gradient(90deg, #fff7ed, var(--amber-50));
}

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

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-cover img {
  object-fit: cover;
  filter: saturate(1.08);
  transition: transform 0.45s ease;
}

.category-tile:hover .category-cover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(120, 53, 15, 0.84));
}

.category-tile > div:last-child {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 24px;
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.7;
}

.editor-section {
  background: linear-gradient(135deg, var(--amber-900), var(--orange-700), var(--amber-800));
}

.light-heading h2,
.light-heading span,
.light-heading a {
  color: var(--white);
}

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

.editor-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.editor-poster {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

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

.editor-poster span {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
}

.editor-copy {
  padding: 24px;
}

.editor-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 800;
}

.editor-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.editor-copy p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.editor-copy em {
  color: var(--gray-500);
  font-style: normal;
  font-weight: 700;
}

.page-hero {
  padding: 82px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-700), var(--amber-900));
}

.compact-hero {
  padding: 58px 0;
}

.page-hero span {
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.page-hero h1 {
  max-width: 900px;
  margin: 12px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.8;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.library-toolbar-sticky {
  position: sticky;
  top: 92px;
  z-index: 20;
}

.library-search {
  min-width: min(100%, 380px);
  flex: 1;
}

.library-filters button {
  border: 0;
  cursor: pointer;
}

.library-filters button.is-active {
  color: var(--white);
  background: var(--amber-600);
}

.library-card.is-hidden {
  display: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-link {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.page-link.is-active {
  color: var(--white);
  background: var(--amber-600);
}

.rank-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 96px;
  height: 64px;
  border-radius: 14px;
  background: var(--gray-100);
}

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

.rank-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.55;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-info em {
  color: var(--gray-500);
  font-style: normal;
  font-weight: 700;
}

.rank-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
}

.search-box {
  max-width: 720px;
  margin-bottom: 34px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0 0;
  color: var(--gray-600);
  font-weight: 700;
}

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

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 28px 0 80px;
}

.player-card,
.detail-content,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.play-ring {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  font-size: 28px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.detail-content {
  margin-top: 28px;
  padding: 32px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 700;
}

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

.detail-content h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 104px;
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.24s ease;
}

.compact-card:hover {
  background: var(--gray-50);
}

.compact-poster {
  overflow: hidden;
  width: 76px;
  height: 96px;
  border-radius: 12px;
  background: var(--gray-100);
}

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

.compact-card strong,
.compact-card span,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 7px;
  line-height: 1.35;
}

.compact-card span,
.compact-card em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.footer-main p {
  max-width: 560px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

  .hero,
  .hero-grid {
    min-height: 760px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    width: min(100%, 270px);
    margin: 0;
    transform: none;
  }

  .hero-controls {
    align-items: flex-end;
  }

  .quick-grid,
  .library-toolbar,
  .section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search,
  .inline-search,
  .search-box {
    flex-direction: column;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .category-grid-large,
  .editor-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .brand-subtitle {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .page-hero {
    padding: 52px 0;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .category-grid-large,
  .editor-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .rank-play {
    display: none;
  }

  .detail-content {
    padding: 22px;
  }

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