:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #10b981;
  --brand-dark: #059669;
  --dark: #0f172a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.brand-mark,
.footer-logo span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.large-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.large-search button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.26);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: -28px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(22px) brightness(0.45);
  transform: scale(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.38), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 70vh;
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 58px 0 96px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-content h1 {
  margin: 14px 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.hero-meta {
  color: #cbd5e1;
  font-weight: 700;
}

.hero-text {
  max-width: 660px;
  margin-top: 18px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 21px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags {
  margin: 22px 0;
}

.hero-tags span {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #064e3b);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.4);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #34d399;
}

.hero-strip {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 42px 100px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(16px);
}

.hero-mini img {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #065f46);
}

.hero-mini span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 700;
}

.content-section {
  padding: 64px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #f1f5f9, #ffffff);
}

.intro-search {
  padding: 42px 0 0;
}

.search-panel,
.detail-panel,
.player-card,
.article-section,
.ranking-panel,
.category-overview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.search-panel p {
  color: var(--muted);
}

.large-search {
  display: flex;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
}

.large-search input {
  padding: 0 18px;
}

.large-search button {
  padding: 0 24px;
}

.page-search {
  max-width: 720px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.92);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
}

.section-heading.slim {
  align-items: start;
  margin-bottom: 18px;
}

.section-heading.slim h2 {
  font-size: 24px;
}

.section-more,
.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #065f46);
}

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

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

.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-year {
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.94);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.36);
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

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

.movie-card.compact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.movie-card.compact .card-poster {
  aspect-ratio: auto;
  height: 100%;
  min-height: 142px;
}

.movie-card.compact .card-body h2 {
  font-size: 16px;
}

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

.category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 45%),
    #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.category-card em {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 380px;
  gap: 28px;
}

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

.ranking-panel {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-item a:hover {
  background: rgba(16, 185, 129, 0.08);
}

.rank-num {
  grid-row: span 2;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 24%, rgba(16, 185, 129, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a, #064e3b 58%, #0f172a);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 740px;
  color: #cbd5e1;
  font-size: 18px;
}

.compact-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.filter-bar input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.filter-bar a {
  color: var(--brand-dark);
  font-weight: 850;
  white-space: nowrap;
}

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

.pagination a,
.pagination strong,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.pagination strong {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

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

.category-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #065f46);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.category-overview-card p {
  color: var(--muted);
}

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

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

.detail-wrap {
  padding: 30px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.player-card {
  overflow: hidden;
  margin-bottom: 26px;
  padding: 0;
  background: #000000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.4);
  font-size: 28px;
}

.player-overlay em {
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.player.playing .player-overlay,
.player.started .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  text-align: center;
}

.player-message.show {
  display: block;
}

.detail-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  margin-bottom: 26px;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #065f46);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

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

.detail-content h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 880px;
  color: #334155;
  font-size: 20px;
  font-weight: 700;
}

.detail-tags {
  margin: 22px 0;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-meta-grid div {
  padding: 15px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.article-section {
  padding: 26px;
  margin-bottom: 24px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.article-section p {
  color: #334155;
  font-size: 17px;
}

.related-section {
  padding-top: 30px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 14px;
  color: #94a3b8;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-links div {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

.no-results {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .two-column,
  .rank-columns,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: 64px;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 660px;
    height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-strip {
    left: 16px;
    right: 16px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-mini {
    min-width: 160px;
  }

  .search-panel,
  .detail-panel,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 540px) {
  .container,
  .site-header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 17px;
  }

  .content-section {
    padding: 42px 0;
  }

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

  .movie-card.compact {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .section-heading,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .large-search {
    border-radius: 18px;
  }

  .large-search button {
    padding: 0 16px;
  }

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

  .detail-panel,
  .article-section,
  .ranking-panel,
  .search-panel {
    padding: 18px;
    border-radius: 20px;
  }

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