/* Nesign cookie notice and 18+ join checkbox. No motion beyond a simple fade. */

.ns-cookie {
  position: fixed;
  z-index: 10050;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  box-sizing: border-box;
}

.ns-cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  box-sizing: border-box;
}

.ns-cookie-text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ns-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ns-cookie-btn {
  appearance: none;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.ns-cookie-btn-accept {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.ns-cookie-btn-accept:hover,
.ns-cookie-btn-accept:focus {
  background: #1e40af;
}

.ns-cookie-btn-reject {
  background: #fff;
  color: #0f172a;
  border-color: #94a3b8;
}

.ns-cookie-btn-reject:hover,
.ns-cookie-btn-reject:focus {
  background: #f1f5f9;
}

.ns-cookie-manage {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 0.9rem;
  color: #1d4ed8;
  cursor: pointer;
  text-decoration: underline;
}

.ns-cookie-hidden {
  display: none;
}

html.dark .ns-cookie-card,
body.dark .ns-cookie-card,
.dark .ns-cookie-card {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html.dark .ns-cookie-btn-reject,
body.dark .ns-cookie-btn-reject,
.dark .ns-cookie-btn-reject {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

html.dark .ns-cookie-btn-reject:hover,
html.dark .ns-cookie-btn-reject:focus,
body.dark .ns-cookie-btn-reject:hover,
.dark .ns-cookie-btn-reject:hover {
  background: #334155;
}

html.dark .ns-cookie-manage,
body.dark .ns-cookie-manage,
.dark .ns-cookie-manage {
  color: #93c5fd;
}

.ns-age-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.ns-age-input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.ns-age-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.95rem;
}

html.dark .ns-age-error,
body.dark .ns-age-error,
.dark .ns-age-error {
  background: #450a0a;
  color: #fecaca;
  border-color: #7f1d1d;
}

.ns-yt-gate {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #f8fafc;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 16px;
  text-align: center;
  font: inherit;
  font-weight: 600;
}

.ns-yt-gate:hover,
.ns-yt-gate:focus {
  background: #1e293b;
}

@media (max-width: 640px) {
  .ns-cookie {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ns-cookie-actions {
    justify-content: center;
  }
  .ns-cookie-manage {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

.ns-privacy {
  position: fixed;
  z-index: 10060;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ns-privacy[hidden] {
  display: none !important;
}

.ns-privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ns-privacy-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 20px 20px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}

.ns-privacy-panel h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.ns-privacy-panel p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ns-privacy-status {
  font-weight: 600;
}

html.dark .ns-privacy-panel,
body.dark .ns-privacy-panel,
.dark .ns-privacy-panel {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
