html {
  scroll-behavior: smooth;
}

body.mirror-static {
  min-width: 320px;
}

body.mirror-static button,
body.mirror-static [role="button"] {
  cursor: pointer;
}

body.mirror-static main .mirror-reveal {
  opacity: 0 !important;
  transform: translateY(14px) !important;
  translate: 0 0 !important;
}

body.mirror-static main .mirror-reveal.mirror-visible {
  opacity: 1 !important;
  transform: none !important;
  translate: 0 0 !important;
}

body.mirror-static #mobile-nav.mirror-open {
  max-height: 32rem !important;
  opacity: 1 !important;
}

body.mirror-static.mirror-scrolled nav.fixed {
  background: rgba(11, 31, 51, 0.96) !important;
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.16);
  backdrop-filter: blur(16px);
}

.mirror-media-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: inherit;
  background: #0b1f33;
}

.mirror-media-link img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.mirror-media-link::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #fff;
  font-size: 25px;
  text-indent: 4px;
  background: rgba(11, 31, 51, 0.78);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}

.mirror-media-link:hover::after {
  background: #f59e0b;
  transform: translate(-50%, -50%) scale(1.07);
}

.mirror-search {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: min(15vh, 110px) 18px 30px;
  background: rgba(4, 15, 27, 0.78);
  backdrop-filter: blur(10px);
}

.mirror-search.is-open {
  display: flex;
}

.mirror-search-panel {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.mirror-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.mirror-search-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #0b1f33;
  background: #fff;
  outline: none;
}

.mirror-search-input:focus {
  border-color: #1976bd;
  box-shadow: 0 0 0 3px rgba(25, 118, 189, 0.13);
}

.mirror-search-close {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 22px;
}

.mirror-search-results {
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 8px;
}

.mirror-search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  color: #0b1f33;
  text-decoration: none;
}

.mirror-search-result:hover,
.mirror-search-result:focus {
  background: #f1f5f9;
}

.mirror-search-result small {
  display: block;
  margin-top: 2px;
  color: #64748b;
}

.mirror-search-empty {
  padding: 26px 18px;
  color: #64748b;
  text-align: center;
}

.mirror-form-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #075985;
  background: #f0f9ff;
  font-size: 14px;
}

.mirror-hero-changing img,
.mirror-hero-changing h1,
.mirror-hero-changing h1 + p {
  opacity: 0.2;
}

body.mirror-static section img,
body.mirror-static section h1,
body.mirror-static section h1 + p {
  transition: opacity 220ms ease;
}

@keyframes mirror-hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

