/* ========================================
   CINAX — Premium Streaming Service Styles
   ======================================== */

/* ----- 1. Scrollbar Hiding ----- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ----- 2. Custom Scrollbar (Global) ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0b0b10; }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a078ff; }

/* ----- 3. Nav Scroll State ----- */
.nav-scrolled {
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----- 4. Content Rail Hover Arrows ----- */
.rail-container:hover .rail-arrow { opacity: 1; }
.rail-arrow { opacity: 0; transition: opacity 0.3s; }

/* ----- 5. Media Card Styles ----- */
.media-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(160, 120, 255, 0.15);
}
.media-card .card-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}
.media-card:hover .card-overlay {
  opacity: 1;
}
.media-card .play-btn {
  transform: scale(0.7);
  transition: transform 0.3s ease 0.1s;
}
.media-card:hover .play-btn {
  transform: scale(1);
}

/* ----- 6. Wide Card (Continue Watching) ----- */
.wide-card {
  transition: transform 0.3s ease;
}
.wide-card:hover {
  transform: scale(1.02);
}
.wide-card .wide-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}
.wide-card:hover .wide-overlay {
  opacity: 1;
}

/* ----- 6b. Favorite Cards ----- */
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.favorite-card {
  min-width: 0;
  cursor: pointer;
}
.favorite-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161620;
}
.favorite-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.favorite-card:hover .favorite-poster img {
  transform: scale(1.04);
}
.favorite-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
}
.favorite-progress div {
  height: 100%;
  background: #a078ff;
}
.favorite-copy {
  padding-top: 10px;
}
.favorite-copy h3 {
  overflow: hidden;
  color: #e8e8f0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorite-copy p,
.favorite-copy span {
  display: block;
  overflow: hidden;
  color: #606078;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- 7. Loading Skeleton ----- */
.skeleton {
  background: linear-gradient(90deg, #161620 25%, #1e1e2a 50%, #161620 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 0.75rem;
}

/* ----- 8. Genre Chip ----- */
.genre-chip {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #a0a0b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.genre-chip:hover {
  border-color: rgba(160, 120, 255, 0.4);
  color: #d0bcff;
}
.genre-chip.active {
  background: #a078ff;
  color: #0b0b10;
  border-color: #a078ff;
  font-weight: 600;
}

/* ----- 9. Search Filter Chip ----- */
.filter-chip {
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #a0a0b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: rgba(160, 120, 255, 0.4);
  color: #d0bcff;
}
.filter-chip.active {
  background: rgba(160, 120, 255, 0.2);
  color: #d0bcff;
  border-color: rgba(160, 120, 255, 0.4);
}

/* ----- 10. Player Container (Watch Page) ----- */
.player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ----- 11. Detail Modal Backdrop Image ----- */
.detail-backdrop {
  position: relative;
}
.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0b0b10 0%, rgba(11, 11, 16, 0.8) 40%, rgba(11, 11, 16, 0.4) 70%, rgba(11, 11, 16, 0.6) 100%);
}

/* ----- 12. Hero Gradient Scrims ----- */
.hero-scrim-bottom {
  background: linear-gradient(to top, #0b0b10 0%, rgba(11, 11, 16, 0.7) 30%, transparent 60%);
}
.hero-scrim-left {
  background: linear-gradient(to right, #0b0b10 0%, rgba(11, 11, 16, 0.6) 40%, transparent 70%);
}

/* ----- 13. Stagger Animation Delays ----- */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ----- 14. Glow Effects ----- */
.glow-accent {
  box-shadow: 0 0 20px rgba(160, 120, 255, 0.3);
}
.text-glow {
  text-shadow: 0 0 40px rgba(160, 120, 255, 0.5);
}

/* ----- 15. Toast Notification ----- */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1c28;
  color: #e8e8f0;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(160, 120, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- 16. Source Selector Dropdown ----- */
.source-selector {
  position: relative;
}
.source-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.source-option {
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  color: #a0a0b8;
  font-size: 14px;
}
.source-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8f0;
}
.source-option.active {
  background: rgba(160, 120, 255, 0.15);
  color: #d0bcff;
}

/* ----- 17. Episode List Styles ----- */
.episode-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 0;
}
.episode-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.episode-item.active {
  background: rgba(160, 120, 255, 0.1);
  border: 1px solid rgba(160, 120, 255, 0.3);
}
.episode-thumb {
  width: 176px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #161620;
}
.episode-copy {
  min-width: 0;
}
.episode-play-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161620;
  color: #e8e8f0;
  transition: all 0.2s;
}
.episode-play-btn:hover {
  background: #a078ff;
  color: white;
}

