:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-deep: #020617;
  --line: rgba(148, 163, 184, 0.18);
  --line-bright: rgba(34, 211, 238, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --orange: #fb923c;
  --green: #4ade80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 2%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(251, 146, 60, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background: rgba(2, 6, 23, 0.72);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.main-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.28);
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid white;
  margin-left: 3px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: white;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 10px;
}

.nav-drop-panel a:hover {
  background: rgba(30, 41, 59, 0.9);
  color: white;
}

.header-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-search input,
.mobile-search input,
.local-filter,
.page-search-form input {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: white;
  background: rgba(30, 41, 59, 0.78);
  padding: 11px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-filter:focus,
.page-search-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button,
.page-search-form button {
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--cyan-strong);
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search-form button:hover,
.primary-button:hover {
  background: var(--cyan);
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  background: rgba(30, 41, 59, 0.88);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #cbd5e1;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 8px auto 14px;
  width: min(1180px, 100%);
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mobile-nav-link {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
}

.hero {
  position: relative;
  height: 85vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--panel-deep);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.2)),
    linear-gradient(to right, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.24));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  max-width: 760px;
}

.hero-chip,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.16);
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  margin: 24px 0 28px;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: white;
  background: var(--cyan-strong);
  padding: 0 24px;
  box-shadow: 0 12px 36px rgba(8, 145, 178, 0.26);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.42);
  padding: 0 24px;
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.46);
  color: #67e8f9;
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-1px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.home-sections,
.page-top {
  padding: 64px 0;
}

.home-sections {
  display: grid;
  gap: 78px;
}

.content-section,
.feature-panel,
.glow-panel,
.ranking-panel,
.category-block,
.player-section,
.article-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
}

.content-section {
  padding: 32px;
}

.feature-panel {
  padding: 36px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.86));
}

.glow-panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  background:
    radial-gradient(circle at 25% 0%, rgba(34, 211, 238, 0.16), transparent 26rem),
    radial-gradient(circle at 78% 100%, rgba(251, 146, 60, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.84));
}

.ranking-panel {
  padding: 36px;
}

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

.section-head h2,
.category-block-head h2,
.article-card h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-head p,
.category-block-head p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: #67e8f9;
  padding: 0 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.section-link:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: white;
  transform: translateY(-1px);
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-bright);
  background: rgba(30, 41, 59, 0.92);
}

.poster,
.rank-poster,
.wide-cover,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster {
  aspect-ratio: 2 / 3;
}

.poster img,
.rank-poster img,
.wide-cover img,
.detail-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.movie-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.9);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 14px;
}

.card-body h3,
.wide-body h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a,
.wide-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h3 a,
.rank-row:hover strong {
  color: var(--cyan);
}

.card-body p,
.wide-body p {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted-2);
  font-size: 12px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0;
}

.wide-cover {
  height: 100%;
  min-height: 128px;
}

.wide-body {
  padding: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.28));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 56px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 72px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px;
  transition: border 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: var(--line-bright);
  transform: translateX(4px);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  font-weight: 800;
}

.rank-row img {
  width: 72px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.17), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(251, 146, 60, 0.11), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  padding: clamp(34px, 6vw, 62px);
  margin-bottom: 28px;
}

.small-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.small-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

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

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

.category-overview {
  display: grid;
  gap: 28px;
}

.category-block {
  padding: 28px;
}

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

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
}

.filter-panel input {
  width: min(560px, 100%);
}

.page-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-search-form input {
  flex: 1 1 360px;
  width: auto;
}

.detail-page {
  padding-top: 38px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.12), transparent 26rem),
    rgba(15, 23, 42, 0.72);
  padding: 28px;
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 24px;
  min-height: 480px;
}

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

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead-text {
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.detail-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta div {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  padding: 14px;
}

.detail-meta dt {
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 6px;
}

.detail-meta dd {
  margin: 0;
  color: white;
  line-height: 1.5;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 20rem),
    rgba(2, 6, 23, 0.36);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(8, 145, 178, 0.88);
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-circle {
  transform: scale(1.06);
  background: var(--cyan-strong);
}

.play-circle span {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid white;
  margin-left: 6px;
}

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

.article-card {
  padding: 28px;
}

.article-card h2 {
  font-size: 26px;
}

.article-card p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

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

.rank-card .rank-poster {
  aspect-ratio: 2 / 3;
}

.rank-card .rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted-2);
  text-align: center;
}

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

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

  .detail-hero {
    grid-template-columns: 280px 1fr;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 680px;
  }

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

  .hero-arrow {
    display: none;
  }

  .content-section,
  .feature-panel,
  .glow-panel,
  .ranking-panel,
  .category-block,
  .player-section,
  .article-card {
    padding: 22px;
  }

  .section-head,
  .category-block-head {
    display: grid;
    gap: 14px;
  }

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

  .wide-grid,
  .rank-list,
  .article-section {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    min-height: auto;
    aspect-ratio: 2 / 3;
    max-width: 360px;
  }

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

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

  .brand-copy em {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .hero-meta {
    gap: 10px;
    font-size: 14px;
  }

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

  .movie-card-wide {
    grid-template-columns: 128px 1fr;
  }

  .wide-body,
  .card-body {
    padding: 12px;
  }

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

  .rank-row {
    grid-template-columns: 34px 62px 1fr;
    gap: 10px;
  }

  .rank-row img {
    width: 62px;
    height: 46px;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
  }
}
