:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), rgba(254, 243, 199, 0.34), var(--stone-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 1000;
  background: linear-gradient(90deg, #78350f, #92400e, #9a3412);
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.28);
}

.header-inner {
  max-width: var(--max-width);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-50);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 25px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--amber-200);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 251, 235, 0.78);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(390px, 34vw);
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
  background: rgba(69, 26, 3, 0.38);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px 11px 18px;
  color: var(--amber-50);
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(253, 230, 138, 0.68);
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  color: var(--amber-900);
  background: var(--amber-300);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  align-self: stretch;
  padding: 0 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
  background: var(--amber-400);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-50);
  border-radius: 20px;
}

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  background: rgba(69, 26, 3, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto 14px;
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 18px;
  overflow: hidden;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: var(--amber-50);
  background: rgba(28, 25, 23, 0.34);
}

.mobile-search button {
  padding: 0 18px;
}

.mobile-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  color: var(--amber-50);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s 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(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--max-width)) / 2 + 22px));
  right: 24px;
  bottom: 86px;
  max-width: 720px;
  color: var(--white);
}

.eyebrow,
.hero-kicker {
  margin: 0 0 10px;
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgba(255, 251, 235, 0.9);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 11px;
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.36);
  background: rgba(120, 53, 15, 0.54);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--amber-950, #451a03);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: var(--amber-50);
  border: 1px solid rgba(253, 230, 138, 0.45);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn.ghost.dark {
  color: var(--amber-900);
  border-color: rgba(146, 64, 14, 0.22);
  background: rgba(254, 243, 199, 0.72);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-50);
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(120, 53, 15, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-400);
}

.home-search-panel,
.content-section,
.rank-section,
.page-main,
.detail-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.home-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: var(--radius-xl);
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2 {
  margin: 0;
  color: var(--stone-900);
  letter-spacing: -0.03em;
}

.home-search-panel h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.home-search-panel p {
  margin: 10px 0 0;
  color: var(--stone-700);
}

.wide-search {
  display: flex;
  padding: 7px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 999px;
  background: var(--stone-50);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  color: var(--stone-800);
  background: transparent;
}

.wide-search button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.content-section,
.rank-section {
  padding-top: 70px;
}

.content-section.no-top {
  padding-top: 24px;
}

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

.section-heading h2,
.category-overview-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading span,
.category-overview-head span {
  display: block;
  margin-top: 8px;
  color: var(--stone-500);
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.section-more:hover {
  background: var(--amber-200);
  transform: translateY(-1px);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 20px 44px rgba(120, 53, 15, 0.18);
}

.movie-card[hidden] {
  display: none;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.78), transparent);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 42px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--amber-950, #451a03);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

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

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

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: var(--amber-500);
}

.card-body h3 {
  margin: 8px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--amber-800);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--stone-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 4px 8px;
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 243, 199, 0.78));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  color: var(--amber-800);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card strong {
  display: block;
  color: var(--stone-700);
  font-size: 14px;
  font-weight: 500;
}

.category-card small {
  display: block;
  margin-top: 16px;
  color: var(--stone-500);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
}

.rank-list span {
  width: 42px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  color: var(--stone-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  color: var(--stone-500);
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.page-main {
  padding-top: 34px;
  padding-bottom: 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border-radius: var(--radius-xl);
  color: var(--stone-800);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.36), transparent 36%), linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.76));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--stone-600, #57534e);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-bar span {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--stone-800);
  background: var(--stone-50);
}

.empty-state {
  padding: 36px;
  text-align: center;
  color: var(--stone-500);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.category-overview-list {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.detail-main {
  padding-top: 34px;
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.78));
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.18);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-info h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
}

.detail-one-line {
  max-width: 780px;
  margin: 16px 0 18px;
  color: var(--stone-700);
  font-size: 19px;
}

.detail-meta span {
  padding: 7px 11px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  color: var(--amber-900);
  background: var(--amber-100);
  border-color: rgba(180, 83, 9, 0.16);
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 24px 58px rgba(28, 25, 23, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--amber-50);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-size: 34px;
  padding-left: 4px;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 38px);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
}

.player-error {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--amber-50);
  background: rgba(127, 29, 29, 0.9);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.text-panel {
  padding: 28px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.text-panel p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--stone-700);
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 40px;
  color: var(--amber-100);
  background: linear-gradient(180deg, #78350f, #1c1917);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber-50);
  font-size: 26px;
  font-weight: 900;
}

.footer-about p {
  margin: 0;
  max-width: 520px;
  color: rgba(254, 243, 199, 0.76);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  color: var(--amber-50);
  margin-bottom: 6px;
}

.footer-links a {
  color: rgba(254, 243, 199, 0.74);
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: rgba(254, 243, 199, 0.62);
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

@media (max-width: 1120px) {
  .listing-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .header-inner {
    min-height: 68px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 72px;
  }

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

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

  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
  }

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

@media (max-width: 640px) {
  .brand-text strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    height: 520px;
  }

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

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

  .hero-control {
    display: none;
  }

  .home-search-panel,
  .page-main,
  .content-section,
  .rank-section,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-search-panel,
  .page-hero,
  .detail-hero,
  .text-panel,
  .category-overview-card {
    border-radius: 20px;
  }

  .page-hero {
    padding: 34px 24px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    font-size: 13px;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wide-search {
    border-radius: 18px;
    flex-direction: column;
    gap: 8px;
  }

  .wide-search input {
    min-height: 46px;
  }

  .detail-hero {
    padding: 20px;
  }

  .detail-cover img {
    min-height: 0;
  }

  .player-overlay strong {
    font-size: 22px;
  }

  .rank-list a {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-list em {
    grid-column: 2;
  }
}
