:root {
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --teal: #0d9488;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f9fafb;
  --dark: #0f172a;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.25);
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -23px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 170px;
  padding: 9px 12px;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  background: var(--brand);
}

.nav-search button {
  padding: 9px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

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

.mobile-search input {
  width: 100%;
  padding: 11px 12px;
}

.mobile-search button {
  padding: 11px 16px;
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76)),
    var(--hero-image),
    radial-gradient(circle at 25% 25%, #10b981 0, #111827 40%, #030712 100%);
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0.66));
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 76px;
  width: min(720px, calc(100% - 32px));
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #a7f3d0;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.meta-row,
.card-stats,
.overview-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 26px;
}

.hero-meta span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.28);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.outline-button {
  color: var(--brand);
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.quick-search-section {
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(209, 250, 229, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-title-row h2,
.filter-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.quick-search-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.hero-search button {
  padding: 14px 20px;
}

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

.section-title-row,
.filter-heading,
.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

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

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

.video-card,
.horizontal-card,
.category-card,
.overview-card,
.rank-item,
.detail-main-card,
.sidebar-card,
.filter-panel,
.quick-search-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.video-card,
.horizontal-card,
.overview-card,
.rank-item {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover,
.horizontal-card:hover,
.overview-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow);
}

.video-card-link {
  display: block;
  height: 100%;
}

.poster-thumb,
.horizontal-poster,
.category-cover,
.overview-cover,
.rank-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #111827);
}

.poster-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
}

.poster-thumb::before,
.horizontal-poster::before,
.category-cover::before,
.overview-cover::before,
.rank-poster::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
    var(--poster-image),
    radial-gradient(circle at 25% 20%, #10b981 0, #064e3b 36%, #111827 100%);
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .poster-thumb::before,
.horizontal-card:hover .horizontal-poster::before,
.category-card:hover .category-cover::before,
.overview-card:hover .overview-cover::before,
.rank-item:hover .rank-poster::before {
  transform: scale(1.08);
}

.duration-badge,
.play-badge,
.horizontal-poster span,
.overview-cover span {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 4px;
  font-size: 22px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.video-card-body h3,
.horizontal-card h3,
.rank-content h2,
.overview-body h2,
.category-card h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.video-card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card:hover h3,
.horizontal-card:hover h3,
.category-card:hover h3,
.rank-item:hover h2,
.overview-card:hover h2 {
  color: var(--brand);
}

.video-line,
.horizontal-card p,
.rank-content p,
.category-card p,
.overview-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-line {
  min-height: 48px;
  margin: 10px 0;
  font-size: 14px;
}

.meta-row,
.card-stats,
.overview-stats {
  color: var(--muted);
  font-size: 13px;
}

.meta-row span,
.card-stats span,
.tag-row span {
  display: inline-flex;
  align-items: center;
}

.meta-row span:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin-left: 10px;
  border-radius: 50%;
  content: "";
  background: #d1d5db;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
}

.card-stats {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.category-feature {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.category-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-cover {
  height: 92px;
  border-radius: 16px;
}

.category-card h3 {
  font-size: 18px;
}

.category-card p {
  margin: 6px 0 10px;
  font-size: 14px;
}

.category-card span,
.overview-body strong {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 12px;
}

.horizontal-poster {
  height: 112px;
  border-radius: 14px;
}

.horizontal-poster span {
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.horizontal-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.horizontal-card p {
  margin: 8px 0;
  font-size: 14px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.video-card-large .poster-thumb {
  aspect-ratio: 16 / 8.6;
}

.video-card-large h3 {
  font-size: 22px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #047857, #0f172a);
}

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

.small-hero {
  padding: 64px 0;
}

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

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1fae5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.overview-card {
  overflow: hidden;
}

.overview-card a {
  display: block;
}

.overview-cover {
  height: 190px;
}

.overview-cover span {
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  font-weight: 800;
}

.overview-body {
  padding: 20px;
}

.overview-body h2 {
  font-size: 22px;
}

.overview-body p {
  min-height: 48px;
  margin: 10px 0 14px;
}

.filter-panel {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  padding: 12px;
  color: var(--ink);
}

.empty-state {
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 66px 170px 1fr 72px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  color: #9ca3af;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-top .rank-number {
  color: var(--brand);
}

.rank-poster {
  height: 96px;
  border-radius: 14px;
}

.rank-content h2 {
  font-size: 20px;
}

.rank-content p {
  margin: 8px 0;
}

.rank-item strong {
  color: var(--brand);
  font-size: 24px;
  text-align: right;
}

.detail-hero {
  min-height: 420px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.7)),
    var(--hero-image),
    radial-gradient(circle at 20% 20%, #10b981, #111827 55%);
  background-position: center;
  background-size: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 16%, rgba(16, 185, 129, 0.38), transparent 30%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 86px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: -70px;
  padding-bottom: 72px;
  position: relative;
  z-index: 2;
}

.detail-main-card,
.sidebar-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-main-card {
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(5, 150, 105, 0.36), rgba(0, 0, 0, 0.7)),
    rgba(0, 0, 0, 0.36);
}

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

.player-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.36);
}

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

.player-overlay small {
  color: #d1fae5;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

.detail-body {
  padding: 28px;
}

.detail-title-row {
  align-items: flex-start;
}

.detail-title-row h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-tags {
  margin: 20px 0 24px;
}

.detail-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.detail-section p,
.detail-section blockquote {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-section blockquote {
  padding: 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 16px 16px 0;
  background: #f9fafb;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card .horizontal-card a {
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px;
}

.sidebar-card .horizontal-poster {
  height: 78px;
}

.sidebar-card .horizontal-card h3 {
  font-size: 14px;
}

.sidebar-card .horizontal-card p {
  -webkit-line-clamp: 1;
  margin: 4px 0;
  font-size: 12px;
}

.compact-info dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.compact-info dt {
  color: var(--muted);
}

.compact-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.compact-info a {
  color: var(--brand);
}

.site-footer {
  color: #d1d5db;
  background: #0f172a;
}

.footer-shell {
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}

.brand-footer .brand-name {
  color: #ffffff;
}

.brand-footer .brand-subtitle,
.footer-brand p,
.footer-bottom {
  color: #9ca3af;
}

.footer-brand p {
  max-width: 560px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

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

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

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    bottom: 78px;
  }

  .quick-search-card,
  .editor-layout,
  .footer-grid,
  .category-grid,
  .overview-grid,
  .horizontal-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-search,
  .section-title-row,
  .filter-heading,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .category-feature {
    padding: 26px 18px;
  }

  .category-card,
  .horizontal-card a,
  .rank-item a {
    grid-template-columns: 1fr;
  }

  .horizontal-poster,
  .rank-poster {
    height: 180px;
  }

  .rank-item strong {
    text-align: left;
  }

  .detail-layout {
    margin-top: -40px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-shell,
  .footer-shell,
  .mobile-nav-panel {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 38px;
  }

  .movie-grid,
  .movie-grid-five,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .secondary-button,
  .outline-button {
    width: 100%;
  }

  .detail-body,
  .sidebar-card,
  .filter-panel {
    padding: 18px;
  }
}