/* ----- 18. Detail Preview Layout ----- */
#detail-modal,
.detail-shell {
  overflow-x: hidden;
}
.detail-hero-bg {
  height: 520px;
  isolation: isolate;
  overflow: hidden;
  background: #050508;
}
.detail-backdrop-img,
.detail-trailer-bg {
  position: absolute;
  inset: 0;
}
.detail-backdrop-img {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.detail-backdrop-img.has-trailer {
  opacity: 0.42;
}
.detail-trailer-bg {
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100%;
  border: 0;
  opacity: 0.74;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12);
}
.detail-hero-scrim {
  z-index: 2;
  background:
    linear-gradient(to top, #0b0b10 0%, rgba(11, 11, 16, 0.94) 24%, rgba(11, 11, 16, 0.6) 58%, rgba(11, 11, 16, 0.34) 100%),
    linear-gradient(to right, #0b0b10 0%, rgba(11, 11, 16, 0.45) 38%, transparent 72%);
}
.detail-surface {
  margin-top: -210px;
}
.detail-summary {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}
.detail-poster-wrap {
  width: 248px;
}
.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.detail-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 12px;
}
.detail-title {
  font-size: 56px;
  line-height: 64px;
  letter-spacing: 0;
  font-weight: 800;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.detail-genre {
  max-width: min(100%, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 11, 16, 0.55);
  padding: 4px 10px;
  color: #a0a0b8;
  font-size: 12px;
  line-height: 16px;
}
.detail-overview {
  max-width: 760px;
  font-size: 18px;
  line-height: 28px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.detail-action-primary,
.detail-action-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.detail-action-primary {
  background: #a078ff;
  color: white;
  box-shadow: 0 0 20px rgba(160, 120, 255, 0.3);
}
.detail-action-primary:hover {
  background: #d0bcff;
  color: #0b0b10;
}
.detail-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161620;
  color: #e8e8f0;
}
.detail-action-secondary:hover {
  border-color: rgba(160, 120, 255, 0.4);
  background: #222230;
}
.detail-body-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.detail-panel {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(22, 22, 32, 0.66);
  padding: 18px;
}
.detail-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.detail-cast {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-cast-row {
  display: flex;
  max-width: 100%;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.detail-cast-member {
  width: 78px;
  flex: 0 0 78px;
  min-width: 0;
  text-align: center;
}
.detail-cast-photo {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161620;
}
.detail-episode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-related {
  margin-top: 32px;
  overflow: hidden;
}
.detail-related .rail-container > div:first-child,
.detail-related .rail-scroll {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ----- 19. Settings and Account ----- */
.settings-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-card {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(22, 22, 32, 0.72);
  padding: 20px;
}
.settings-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.settings-card-title h2 {
  color: #e8e8f0;
  font-size: 18px;
  font-weight: 700;
}
.settings-card-title .material-symbols-outlined {
  color: #d0bcff;
}
.settings-refresh,
.settings-primary,
.settings-secondary,
.settings-danger,
.account-primary,
.account-secondary,
.account-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}
.settings-refresh,
.settings-secondary,
.account-secondary {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #161620;
  color: #e8e8f0;
}
.settings-refresh:hover,
.settings-secondary:hover,
.account-secondary:hover {
  border-color: rgba(160, 120, 255, 0.4);
  background: #222230;
}
.settings-primary,
.account-primary {
  background: #a078ff;
  color: white;
}
.settings-primary:hover,
.account-primary:hover {
  background: #d0bcff;
  color: #0b0b10;
}
.settings-danger,
.account-danger {
  border: 1px solid rgba(255, 100, 120, 0.25);
  background: rgba(255, 100, 120, 0.08);
  color: #ff9aa8;
}
.server-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-status-row strong {
  color: #e8e8f0;
  font-size: 15px;
}
.server-status-row p,
.settings-muted {
  color: #a0a0b8;
  font-size: 14px;
  line-height: 22px;
}
.server-status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 9999px;
  background: #606078;
}
.server-status-dot.online {
  background: #48d597;
  box-shadow: 0 0 0 6px rgba(72, 213, 151, 0.12);
}
.server-status-dot.offline {
  background: #ff637d;
  box-shadow: 0 0 0 6px rgba(255, 99, 125, 0.12);
}
.settings-account-name {
  color: #e8e8f0;
  font-size: 18px;
  font-weight: 700;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.settings-stats,
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.settings-stats div,
.account-stats div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}
.settings-stats strong,
.account-stats strong {
  display: block;
  color: #e8e8f0;
  font-size: 22px;
  font-weight: 800;
}
.settings-stats span,
.account-stats span {
  color: #a0a0b8;
  font-size: 12px;
}
.account-modal-card {
  position: relative;
  width: min(100%, 430px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111118;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.account-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #a0a0b8;
}
.account-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8f0;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #a0a0b8;
  font-size: 13px;
  font-weight: 600;
}
.account-form input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161620;
  color: #e8e8f0;
  padding: 12px 13px;
  outline: none;
}
.account-form input:focus {
  border-color: rgba(160, 120, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.18);
}
.account-error {
  border-radius: 8px;
  background: rgba(255, 99, 125, 0.1);
  color: #ff9aa8;
  padding: 10px 12px;
  font-size: 13px;
}
.account-switch {
  width: 100%;
  margin-top: 18px;
  color: #d0bcff;
  font-size: 14px;
  font-weight: 700;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.account-profile h2 {
  color: #e8e8f0;
  font-size: 22px;
  font-weight: 800;
}
.account-profile p {
  color: #a0a0b8;
  font-size: 14px;
}
.account-avatar-large {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(160, 120, 255, 0.16);
  color: #d0bcff;
}
.account-avatar-large .material-symbols-outlined {
  font-size: 36px;
}
.account-actions-row {
  display: flex;
  gap: 10px;
}
.account-actions-row button {
  flex: 1;
}

/* ----- 20. Responsive Utilities ----- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px !important;
    line-height: 40px !important;
  }
  .detail-hero-bg {
    height: 410px;
  }
  .detail-trailer-bg {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1.25);
  }
  .detail-backdrop-img.has-trailer {
    opacity: 0.5;
  }
  .detail-surface {
    margin-top: -150px;
  }
  .detail-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-poster-wrap {
    width: 132px;
  }
  .detail-title {
    font-size: 36px;
    line-height: 42px;
  }
  .detail-overview {
    font-size: 16px;
    line-height: 24px;
  }
  .detail-action-primary,
  .detail-action-secondary {
    flex: 1 1 140px;
    padding: 11px 14px;
  }
  .episode-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }
  .episode-thumb {
    width: 112px;
    height: 64px;
  }
  .episode-play-btn {
    display: none;
  }
  .favorite-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ----- 21. Material Symbols Size Override ----- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ----- 22. Transition Utilities ----- */
.transition-gpu {
  will-change: transform;
  transform: translateZ(0);
}

/* ========================================
   Additional Premium Utilities
   ======================================== */

/* Glass morphism panel */
.glass-panel {
  background: rgba(22, 22, 32, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Accent gradient text */
.gradient-text {
  background: linear-gradient(135deg, #d0bcff 0%, #a078ff 50%, #7c5cbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle pulse animation for live indicators */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(160, 120, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(160, 120, 255, 0.6); }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Progress bar for continue watching */
.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a078ff, #d0bcff);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Accent border glow on focus */
.focus-accent:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.4);
}

/* Divider line */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  width: 100%;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(160, 120, 255, 0.15);
  color: #d0bcff;
  font-size: 13px;
  font-weight: 600;
}

/* Tag pill */
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0b8;
  font-size: 12px;
  font-weight: 500;
}

/* Smooth page transitions */
.page-enter {
  opacity: 0;
  transform: translateY(16px);
}
.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Subtle noise texture overlay (optional, applied via pseudo-element) */
.noise-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}
