/* Compact 18+ warning overlay. Loaded from _document so it applies before React. */

#smotriland-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgb(0 0 0 / 52%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-sizing: border-box;
}

html.smotriland-age-ok #smotriland-age-gate,
#smotriland-age-gate[hidden] {
  display: none !important;
}

html.smotriland-age-locked,
html.smotriland-age-locked body {
  overflow: hidden;
}

html.smotriland-age-locked #__next {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

#smotriland-age-gate .smotriland-age-gate__card,
#smotriland-age-gate .smotriland-age-gate__exit {
  width: min(100%, 22.5rem);
  max-height: min(92dvh, 36rem);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--vidok-bg-elevated, #171717);
  color: var(--vidok-text, #ececec);
  border: 1px solid var(--vidok-border, rgb(255 255 255 / 12%));
  box-shadow:
    0 18px 40px rgb(0 0 0 / 45%),
    0 0 0 1px rgb(255 255 255 / 4%);
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__card,
html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__exit {
  background: #fff;
  color: #1f2937;
  border-color: rgb(31 41 55 / 10%);
  box-shadow: 0 16px 36px rgb(15 23 42 / 16%);
}

#smotriland-age-gate .smotriland-age-gate__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 8px;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 8px 18px rgb(220 38 38 / 35%);
  line-height: 1;
}

#smotriland-age-gate .smotriland-age-gate__emoji {
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
}

#smotriland-age-gate .smotriland-age-gate__plus {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

#smotriland-age-gate .smotriland-age-gate__brand {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--vidok-text, #ececec);
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__brand {
  color: #111827;
}

#smotriland-age-gate .smotriland-age-gate__copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 12px;
}

#smotriland-age-gate .smotriland-age-gate__copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--vidok-text-muted, #c8c8c8);
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__copy p {
  color: #4b5563;
}

#smotriland-age-gate .smotriland-age-gate__enter {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vidok-orange, #f59e0b) 0%, var(--vidok-orange-dark, #d97706) 100%);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--vidok-orange-glow, rgb(245 158 11 / 28%));
}

#smotriland-age-gate .smotriland-age-gate__enter:hover,
#smotriland-age-gate .smotriland-age-gate__enter:focus-visible {
  filter: brightness(1.05);
  outline: none;
  color: #fff !important;
}

#smotriland-age-gate .smotriland-age-gate__enter:focus-visible {
  box-shadow:
    0 0 0 3px rgb(245 158 11 / 35%),
    0 4px 14px var(--vidok-orange-glow, rgb(245 158 11 / 28%));
}

#smotriland-age-gate .smotriland-age-gate__decline {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--vidok-text-dim, #a3a3a3);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__decline {
  color: #6b7280;
}

#smotriland-age-gate .smotriland-age-gate__decline:hover,
#smotriland-age-gate .smotriland-age-gate__decline:focus-visible {
  color: var(--vidok-text, #ececec);
  outline: none;
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__decline:hover,
html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__decline:focus-visible {
  color: #111827;
}

#smotriland-age-gate .smotriland-age-gate__exit {
  text-align: center;
  padding: 22px 18px;
}

#smotriland-age-gate .smotriland-age-gate__exit h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vidok-text, #ececec);
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__exit h2 {
  color: #111827;
}

#smotriland-age-gate .smotriland-age-gate__exit p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--vidok-text-muted, #c8c8c8);
}

html[data-theme='light'] #smotriland-age-gate .smotriland-age-gate__exit p {
  color: #4b5563;
}

@media (max-width: 420px) {
  #smotriland-age-gate .smotriland-age-gate__card {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  #smotriland-age-gate .smotriland-age-gate__badge {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  #smotriland-age-gate .smotriland-age-gate__plus {
    font-size: 1.35rem;
  }

  #smotriland-age-gate .smotriland-age-gate__copy p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  #smotriland-age-gate .smotriland-age-gate__enter {
    min-height: 2.4rem;
    font-size: 0.72rem;
  }
}

@media (max-height: 700px) {
  #smotriland-age-gate .smotriland-age-gate__badge {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 4px;
  }

  #smotriland-age-gate .smotriland-age-gate__copy {
    gap: 5px;
    margin-bottom: 10px;
  }

  #smotriland-age-gate .smotriland-age-gate__copy p {
    font-size: 0.72rem;
    line-height: 1.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.smotriland-age-locked #__next {
    filter: none;
  }

  #smotriland-age-gate {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgb(0 0 0 / 72%);
  }
}
