/* ==========================================================================
   custom.css — DramaGo clone
   Small additions on top of the compiled Tailwind stylesheet (styles.css).
   The only "design" content here is the ported testimonial carousel
   component (namespaced with the "dg-" prefix so it can't collide with any
   Tailwind utility class already defined in styles.css), adapted from the
   user's own site https://www.appdramago.online/ (see dg-carou / dg-track /
   dg-cbtn / dg-dots below — original source used .carou/.track/.cbtn/.dots).
   ========================================================================== */

.dg-carou-wrap {
  max-width: 28rem; /* ~448px, mirrors the original page's own carousel wrap */
  margin: 2rem auto 0;
}

.dg-carou {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border, #3a3a52);
  background: var(--card, #1a1a2a);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .dg-carou {
    padding: 1rem;
  }
}

.dg-track {
  display: flex;
  transition: transform 0.5s ease;
}

.dg-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

.dg-cbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dg-cbtn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgb(0 0 0 / 0.8);
}

.dg-cbtn.l { left: 0.5rem; }
.dg-cbtn.r { right: 0.5rem; }

@media (min-width: 640px) {
  .dg-cbtn.l { left: -1rem; }
  .dg-cbtn.r { right: -1rem; }
  .dg-cbtn { width: 3rem; height: 3rem; }
}

.dg-dots {
  display: flex;
  gap: 0.4375rem;
  justify-content: center;
  margin-top: 0.9rem;
}

.dg-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border, #3a3a52);
  transition: 0.3s;
  display: inline-block;
}

