:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --cyan: #0891b2;
  --amber: #d97706;
  --red: #ef4444;
  --blue: #2563eb;
  --violet: #7c3aed;
  --pink: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.20);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 42%, #ffffff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

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

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  color: var(--gray-700);
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--emerald);
  background: #ecfdf5;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
}

.nav-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select,
.quick-search-card input {
  width: 100%;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  outline: none;
  border-radius: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 180px;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.quick-search-card input:focus {
  border-color: rgba(5, 150, 105, 0.65);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.nav-search button,
.quick-search-card button,
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border: 0;
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.24);
}

.nav-search button {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: var(--gray-100);
  border: 0;
  border-radius: 14px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-700);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 0;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  padding: 10px 12px;
}

.mobile-panel button {
  min-width: 76px;
  color: var(--white);
  background: var(--emerald);
  border: 0;
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--gray-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:
    radial-gradient(circle at 72% 20%, rgba(16, 185, 129, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 38%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1200px) / 2));
  bottom: 92px;
  width: min(680px, calc(100% - 48px));
  color: var(--white);
}

.hero-kicker,
.page-hero span,
.section-head span,
.ranking-copy span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.18);
  border: 1px solid rgba(167, 243, 208, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-content h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.15;
}

.hero-content p {
  margin: 18px 0 0;
  max-width: 60ch;
  color: #e5e7eb;
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span,
.mini-tags a,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.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: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-link {
  color: #a7f3d0;
  background: transparent;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: -42px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.quick-search-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--gray-800);
  font-weight: 800;
}

.quick-search-card form > div {
  display: flex;
  gap: 10px;
}

.quick-search-card input {
  min-height: 48px;
  padding: 0 16px;
}

.quick-search-card button {
  min-width: 128px;
  border-radius: 14px;
  font-weight: 800;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a {
  padding: 10px 14px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 999px;
  font-weight: 800;
}

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

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-head h2,
.ranking-copy h2,
.page-hero h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.ranking-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.score-badge,
.type-badge,
.rank-num {
  position: absolute;
  z-index: 2;
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
}

.score-badge {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(217, 119, 6, 0.92);
}

.type-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.75);
  font-size: 12px;
}

.rank-num {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: var(--emerald);
}

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

.movie-card-compact .movie-card-body {
  padding: 14px;
}

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

.movie-card-compact p {
  min-height: 42px;
  font-size: 13px;
}

.ranking-band {
  padding: 78px 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 45%, #ffffff 100%);
}

.ranking-layout,
.ranking-page-layout,
.detail-layout,
.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
}

.ranking-copy {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 16px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(5, 150, 105, 0.42);
  transform: translateX(4px);
}

.ranking-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-radius: 999px;
  font-weight: 900;
}

.ranking-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  display: none;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.ranking-row b {
  color: var(--amber);
}

.category-home-list {
  display: grid;
  gap: 34px;
}

.category-showcase {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-showcase-head h3 {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-800);
  font-size: 20px;
  line-height: 1.45;
}

.category-showcase-head a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  border-radius: 999px;
  font-weight: 900;
}

.page-hero {
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.22), transparent 34%),
    linear-gradient(135deg, #f0fdfa, #ffffff 54%, #ecfdf5);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  margin-top: 18px;
}

.page-hero p {
  margin-top: 16px;
}

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

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

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

.category-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-link {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
}

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

.category-poster-stack img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--gray-200);
  border-radius: 14px;
}

.category-card span {
  color: var(--emerald);
  font-weight: 900;
}

.category-card h2 {
  margin: 8px 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.wide-filter {
  grid-template-columns: minmax(0, 1fr) 220px 180px;
}

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
}

.filter-status {
  margin-bottom: 18px;
  color: var(--gray-500);
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 46px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
}

.empty-state.is-visible {
  display: block;
}

.ranking-page-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  padding: 70px 0;
}

.ranking-sidebar {
  position: sticky;
  top: 106px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ranking-sidebar h2 {
  margin: 0 0 16px;
}

.ranking-sidebar .ranking-row {
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  padding: 12px;
}

.ranking-sidebar .ranking-row em {
  display: none;
}

.detail-top {
  padding: 44px 0 58px;
  background:
    radial-gradient(circle at 78% 15%, rgba(16, 185, 129, 0.24), transparent 34%),
    linear-gradient(135deg, #0f172a, #111827 58%, #064e3b);
}

.detail-layout {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: center;
}

.detail-player-card {
  padding: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 22px;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  overflow: hidden;
  background: #000000;
  border: 0;
  opacity: 1;
  transition: opacity 0.28s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.58;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.88);
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.play-ring span {
  margin-left: 5px;
  font-size: 30px;
}

.detail-info {
  color: var(--white);
}

.detail-info .breadcrumb {
  color: #d1d5db;
}

.detail-info .breadcrumb a {
  color: #a7f3d0;
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 7px 11px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags span {
  color: #064e3b;
  background: #d1fae5;
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 58px 0 0;
}

.content-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.movie-copy h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.movie-copy p {
  margin: 0 0 26px;
  color: var(--gray-700);
}

.movie-copy p:last-child {
  margin-bottom: 0;
}

.side-link-list {
  display: grid;
  gap: 10px;
}

.side-link-list a {
  display: grid;
  gap: 3px;
  padding: 13px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-link-list a:hover {
  border-color: rgba(5, 150, 105, 0.45);
  transform: translateX(3px);
}

.side-link-list strong {
  color: var(--gray-900);
}

.side-link-list span {
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 34ch;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.site-footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

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

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

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

  .ranking-page-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    bottom: 76px;
  }

  .quick-search-card,
  .ranking-layout,
  .detail-layout,
  .footer-grid,
  .category-card-link {
    grid-template-columns: 1fr;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .filter-panel,
  .wide-filter {
    grid-template-columns: 1fr;
  }

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

  .detail-top {
    padding-top: 24px;
  }
}

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

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

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .quick-search-card form > div,
  .mobile-panel form {
    flex-direction: column;
  }

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

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

  .category-showcase,
  .content-card {
    padding: 18px;
  }

  .ranking-row {
    grid-template-columns: 36px minmax(0, 1fr) 42px;
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .search-grid,
  .category-movie-grid,
  .ranking-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .detail-meta span,
  .hero-tags span,
  .detail-tags span {
    font-size: 12px;
  }
}
