:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
::selection {
  background: rgba(148, 163, 184, 0.25);
}

/* Minimal 'prose' styles (Tailwind Typography-like) */
.prose {
  line-height: 1.75;
}
.prose > :first-child {
  margin-top: 0 !important;
}
.prose > :last-child {
  margin-bottom: 0 !important;
}

.prose p {
  margin: 0.75rem 0;
}
.prose strong {
  font-weight: 700;
}
.prose em {
  font-style: italic;
}
.prose u {
  text-decoration: underline;
}

.prose h1 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.prose h2 {
  margin: 1.15rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}
.prose h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.prose ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.prose ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: decimal;
}
.prose li {
  margin: 0.25rem 0;
}

.prose blockquote {
  margin: 1rem 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  opacity: 0.9;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  padding: 0.15rem 0.35rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.prose pre {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  overflow: auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.prose table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}
.prose th,
.prose td {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.prose thead th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}
.prose hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dark tweak for 'prose-invert' usage */
.prose.prose-invert {
  color: rgba(244, 244, 245, 0.92);
}
.prose.prose-invert p,
.prose.prose-invert li,
.prose.prose-invert blockquote {
  color: rgba(212, 212, 216, 0.95);
}
/* Enhanced page design - sleek dark with minimal borders */

/* Enhanced card styling - minimal borders */
.script-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(113, 113, 122, 0.4);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.script-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(113, 113, 122, 0.6);
}

/* Action buttons - match screenshot style */
.btn-action {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(113, 113, 122, 0.3);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.btn-action:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(113, 113, 122, 0.5);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

:root {
  --accent-purple: #8b5cf6;
}

/* Showcase group purple glow circles */
.showcase-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.showcase-group::before,
.showcase-group::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.12;
  background: radial-gradient(
    circle at center,
    var(--accent-purple),
    transparent 60%
  );
  pointer-events: none;
}
.showcase-group::before {
  left: -40px;
  top: -20px;
}
.showcase-group::after {
  right: -40px;
  bottom: -20px;
}

/* Play button - purple accent */
.btn-play {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
  position: relative;
  z-index: 2;
}
.btn-play:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--accent-purple);
  transform: translateY(-1px);
}

/* Colored glow variants - removed, using borders instead */
.glow-cyan {
  box-shadow: none;
}
.glow-blue {
  box-shadow: none;
}
.glow-purple {
  box-shadow: none;
}
.glow-pink {
  box-shadow: none;
}

/* Glass button - secondary action */
.btn-glass {
  position: relative;
  backdrop-filter: blur(4px);
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(113, 113, 122, 0.3);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-glass:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(113, 113, 122, 0.5);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Primary CTA button */
.btn-primary-glow {
  position: relative;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: none;
  transition: all 0.25s ease;
  font-weight: 600;
  cursor: pointer;
}

/* Responsive title handling */
.script-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .script-title {
    font-size: 1.5rem;
    max-width: 100%;
  }
}

/* Video modal styles (kept as-is) */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.18);
  animation: slideUp 0.3s ease;
}
.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .video-modal-content {
    width: 95%;
    border-radius: 0.75rem;
  }
  .video-modal-close {
    top: -35px;
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
}

/* end of stylesheet */
