/* Small-screen adjustments for the existing public site layout. */
.video-card-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.video-card-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.similar-videos-section {
  width: 100%;
}

/* One shared hover treatment for listing and similar-video cards. */
.video-card-link {
  transition: background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .video-card-link:hover {
    background-color: #ddf5e5;
  }
}

.video-card-link:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}

.responsive-card-grid,
.similar-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  min-width: 0;
  gap: 1rem;
}

.responsive-card-grid > *,
.similar-videos-grid > * {
  min-width: 0;
}

.site-language-nav {
  flex: 0 0 auto;
  color: #fff;
}

.site-language-menu {
  position: relative;
}

.site-language-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 0.375rem;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.site-language-summary::-webkit-details-marker {
  display: none;
}

.site-language-options {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 13rem;
  padding: 0.375rem;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  background: #2d2d2d;
  box-shadow: 0 10px 20px rgb(0 0 0 / 25%);
}

.site-language-options a {
  display: block;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: #f3f4f6;
  white-space: nowrap;
}

.site-language-options a:hover,
.site-language-options a[aria-current="page"] {
  background: #3f3f46;
  color: #fff;
}

.site-language-options a[aria-current="page"]::after {
  content: "✓";
  float: right;
  color: #10b981;
}

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  padding: 1.25rem 1rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-legal-links a {
  padding: 0.25rem 0;
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
  text-underline-offset: 0.2em;
}

.site-legal-links a:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.site-legal-links a:focus-visible {
  border-radius: 0.125rem;
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact page: keep this form readable even when generated utility classes
   are absent from the built Tailwind stylesheet. */
.legal-document:has(.contact-page) {
  width: min(100%, 56rem);
  border-color: #334155;
  background: #1f2937;
  color: #d1d5db;
}

.legal-document:has(.contact-page) h1 {
  border-color: #475569;
  color: #f8fafc;
}

.contact-page {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  color: #d1d5db;
  overflow-wrap: anywhere;
}

.contact-page > * + * {
  margin-top: 1.25rem;
}

.contact-page h1 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
}

.contact-page p {
  color: #d1d5db;
  line-height: 1.7;
}

.contact-page > p a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-page > p a:hover {
  color: #6ee7b7;
}

.contact-page [role="status"],
.contact-page [role="alert"] {
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
}

.contact-page [role="status"] {
  border: 1px solid rgb(16 185 129 / 45%);
  background: rgb(16 185 129 / 12%);
  color: #a7f3d0;
}

.contact-page [role="alert"] {
  border: 1px solid rgb(248 113 113 / 45%);
  background: rgb(127 29 29 / 22%);
  color: #fecaca;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  margin-top: 1.5rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #475569;
  border-radius: 0.875rem;
  background: #111827;
  color: #f3f4f6;
  box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
}

.contact-field {
  min-width: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
}

.contact-field label span:not(.contact-required) {
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 400;
}

.contact-required {
  color: #34d399;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #64748b;
  border-radius: 0.5rem;
  background: #0b1220;
  padding: 0.75rem 0.875rem;
  color: #f8fafc;
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 20%);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  min-height: 3rem;
}

.contact-form textarea {
  min-height: 14rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #10b981;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 24%);
}

.contact-help {
  margin-top: 0.4rem;
  color: #9ca3af !important;
  font-size: 0.875rem;
}

.contact-error {
  margin-top: 0.4rem;
  color: #fca5a5 !important;
  font-size: 0.9rem;
}

.contact-alert--error {
  border: 1px solid rgb(248 113 113 / 45%);
  border-radius: 0.625rem;
  background: rgb(127 29 29 / 22%);
  padding: 0.875rem 1rem;
  color: #fecaca;
}

.contact-submit {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #10b981;
  border-radius: 0.55rem;
  background: #10b981;
  padding: 0.7rem 1.25rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.contact-submit:hover:not(:disabled) {
  border-color: #059669;
  background: #059669;
}

.contact-submit:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
}

.contact-submit:disabled {
  border-color: #4b5563;
  background: #4b5563;
  color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.7;
}

.contact-form .cf-turnstile {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 639px) {
  .legal-document:has(.contact-page) {
    padding: 1.125rem;
  }

  .contact-form {
    gap: 1rem;
    padding: 1rem;
  }

  .contact-form textarea {
    min-height: 12rem;
  }

  .contact-submit {
    width: 100%;
  }
}

.seo-page-text {
  width: min(100% - 2rem, 56rem);
  margin: 2rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.seo-page-text p + p {
  margin-top: 0.75rem;
}

.legal-document {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #fff;
  color: #374151;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-document h1 {
  margin-bottom: 1rem;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.75rem;
  color: #1f2937;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.legal-document h2 {
  margin-top: 1.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-document p,
.legal-document ul,
.legal-document blockquote {
  margin-block: 0.75rem;
}

.legal-document ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-document li + li {
  margin-top: 0.5rem;
}

.legal-document a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-document a:hover {
  color: #065f46;
}

.legal-document blockquote {
  border-left: 4px solid #10b981;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  color: #374151;
}

.legal-document code {
  overflow-wrap: anywhere;
}

.site-cookie-banner {
  position: fixed;
  z-index: 999;
  bottom: 20px;
  left: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  width: min(380px, calc(100vw - 40px));
  padding: 0.875rem 1rem;
  border: 1px solid rgb(148 163 184 / 28%);
  border-radius: 0.75rem;
  background: #232b36;
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

html.age-gate-open .site-cookie-banner {
  display: none !important;
}

.site-cookie-banner__text {
  min-width: 0;
}

.site-cookie-banner__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-cookie-banner__actions button {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.site-cookie-banner #cookie-accept {
  background: #10b981;
}

@media (max-width: 639px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-header-search {
    order: 3;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
  }

  .site-header-search input {
    min-width: 0;
    width: 100%;
  }

  .site-language-nav {
    order: 2;
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
  }

}
