:root {
  --bg: #0e0f16;
  --bg-elev: #171927;
  --border: #262a3d;
  --text: #e8eaf2;
  --dim: #9aa0b5;
  --accent: #6c63ff;
  --warn: #ffd166;
  --good: #4ade80;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 700; font-size: 17px; }
.brand em { color: var(--accent); font-style: normal; }

.nav__links a { color: var(--dim); text-decoration: none; margin-left: 18px; }
.nav__links a:hover { color: var(--text); }

main { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }

.hero { text-align: center; padding: 30px 0 48px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; }
.hero p { color: var(--dim); font-size: 17px; max-width: 640px; margin: 0 auto; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--dim); font-size: 13px; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
}
.card--center { text-align: center; }
.price { font-size: 42px; font-weight: 800; }
.price small { font-size: 16px; color: var(--dim); font-weight: 400; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn--block { display: block; width: 100%; margin-top: 14px; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: default; }

.feature-list { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.feature-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.feature-list li::before { content: "✓"; color: var(--good); margin-right: 10px; }

.hint { color: var(--dim); font-size: 13px; }
.alert { color: #f87171; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.35); border-radius: 10px; padding: 10px 14px; margin-top: 14px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Checkout / sales ---------- */
.hero-actions { display: flex; gap: 14px; justify-content: center; }
.hero-actions .btn { margin-top: 24px; }

.overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.checkout-hero { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.checkout-hero__title { font-size: 40px; line-height: 1.12; margin: 12px auto 14px; max-width: 720px; }
.checkout-hero__sub { color: var(--dim); font-size: 17px; max-width: 620px; margin: 0 auto; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.block-title {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
.benefit-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(108, 99, 255, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.benefit-item strong { display: block; font-size: 14px; }
.benefit-item span { color: var(--dim); font-size: 13px; }

.plan-card {
  position: sticky;
  top: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.plan-card__name { font-weight: 700; font-size: 15px; }
.plan-card__price { margin: 14px 0 2px; font-size: 40px; font-weight: 800; line-height: 1; }
.plan-card__price small { font-size: 15px; font-weight: 600; color: var(--good); }
.plan-card__note { color: var(--dim); font-size: 13px; }
.plan-card__note em { font-style: normal; font-weight: 600; color: var(--text); }
.plan-ticks {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 8px;
}
.plan-ticks li { font-size: 13px; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }
.plan-ticks li::before { content: "✓"; color: var(--good); font-weight: 700; }

.trust-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--dim); font-size: 12px; margin-top: 28px; }
.trust-row a { color: var(--dim); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 24px 16px 40px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
}
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.plan-card__legal {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.plan-card__legal a { color: var(--dim); text-decoration: underline; }
.plan-card__legal a:hover { color: var(--text); }

@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .plan-card { position: static; }
  .checkout-hero__title { font-size: 32px; }
}

/* ---------- Video Library (My Videos) ---------- */
.nav__active { color: var(--text) !important; font-weight: 600; }

.library-main { max-width: 1120px; }

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.library-title { margin: 0 0 4px; font-size: 26px; }

.library-count {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* Aviso de cuota de biblioteca: 25 / 50 / 70 y el bloqueo al llegar a 100. */
.library-quota {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.library-quota__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(108, 99, 255, 0.16);
  color: var(--accent);
}
.library-quota__body { flex: 1; min-width: 0; }
.library-quota__body strong { display: block; font-size: 14px; }
.library-quota__body .hint { margin: 4px 0 0; }
.library-quota__actions { flex: none; }

.library-quota--info { border-color: rgba(108, 99, 255, 0.4); }
.library-quota--warn { border-color: rgba(255, 209, 102, 0.45); }
.library-quota--warn .library-quota__icon {
  background: rgba(255, 209, 102, 0.16);
  color: var(--warn);
}
.library-quota--full { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); }
.library-quota--full .library-quota__icon {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}
.library-quota--full .library-quota__body strong { color: #f87171; }

.library-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.search {
  flex: 1;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
}
.search:focus { border-color: var(--accent); }
.sort {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}
.btn--icon {
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1;
}
.btn--danger { background: #dc2626; }
.btn--danger:hover { background: #b91c1c; }
.btn--danger:disabled { opacity: 0.5; }

.date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-input {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.date-input:focus { border-color: var(--accent); }
.date-sep { color: var(--dim); font-size: 13px; }

.library-selectbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.library-selectbar .hint { margin: 0; }

/* Circle de seleccion sobre el thumbnail: 30px visibles, 44px de hit area. */
.card-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-select[hidden] { display: none; }
.card-select:focus { outline: none; }

.card-select-ring {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(10, 12, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--ease-smooth, ease), background 0.18s, border-color 0.18s,
    box-shadow 0.18s;
}
.card-select:hover .card-select-ring {
  transform: scale(1.12);
  background: rgba(10, 12, 20, 0.62);
}
.card-select:active .card-select-ring { transform: scale(0.94); }
.card-select:focus-visible .card-select-ring {
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.6), 0 2px 10px rgba(0, 0, 0, 0.45);
}

.card-select-check {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.28s var(--ease-smooth, ease);
}
.card-select[aria-checked="true"] .card-select-ring {
  background: linear-gradient(135deg, var(--acc2, #8a7bff), var(--acc3, #6c63ff));
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.38), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.card-select[aria-checked="true"] .card-select-check { stroke-dashoffset: 0; }

.card-video.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.45), 0 14px 34px rgba(0, 0, 0, 0.42);
}
.card-video.is-selected .card-thumb { box-shadow: inset 0 0 0 2px rgba(108, 99, 255, 0.5); }

.library-state {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
}
.library-state h2 { margin: 0 0 6px; font-size: 20px; }
.library-state .btn { margin-top: 18px; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.library-footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}
.library-footer .btn { margin: 0; }

.card-video {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-video:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #20243a, #141624);
  display: grid;
  place-items: center;
}
.thumb-placeholder { display: flex; align-items: center; justify-content: center; }
.thumb-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.card-video:hover .thumb-play { transform: scale(1.08); opacity: 1; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.thumb-roles {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}
.chip {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(15, 17, 26, 0.72);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.card-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px 14px;
}
.card-titles { flex: 1; min-width: 0; }
.card-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta { margin: 0; color: var(--dim); font-size: 12px; }

.card-menu-btn {
  background: transparent;
  border: 0;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.card-menu-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.card-menu {
  position: absolute;
  top: 38px;
  right: 8px;
  background: #1c1f30;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 20;
  min-width: 150px;
  overflow: hidden;
}
.card-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
}
.card-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.card-menu button.danger { color: #f87171; }

/* Skeleton loaders */
.skeleton-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.skeleton-block {
  background: linear-gradient(90deg, #1b1e2e 25%, #24283b 50%, #1b1e2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.skeleton-thumb { aspect-ratio: 16 / 9; width: 100%; }
.skeleton-line { height: 14px; margin: 12px 14px 0; border-radius: 6px; }
.skeleton-line--short { width: 55%; margin-bottom: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Dialogs */
.dialog { border: 0; background: transparent; padding: 0; max-width: none; }
.dialog::backdrop { background: rgba(5, 6, 10, 0.66); backdrop-filter: blur(2px); }
.dialog-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  min-width: min(440px, 92vw);
  margin: auto;
}
.dialog-card h3 { margin: 0 0 12px; }
.dialog-input {
  width: 100%;
  background: #12141f;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}
.dialog-input:focus { border-color: var(--accent); }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dialog--player { max-width: 960px; }
.player-card { width: min(880px, 94vw); }
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.player-head strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  display: block;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c1f30;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

@media (max-width: 720px) {
  .library-toolbar { flex-wrap: wrap; }
  .search { width: 100%; }
  .library-head { flex-direction: column; align-items: flex-start; }
  .library-quota { flex-wrap: wrap; }
  .library-quota__actions { width: 100%; }
  .library-quota__actions .btn { width: 100%; }
}

/* ---------- Public watch page (/watch) ---------- */
.watch-main { max-width: 860px; }

.watch-player .player-video { margin-top: 14px; }

.watch-title { margin: 0 0 4px; font-size: 26px; word-break: break-word; }

.watch-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.watch-title__edit { flex: none; padding: 6px 10px; visibility: hidden; }
.watch-title-row:hover .watch-title__edit:not([hidden]) { visibility: visible; }
.watch-edit {
  margin-bottom: 4px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.watch-edit__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.watch-edit__form .search { flex: 1; min-width: 0; padding: 10px 12px; }
.watch-edit__form .btn { padding: 10px 14px; }
.watch-edit__form .alert { flex-basis: 100%; margin-top: 4px; }

.watch-video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
/* Anti-descarga: ocultar el botón "download" nativo del reproductor. */
video::-webkit-media-controls-download-button { display: none !important; }
video::-internal-media-controls-download-button { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; }

.watch-share {
  margin-top: 22px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.watch-share__title { margin: 0 0 4px; font-size: 17px; }
.watch-share__row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.watch-share__row .search { flex: 1; }
.watch-share__row .btn { flex: none; padding: 11px 16px; }
.watch-share__ok { margin: 10px 0 0; color: var(--accent); }
.watch-share__download { flex: none; padding: 11px 16px; margin-top: 12px; }
.watch-share__danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.watch-share__danger .btn { flex: none; padding: 11px 16px; }
.watch-share__danger .hint { flex: 1; min-width: 200px; margin: 0; }

/* ============================================================
   PREMIUM UI LAYER (solo dónde premium.js añade html.premium)
   Mejora visual pura: sin la clase todo esto es inerte.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.premium * { transition: none !important; animation: none !important; }
}

html.premium {
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --accent-glow: rgba(108, 99, 255, 0.45);
  --acc2: #8a7bff;
  --acc3: #55d6ff;
  --radius-lg: 18px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html.premium body {
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(108, 99, 255, 0.16), transparent 60%),
    radial-gradient(760px 560px at 8% 2%, rgba(85, 214, 255, 0.1), transparent 55%),
    radial-gradient(1000px 800px at 50% 118%, rgba(138, 123, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Capa de fondo atmosférica + canvas WebGL detrás de todo el contenido */
html.premium .premium-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42vw 34vh at 78% -6%, rgba(108, 99, 255, 0.22), transparent 62%),
    radial-gradient(36vw 30vh at 6% 4%, rgba(85, 214, 255, 0.12), transparent 58%),
    radial-gradient(50vw 44vh at 50% 112%, rgba(138, 123, 255, 0.18), transparent 64%);
}
html.premium canvas.premium-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
html.premium header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 22, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(108, 99, 255, 0.16);
}
html.premium main,
html.premium footer.site-footer {
  position: relative;
  z-index: 1;
}

/* Tipografía */
html.premium h1,
html.premium h2,
html.premium h3,
html.premium .brand {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
html.premium .library-title,
html.premium .watch-title {
  background: linear-gradient(120deg, #ffffff 10%, var(--acc2) 55%, var(--acc3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.premium .overline { letter-spacing: 0.2em; }

/* Cursor custom */
html.premium.cursor-active * { cursor: none !important; }
html.premium.cursor-active input,
html.premium.cursor-active textarea,
html.premium.cursor-active select { cursor: text !important; }
html.premium #premium-cursor-dot,
html.premium #premium-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  z-index: 2147483000;
}
html.premium #premium-cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.8);
  transition: width 0.15s, height 0.15s, background 0.15s, opacity 0.2s;
}
html.premium #premium-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s;
}
html.premium #premium-cursor-dot[data-mode="hover"] { width: 6px; height: 6px; background: #c9c2ff; }
html.premium #premium-cursor-ring[data-mode="hover"] {
  width: 46px;
  height: 46px;
  border-color: rgba(108, 99, 255, 0.9);
  background: rgba(108, 99, 255, 0.12);
}
html.premium #premium-cursor-dot[data-mode="text"] { width: 3px; height: 18px; border-radius: 2px; }
@media (pointer: coarse) {
  html.premium #premium-cursor-dot, html.premium #premium-cursor-ring { display: none; }
  html.premium.cursor-active, html.premium.cursor-active * { cursor: auto !important; }
}

/* Curtain de transición de página */
html.premium #premium-transition {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background: radial-gradient(120% 120% at 50% 0%, #131426 0%, #0e0f16 70%, #0b0c12 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-smooth);
}
html.premium #premium-transition.on { opacity: 1; visibility: visible; }
html.premium #premium-transition.instant { transition: none; }

/* Botones */
html.premium .btn {
  border-radius: 12px;
  background: linear-gradient(120deg, #6159f5, #7a6cff 55%, #8fb7ff 130%);
  box-shadow: 0 6px 22px rgba(108, 99, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-weight: 600;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background 0.25s, filter 0.25s;
}
html.premium .btn:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(108, 99, 255, 0.42); }
html.premium .btn:active { transform: translateY(1px) scale(0.99); }
html.premium .btn--ghost {
  background: rgba(23, 25, 39, 0.55);
  border: 1px solid rgba(138, 123, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
html.premium .btn--ghost:hover { filter: none; border-color: var(--acc2); background: rgba(30, 32, 48, 0.7); }
html.premium .btn--danger,
html.premium .btn--danger:hover { background: linear-gradient(120deg, #e24444, #ff6b6b); box-shadow: 0 6px 20px rgba(226, 68, 68, 0.3); }

/* Inputs / toolbar */
html.premium .search,
html.premium .sort,
html.premium .date-input {
  border-radius: 12px;
  background: rgba(23, 25, 39, 0.6);
  border: 1px solid rgba(38, 42, 61, 0.9);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
html.premium .search:focus,
html.premium .sort:focus,
html.premium .date-input:focus {
  border-color: var(--acc2);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}

/* Estados / dialogs / toasts */
html.premium .library-state {
  background: linear-gradient(180deg, rgba(23, 25, 39, 0.5), rgba(23, 25, 39, 0.28));
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
html.premium .dialog::backdrop {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}
html.premium .dialog-card {
  border-radius: var(--radius-lg);
  border-color: rgba(108, 99, 255, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(108, 99, 255, 0.1);
}
html.premium .toast {
  background: rgba(28, 31, 48, 0.85);
  backdrop-filter: blur(12px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* Tarjetas de la biblioteca */
html.premium .card-video {
  border-radius: var(--radius-lg);
  border-color: rgba(38, 42, 61, 0.9);
  background: linear-gradient(180deg, rgba(30, 32, 48, 0.85), rgba(20, 22, 35, 0.92));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
}
html.premium .card-video:hover {
  transform: translateY(-6px);
  border-color: var(--acc2);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 99, 255, 0.28), 0 0 34px rgba(108, 99, 255, 0.14);
}
html.premium .card-thumb {
  background: linear-gradient(135deg, #2a2e4c, #141624);
}
html.premium .thumb-play {
  background: linear-gradient(120deg, #6159f5, #8fb7ff);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45), 0 0 0 6px rgba(108, 99, 255, 0.14);
  opacity: 1;
}
html.premium .card-video:hover .thumb-play { transform: scale(1.1); }
html.premium .chip {
  background: rgba(10, 12, 20, 0.6);
  border-color: rgba(108, 99, 255, 0.3);
  backdrop-filter: blur(6px);
}
html.premium .card-select-ring {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(8, 10, 18, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
html.premium .card-select:hover .card-select-ring {
  background: rgba(8, 10, 18, 0.6);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
html.premium .card-select[aria-checked="true"] .card-select-ring {
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.28), 0 10px 26px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(108, 99, 255, 0.35);
}
html.premium .card-video.is-selected {
  border-color: var(--acc2);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.45), 0 0 34px rgba(108, 99, 255, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.5);
}
html.premium .card-menu {
  background: rgba(23, 25, 39, 0.97);
  border-color: rgba(108, 99, 255, 0.26);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

/* Playback / watch */
html.premium .watch-video-wrap {
  border-radius: var(--radius-lg);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(108, 99, 255, 0.12);
}
html.premium .watch-share,
html.premium .watch-edit {
  border-radius: var(--radius-lg);
  border-color: rgba(108, 99, 255, 0.22);
  background: linear-gradient(180deg, rgba(30, 32, 48, 0.7), rgba(20, 22, 35, 0.8));
  backdrop-filter: blur(10px);
}
html.premium .site-footer { border-top: 1px solid rgba(108, 99, 255, 0.14); }

/* Nav links sutil */
html.premium .nav__links a {
  position: relative;
  transition: color 0.2s;
}
html.premium .nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acc2), var(--acc3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-smooth);
}
html.premium .nav__links a:hover::after { transform: scaleX(1); }
html.premium .nav__links .nav__active::after { transform: scaleX(1); opacity: 0.8; }