.dg-dots span.on {
  background: var(--gold, #f5c542);
  width: 1.375rem;
  border-radius: 0.3125rem;
}

/* ==========================================================================
   VSL player (hero) — vertical video, VTurb-style: starts muted+looping
   ("your video already started"), tap restarts from 0 with sound, progress
   bar, play/pause/replay states. Ported from the same pattern used on
   appdramago.online's own #vsl component.
   ========================================================================== */
.dg-vsl {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dg-vsl video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.dg-vsl-ov {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.dg-vsl-ov[hidden] { display: none; }

.dg-vsl-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 88%;
  padding: 20px 26px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .92);
  background: oklch(40% .18 300 / .88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.dg-vsl-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.dg-vsl-icon svg { width: 36px; height: 36px; }

.dg-vsl-box b {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.dg-vsl-box small {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  opacity: 1;
  line-height: 1.3;
}

.dg-vsl-box small[hidden] { display: none; }

.dg-vsl-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, .18);
}

.dg-vsl-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold, #f5c542);
  transition: width .25s linear;
}

/* ==========================================================================
   Clickable catalog wall — "meu carrossel": posters in the auto-scrolling
   marquee open a preview modal with the first episode playing. Ported from
   appdramago.online's .poster / .dm / .dm-card component (namespaced dg-).
   ========================================================================== */
.dg-row-rev { animation-direction: reverse; }

.dg-poster { cursor: pointer; }

.dg-poster-frame { position: relative; }

.dg-poster-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75);
  pointer-events: none;
  transition: .2s;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.dg-poster:hover .dg-poster-frame::after {
  background-color: var(--gold, #f5c542);
  border-color: #fff;
  transform: scale(1.12);
}

.dg-poster:hover .dg-poster-frame img { filter: brightness(1.08); }

.dg-poster-caption {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  text-align: center;
  color: var(--muted-foreground, #a7a7b8);
}

.dg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .86);
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.dg-modal.open { display: flex; }

.dg-modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow: auto;
  background: var(--card, #171725);
  border: 1px solid var(--border, #2a2a3e);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dg-modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.dg-modal-video video {
  width: 100%;
  max-height: 55vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  display: block;
}

.dg-modal-side h3 {
  font-size: 18px;
  font-weight: 800;
  padding-right: 28px;
  line-height: 1.25;
}

.dg-modal-meta { color: var(--muted-foreground, #a7a7b8); font-size: 13px; margin: 4px 0; }
.dg-modal-hint { color: #7a7a8c; font-size: 12px; margin-bottom: 12px; }

.dg-modal-eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  max-height: 28vh;
  overflow: auto;
  margin-bottom: 14px;
}

.dg-modal-eps button {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border, #2a2a3e);
  color: var(--muted-foreground, #a7a7b8);
  border-radius: 9px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dg-modal-eps button.on {
  background: var(--gold, #f5c542);
  border-color: var(--gold, #f5c542);
  color: #1a1a1a;
}

.dg-modal-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  background: var(--gold, #f5c542);
}

@media (min-width: 720px) {
  .dg-modal-card { flex-direction: row; }
  .dg-modal-video { width: 300px; flex-shrink: 0; }
  .dg-modal-side { flex: 1; min-width: 0; }
  .dg-modal-video video { max-height: 70vh; }
}

/* ==========================================================================
   Mensal → Anual upsell popup, shown once when someone starts checking out
   on the monthly plan, offering a one-time discounted annual price instead.
   ========================================================================== */
.dg-upsell {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .86);
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}

.dg-upsell.open { display: flex; }

/* ==========================================================================
   Missing responsive utility variants — the compiled styles.css only
   contains the exact classes the ORIGINAL site used somewhere in its own
   markup, so a few "sm:" variants introduced here (to shrink some pill
   buttons/badges on very narrow phones like the 375px iPhone SE, where
   their text was overflowing the pill by a few px and wrapping awkwardly)
   have no compiled rule of their own. These restore them by hand so the
   desktop/tablet look stays pixel-identical to before ≥640px.
   ========================================================================== */
.py-3\.5 { padding-block: calc(var(--spacing) * 3.5); }
.mt-0\.5 { margin-top: calc(var(--spacing) * 0.5); }
.mt-2\.5 { margin-top: calc(var(--spacing) * 2.5); }
.mt-5 { margin-top: calc(var(--spacing) * 5); }
.my-5 { margin-block: calc(var(--spacing) * 5); }
.hover\:scale-\[1\.02\]:hover { scale: 1.02; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.inline-block { display: inline-block; }
.text-white { color: #fff; }

.bg-black\/30 { background-color: #000; }
.text-white\/70 { color: #fff; }
.text-white\/80 { color: #fff; }
.decoration-white\/60 { text-decoration-color: #fff; }
@supports (color: color-mix(in lab, red, red)) {
  .bg-black\/30 { background-color: color-mix(in oklab, #000 30%, transparent); }
  .text-white\/70 { color: color-mix(in oklab, #fff 70%, transparent); }
  .text-white\/80 { color: color-mix(in oklab, #fff 80%, transparent); }
  .decoration-white\/60 { text-decoration-color: color-mix(in oklab, #fff 60%, transparent); }
}

.text-\[\#00A8E1\] { color: #00A8E1; }
.text-\[\#2BD9A8\] { color: #2BD9A8; }
.text-\[\#4B9CD3\] { color: #4B9CD3; }
.text-\[\#7B5CFF\] { color: #7B5CFF; }
.text-\[\#A78BFA\] { color: #A78BFA; }
.text-\[\#E50914\] { color: #E50914; }
.text-\[\#F5C518\] { color: #F5C518; }
.text-\[\#FF3D71\] { color: #FF3D71; }
.text-\[\#FF6B6B\] { color: #FF6B6B; }

@media (max-width: 639px) {
  .dg-h1-size { font-size: 2.5rem; }
}

@media (min-width: 640px) {
  .sm\:px-10 { padding-inline: 2.5rem; }
  .sm\:py-5 { padding-block: 1.25rem; }
  .sm\:tracking-wider { letter-spacing: 0.05em; }
  .sm\:px-5 { padding-inline: 1.25rem; }
  .sm\:py-2\.5 { padding-block: 0.625rem; }
  .sm\:tracking-widest { letter-spacing: 0.1em; }
  .sm\:px-4 { padding-inline: 1rem; }
  .sm\:py-1\.5 { padding-block: calc(var(--spacing) * 1.5); }
  .sm\:py-3 { padding-block: calc(var(--spacing) * 3); }
  .sm\:py-4 { padding-block: calc(var(--spacing) * 4); }
  .sm\:mt-3 { margin-top: calc(var(--spacing) * 3); }
  .sm\:mt-5 { margin-top: calc(var(--spacing) * 5); }
  .sm\:mt-6 { margin-top: calc(var(--spacing) * 6); }
  .sm\:mt-7 { margin-top: calc(var(--spacing) * 7); }
  .sm\:mb-4 { margin-bottom: calc(var(--spacing) * 4); }
  .sm\:right-4 { right: calc(var(--spacing) * 4); }
  .sm\:top-4 { top: calc(var(--spacing) * 4); }
  .sm\:w-4 { width: calc(var(--spacing) * 4); }
  .sm\:h-4 { height: calc(var(--spacing) * 4); }
  .sm\:max-w-sm { max-width: 24rem; }
  .sm\:rounded-full { border-radius: 2147483647px; }
  .sm\:rounded-3xl { border-radius: calc(var(--radius) + 12px); }
  :where(.sm\:space-y-2\.5>:not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)));
  }
}
