/*
 * PrivilegeFans v33 · módulo «trending» (B) · carrusel de fotos y vídeos del reproductor (maqueta «Carrusel de fotos y vídeos»)
 *   Dos diseños, los dos de la maqueta: ESCRITORIO (ventana apaisada) y MÓVIL (vertical).
 *   Cada uno se dibuja en un lienzo fijo (escritorio 1150×790, móvil 440×870) y se escala entero con la unidad --u
 *   (= píxeles de pantalla por unidad del lienzo), que sale del tamaño del escenario del reproductor (container query):
 *   mismo diseño y mismas proporciones en cualquier pantalla. Marcado y motor: m-trending-car.js
 *   Se carga después de m-trending.css para poder sobrescribir el escenario del reproductor solo cuando se ve un carrusel (.is-car).
 */

/* ═══════════════ escenario, fondo y cabecera ═══════════════ */
.trd-pl-stage { container: tstage / size; transition: width .34s cubic-bezier(.3, .7, .2, 1); }
.trd-pl.is-car .trd-pl-stage { background: transparent; box-shadow: none; border-radius: 0; }
.trd-sl { transition: opacity .2s ease; }
/* fondo azul marino con la curva dorada de la maqueta (aparece suave al entrar en un carrusel) */
.trd-pl-bg::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%271671%27%20height=%27141%27%20viewBox=%270%200%201671%20141%27%20preserveAspectRatio=%27none%27%3E%3Cdefs%3E%3ClinearGradient%20id=%27g%27%20gradientUnits=%27userSpaceOnUse%27%20x1=%27380%27%20y1=%270%27%20x2=%271671%27%20y2=%270%27%3E%3Cstop%20offset=%270%27%20stop-color=%27%23ffd98a%27%20stop-opacity=%270%27/%3E%3Cstop%20offset=%27.22%27%20stop-color=%27%23ffe7a6%27%20stop-opacity=%27.55%27/%3E%3Cstop%20offset=%27.38%27%20stop-color=%27%23fff3c4%27%20stop-opacity=%27.95%27/%3E%3Cstop%20offset=%27.62%27%20stop-color=%27%23ffd98a%27%20stop-opacity=%27.55%27/%3E%3Cstop%20offset=%27.8%27%20stop-color=%27%23fff0bd%27%20stop-opacity=%271%27/%3E%3Cstop%20offset=%271%27%20stop-color=%27%23ffe3a0%27%20stop-opacity=%27.95%27/%3E%3C/linearGradient%3E%3CradialGradient%20id=%27r%27%20gradientUnits=%27userSpaceOnUse%27%20cx=%271350%27%20cy=%27126%27%20r=%27230%27%20gradientTransform=%27translate%281350%20126%29%20scale%281%20.12%29%20translate%28-1350%20-126%29%27%3E%3Cstop%20offset=%270%27%20stop-color=%27%23ffb04a%27%20stop-opacity=%27.95%27/%3E%3Cstop%20offset=%27.45%27%20stop-color=%27%23ff9a22%27%20stop-opacity=%27.4%27/%3E%3Cstop%20offset=%271%27%20stop-color=%27%23ff9a22%27%20stop-opacity=%270%27/%3E%3C/radialGradient%3E%3ClinearGradient%20id=%27h%27%20x1=%270%27%20y1=%270%27%20x2=%270%27%20y2=%271%27%3E%3Cstop%20offset=%270%27%20stop-color=%27%231b5fb0%27%20stop-opacity=%27.34%27/%3E%3Cstop%20offset=%271%27%20stop-color=%27%230a2a58%27%20stop-opacity=%270%27/%3E%3C/linearGradient%3E%3Cfilter%20id=%27b%27%20x=%27-5%25%27%20y=%27-80%25%27%20width=%27110%25%27%20height=%27260%25%27%3E%3CfeGaussianBlur%20stdDeviation=%275%27/%3E%3C/filter%3E%3C/defs%3E%3Cpath%20d=%27M380%20150C520%20112%20700%2095%20830%2093C1010%2091%201160%20122%201350%20126C1480%20129%201590%20100%201690%2048L1690%20170L380%20170Z%27%20fill=%27url%28%23h%29%27/%3E%3Cpath%20d=%27M380%20150C520%20112%20700%2095%20830%2093C1010%2091%201160%20122%201350%20126C1480%20129%201590%20100%201690%2048%27%20fill=%27none%27%20stroke=%27url%28%23g%29%27%20stroke-width=%277%27%20filter=%27url%28%23b%29%27%20opacity=%27.85%27/%3E%3Cpath%20d=%27M380%20150C520%20112%20700%2095%20830%2093C1010%2091%201160%20122%201350%20126C1480%20129%201590%20100%201690%2048%27%20fill=%27none%27%20stroke=%27url%28%23g%29%27%20stroke-width=%272.2%27/%3E%3Cellipse%20cx=%271350%27%20cy=%27127%27%20rx=%27230%27%20ry=%2718%27%20fill=%27url%28%23r%29%27/%3E%3C/svg%3E") center bottom / 100% auto no-repeat, radial-gradient(75% 60% at 60% 105%, rgba(12, 58, 120, .5), rgba(12, 58, 120, 0) 70%), linear-gradient(180deg, #000f25 0, #011329 50%, #01172f 100%); }
.trd-pl.is-car .trd-pl-bg::after { opacity: 1; }
/* logos originales: escudo + línea + «PrivilegeFans.» */
.trd-pl-brand { position: absolute; z-index: 7; left: clamp(14px, 2.2vw, 40px); top: clamp(10px, 2.2vh, 24px); display: flex; align-items: center; gap: clamp(9px, 1.2vw, 20px); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.trd-pl.is-car .trd-pl-brand { opacity: 1; visibility: visible; }
.trd-pl-brand .b-crest { height: clamp(32px, 5.6vh, 54px); width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.trd-pl-brand .b-div { width: 1.5px; height: clamp(26px, 4.6vh, 44px); background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); }
.trd-pl-brand .b-word { height: clamp(22px, 3.7vh, 36px); width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
/* cerrar y flechas de arriba/abajo del reproductor, con el aro dorado del diseño */
.trd-pl.is-car .trd-pl-logo { opacity: 0; visibility: hidden; }
.trd-pl.is-car .trd-pl-x { background: rgba(4, 14, 32, .7); border: 1.5px solid rgba(255, 214, 120, .6); box-shadow: 0 0 14px rgba(255, 170, 40, .25); backdrop-filter: none; }
.trd-pl.is-car .trd-pl-x:hover { background: rgba(4, 14, 32, .92); border-color: #ffe19a; }
.trd-pl.is-car .trd-pl-nav button { background: rgba(4, 14, 32, .7); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .5); }
.trd-pl.is-car .trd-pl-nav button:hover:not(:disabled) { background: rgba(4, 14, 32, .94); box-shadow: inset 0 0 0 1.5px #ffe19a; }

/* ═══════════════ la publicación con carrusel ═══════════════ */
.trd-sl.is-car { --u: calc(min(100cqw / 440, 100cqh / 870)); --tc-gold: #fdbe15; --tc-tag: #ffc21a; overflow: visible; background: transparent; }
@media (min-width: 721px) and (orientation: landscape) { .trd-sl.is-car { --u: calc(min(100cqw / 1150, 100cqh / 790)); } }

.tcar { position: absolute; color: #fff; font-family: Lato, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.tcar-view { position: absolute; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tcar button { font-family: inherit; }
.tcar a { color: inherit; text-decoration: none; }

/* tarjetas (la central y las vecinas) */
.tcar-s { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #050c18; cursor: pointer; backface-visibility: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .55s cubic-bezier(.22, .78, .22, 1), opacity .45s ease, filter .45s ease; }
.tcar-s > img, .tcar-s > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--fx, 50% 35%); background: #050c18; -webkit-user-drag: none; }
.tcar-s[data-o="0"] { z-index: 3; opacity: 1; transform: none; }
.tcar-s:not([data-o="0"]):not([data-o="1"]):not([data-o="-1"]) { opacity: 0; pointer-events: none; z-index: 1; transform: translate(0, 2.1%) scale(.55); }
.tcar-bk { position: absolute; z-index: -1; inset: -14%; display: none; background-size: cover; background-position: center; filter: blur(calc(22 * var(--u))) brightness(.5) saturate(1.25); pointer-events: none; }
.tcar-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(78 * var(--u)); height: calc(78 * var(--u)); margin: calc(-39 * var(--u)) 0 0 calc(-39 * var(--u)); border-radius: 50%; display: grid; place-items: center; padding-left: calc(5 * var(--u)); color: #fff; font-size: calc(30 * var(--u));
  background: rgba(22, 14, 12, .7); border: calc(2 * var(--u)) solid rgba(255, 255, 255, .38); box-shadow: 0 0 calc(22 * var(--u)) rgba(0, 0, 0, .45); pointer-events: none; transition: transform .2s; }
.tcar-s:hover .tcar-play { transform: scale(1.07); }
.tcar-s:not([data-o="0"]) .tcar-play, .tcar-s.playing .tcar-play { display: none; }
.tcar.is-playing .tcar-dots, .tcar.is-playing .tcar-fs { opacity: 0; pointer-events: none; }

/* escudo, contador, flechas, puntos y pantalla completa */
.tcar-crest { position: absolute; z-index: 6; width: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, .5)); }
.tcar-count { position: absolute; z-index: 6; display: flex; align-items: center; justify-content: center; white-space: nowrap; box-sizing: border-box; border-radius: 99px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(24, 24, 28, .74); border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, .24); }
.tcar-count b { font-weight: 800; }
.tcar-nav { position: absolute; z-index: 6; box-sizing: border-box; width: calc(48 * var(--u)); height: calc(48 * var(--u)); padding: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: calc(18 * var(--u)); cursor: pointer; transition: transform .18s, background .18s, box-shadow .18s; }
.tcar-nav:hover { transform: scale(1.09); }
.tcar-nav:focus-visible, .tcar-th:focus-visible, .tcar-fs:focus-visible, .tcar .trd-act:focus-visible, .tcar-follow:focus-visible { outline: 2px solid #ffe08a; outline-offset: 2px; }
.tcar-dots { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); display: flex; align-items: center; pointer-events: none; transition: opacity .2s; }
.tcar-dots i { flex: 0 0 auto; border-radius: 50%; background: rgba(236, 236, 240, .9); transition: width .25s, height .25s, background .25s, box-shadow .25s; }
.tcar-dots i.on { background: var(--tc-gold); box-shadow: 0 0 calc(12 * var(--u)) rgba(253, 190, 21, .65); }
.tcar-fs { position: absolute; z-index: 6; display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer; transition: transform .18s, opacity .2s, background .18s; }
.tcar-fs:hover { transform: scale(1.1); }

/* miniaturas */
.tcar-ths { position: absolute; display: flex; width: max-content; scrollbar-width: none; overflow-x: auto; overscroll-behavior: contain; }
.tcar-ths::-webkit-scrollbar { display: none; }
.tcar-th { position: relative; flex: 0 0 auto; overflow: hidden; padding: 0; box-sizing: border-box; cursor: pointer; background: #0a1830; border: calc(2 * var(--u)) solid rgba(228, 232, 240, .78); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tcar-th:hover { transform: translateY(calc(-2 * var(--u))); }
.tcar-th img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.tcar-th-v { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #10233f, #06101f); }
.tcar-th.on { border-color: #ffe08a; box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255, 226, 140, .9), 0 0 calc(16 * var(--u)) rgba(255, 176, 40, .8); }
.tcar-thp { position: absolute; left: 50%; top: 50%; width: calc(44 * var(--u)); height: calc(44 * var(--u)); margin: calc(-22 * var(--u)) 0 0 calc(-22 * var(--u)); border-radius: 50%; display: grid; place-items: center; padding-left: calc(3 * var(--u)); color: #fff; font-size: calc(17 * var(--u)); background: rgba(22, 14, 12, .72); border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, .36); }

/* autor, texto y acciones */
.tcar-meta { position: absolute; min-width: 0; }
.tcar-who { display: flex; align-items: center; min-width: 0; }
.tcar-av { flex: 0 0 auto; display: block; border-radius: 50%; }
.tcar-av .pfx-avatar { width: 100% !important; height: 100% !important; display: block; box-sizing: border-box; border: calc(2 * var(--u)) solid #fff; background: #0a1830; }
.tcar-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #fff; }
.tcar-nm:hover { text-decoration: underline; }
.tcar-seal { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; color: #3d9bea; line-height: 1; }
.tcar-seal .fa-check { position: absolute; color: #fff; font-size: .48em; }
.tcar .pfx-follow.tcar-follow { flex: 0 0 auto; min-width: 0; padding: 0; box-sizing: border-box; border-radius: 99px; background: transparent; color: var(--tc-tag); border: calc(1.5 * var(--u)) solid var(--tc-tag); box-shadow: none; font-weight: 800; gap: 0; filter: none; backdrop-filter: none; }
.tcar .pfx-follow.tcar-follow:hover:not(:disabled) { background: rgba(253, 190, 21, .16); filter: none; }
.tcar .pfx-follow.tcar-follow .t-off i { display: none; }
.tcar .pfx-follow.tcar-follow .t-off::before { content: "+"; font-weight: 800; font-size: 1.32em; line-height: 1; margin-right: .32em; vertical-align: -.05em; }
.tcar .pfx-follow.tcar-follow.on { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .42); }
.tcar .pfx-follow.tcar-follow.on:hover { background: #b3261e; border-color: #b3261e; color: #fff; }
.tcar-txt { margin: 0; color: #fff; white-space: pre-line; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.tcar-h { color: var(--tc-tag); font-weight: 700; margin-right: .95em; }
.tcar-div { position: absolute; width: calc(1.5 * var(--u)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22) 18%, rgba(255, 255, 255, .22) 82%, rgba(255, 255, 255, 0)); }
.tcar-acts { position: absolute; left: 0; top: 0; width: 100%; height: 0; }
.tcar-acts > .trd-act { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .44em; padding: 0; margin: 0; min-width: 0; border: 0; background: transparent; color: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; text-shadow: none; transition: opacity .15s, transform .15s; }
.tcar-acts > .trd-act:hover { opacity: .82; background: transparent; }
.tcar-acts > .trd-act b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tcar-acts > .trd-act.like.on i { color: #FFC72E; }
.tcar-acts > .trd-act.like.pop i { animation: trdPop .35s; }
.tcar-acts > .tcar-bm.on i { color: var(--tc-tag); }

/* ═══════════════ ESCRITORIO · lienzo 1150×790 ═══════════════ */
@media (min-width: 721px) and (orientation: landscape) {
  /* el escenario se ensancha (se encoge solo si se abren los comentarios) y lo que no es carrusel se desvanece durante el cambio */
  .trd-pl.is-car .trd-pl-stage { width: min(var(--pf-w, 1500px), 100%); flex: 0 1 auto; min-width: 0; }
  /* hueco del mismo ancho que las flechas de la derecha, para que el carrusel quede centrado en la pantalla */
  .trd-pl.is-car .trd-pl-main::before { content: ""; flex: 0 0 46px; }
  .trd-pl.is-car .trd-sl:not(.is-car), .trd-pl:not(.is-car) .trd-sl.is-car { opacity: 0; }

  .tcar { left: calc(50% - calc(575 * var(--u))); top: calc(50% - calc(395 * var(--u))); width: calc(1150 * var(--u)); height: calc(790 * var(--u)); }
  .tcar-view { left: calc(188.5 * var(--u)); top: calc(36 * var(--u)); width: calc(773 * var(--u)); height: calc(477 * var(--u)); perspective: calc(800 * var(--u)); perspective-origin: 50% 50%; }

  .tcar-s { border-radius: calc(32 * var(--u)); }
  .tcar-s[data-o="0"] { box-shadow: 0 0 0 calc(0.6 * var(--u)) rgba(255, 224, 150, .55), 0 0 calc(26 * var(--u)) rgba(255, 168, 45, .5), 0 calc(16 * var(--u)) calc(44 * var(--u)) calc(-12 * var(--u)) rgba(255, 140, 20, .45); }
  /* vecinas: ajustadas a la maqueta (borde exterior ≈175 u fuera de la tarjeta central y ≈90 % de su alto; el interior queda detrás) */
  .tcar-s[data-o="-1"] { z-index: 2; transform: translate(-25.6%, .8%) scale(.67) rotateY(32deg); filter: brightness(.94); box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) calc(-8 * var(--u)) rgba(255, 150, 30, .7); }
  .tcar-s[data-o="1"] { z-index: 2; transform: translate(25.6%, .8%) scale(.67) rotateY(-32deg); filter: brightness(.94); box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) calc(-8 * var(--u)) rgba(255, 150, 30, .7); }
  .tcar-s[data-o="-1"]:hover, .tcar-s[data-o="1"]:hover { filter: brightness(1.08); }
  .tcar-s.is-tall > video { object-fit: contain; background: transparent; }
  .tcar-s.is-tall .tcar-bk { display: block; }
  /* aro dorado + brillo interior (en las vecinas, aro plateado) */
  .tcar-s::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 calc(22 * var(--u)) rgba(255, 176, 60, .36), inset 0 calc(-10 * var(--u)) calc(26 * var(--u)) calc(-8 * var(--u)) rgba(255, 150, 30, .5); }
  .tcar-s::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: calc(2.5 * var(--u)); pointer-events: none; background: linear-gradient(135deg, #fff8d2, #ffe08a 38%, #fff3bf 58%, #ffcf63);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .tcar-s[data-o="-1"]::after, .tcar-s[data-o="1"]::after { padding: calc(2 * var(--u)); background: linear-gradient(180deg, rgba(244, 240, 226, .9), rgba(206, 213, 226, .55) 55%, #ffb44d); }

  .tcar-crest { left: calc(30 * var(--u)); top: calc(17 * var(--u)); height: calc(54 * var(--u)); }
  .tcar-count { right: calc(28 * var(--u)); top: calc(25 * var(--u)); width: calc(66 * var(--u)); height: calc(37 * var(--u)); font-size: calc(21 * var(--u)); }
  .tcar-nav { top: calc(222 * var(--u)); border: calc(2 * var(--u)) solid transparent; font-size: calc(18 * var(--u));
    background: linear-gradient(rgba(5, 16, 36, .68), rgba(5, 16, 36, .68)) padding-box, linear-gradient(135deg, #ffeaa8, #f0b73a) border-box; box-shadow: 0 0 calc(14 * var(--u)) rgba(255, 176, 50, .3); }
  .tcar-nav:hover { background: linear-gradient(rgba(5, 16, 36, .9), rgba(5, 16, 36, .9)) padding-box, linear-gradient(135deg, #fff1c2, #ffc640) border-box; }
  .tcar-nav.prev { left: calc(13 * var(--u)); } .tcar-nav.next { right: calc(12 * var(--u)); }
  .tcar-dots { bottom: calc(21 * var(--u)); gap: calc(10.5 * var(--u)); } .tcar-dots i { width: calc(11 * var(--u)); height: calc(11 * var(--u)); } .tcar-dots i.on { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
  .tcar-fs { right: calc(26 * var(--u)); bottom: calc(21 * var(--u)); width: calc(32 * var(--u)); height: calc(32 * var(--u)); border: 0; background: transparent; font-size: calc(25 * var(--u)); filter: drop-shadow(0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .55)); }

  .tcar-ths { left: 50%; top: calc(533 * var(--u)); transform: translateX(-50%); max-width: calc(773 * var(--u)); gap: calc(13 * var(--u)); padding: calc(6 * var(--u)); }
  .tcar-th { width: calc(107 * var(--u)); height: calc(72 * var(--u)); border-radius: calc(14 * var(--u)); }

  .tcar-meta { left: calc(73.5 * var(--u)); top: calc(631 * var(--u)); width: calc(600 * var(--u)); }
  .tcar-who { gap: calc(13 * var(--u)); height: calc(54 * var(--u)); }
  .tcar-av { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
  .tcar-nm { font-size: calc(20.5 * var(--u)); max-width: calc(270 * var(--u)); }
  .tcar-seal { font-size: calc(23 * var(--u)); margin-left: calc(-4 * var(--u)); }
  .tcar .pfx-follow.tcar-follow { margin-left: calc(16 * var(--u)); height: calc(37 * var(--u)); width: calc(116 * var(--u)); font-size: calc(19 * var(--u)); }
  .tcar-txt { margin: calc(2 * var(--u)) 0 0 calc(5 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); -webkit-line-clamp: 3; }
  .tcar-h { font-size: calc(20 * var(--u)); }
  .tcar-div { left: calc(688.5 * var(--u)); top: calc(640 * var(--u)); height: calc(81 * var(--u)); }
  .tcar-acts > .trd-act { top: calc(669 * var(--u)); font-size: calc(19.5 * var(--u)); }
  .tcar-acts > .trd-act i { font-size: calc(26 * var(--u)); }
  .tcar-acts > :nth-child(1) { left: calc(794.5 * var(--u)); } .tcar-acts > :nth-child(2) { left: calc(901 * var(--u)); } .tcar-acts > :nth-child(3) { left: calc(985 * var(--u)); } .tcar-acts > :nth-child(4) { left: calc(1055 * var(--u)); } .tcar-acts > :nth-child(5) { left: calc(1121.5 * var(--u)); }
  .tcar-acts > :nth-child(4) i { font-size: calc(25 * var(--u)); } .tcar-acts > :nth-child(5) i { font-size: calc(24 * var(--u)); }
}

/* ═══════════════ MÓVIL · lienzo 440×870 (una sola tarjeta: foto 3:4 y debajo los datos) ═══════════════ */
@media (max-width: 720px), (orientation: portrait) {
  .trd-pl-bg::after { background-size: max(100%, 900px) auto, auto, auto; background-position: 40% 100%, 0 0, 0 0; }
  .tcar { left: calc(50% - calc(210 * var(--u))); top: calc(50% - calc(349 * var(--u))); width: calc(420 * var(--u)); height: calc(775 * var(--u)); border-radius: calc(36 * var(--u)); overflow: hidden; background: #000518;
    box-shadow: 0 0 0 calc(0.6 * var(--u)) rgba(255, 224, 150, .5), 0 0 calc(24 * var(--u)) rgba(255, 168, 45, .5), 0 calc(16 * var(--u)) calc(36 * var(--u)) calc(-10 * var(--u)) rgba(255, 140, 20, .6); }
  .tcar::before { content: ""; position: absolute; inset: 0; z-index: 8; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 calc(22 * var(--u)) rgba(255, 176, 60, .34), inset 0 calc(-8 * var(--u)) calc(24 * var(--u)) calc(-8 * var(--u)) rgba(255, 150, 30, .5); }
  .tcar::after { content: ""; position: absolute; inset: 0; z-index: 9; border-radius: inherit; padding: calc(2.5 * var(--u)); pointer-events: none; background: linear-gradient(160deg, #ffffff, #ffe9a6 40%, #fff6d4 62%, #ffcf63);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .tcar-view { left: 0; top: 0; width: 100%; height: calc(558 * var(--u)); }

  .tcar-s[data-o="-1"] { opacity: 0; pointer-events: none; transform: translateX(-14%); }
  .tcar-s[data-o="1"] { opacity: 0; pointer-events: none; transform: translateX(14%); }
  .tcar-s.is-wide > video { object-fit: contain; background: transparent; }
  .tcar-s.is-wide .tcar-bk { display: block; }

  /* el escudo ya no va en la esquina de la foto: queda como marca de agua difuminada en el centro de cada foto o vídeo
     (va debajo del botón de reproducir y no recibe toques; en escritorio sigue el escudo de la esquina de la maqueta) */
  .tcar-crest { left: calc(26 * var(--u)); top: calc(22 * var(--u)); height: calc(52 * var(--u)); }       /* como en la maqueta: el escudo en la esquina de la foto */
  .tcar-s::after { display: none; content: ""; position: absolute; left: 50%; top: 50%; z-index: 0; width: calc(176 * var(--u)); height: calc(131 * var(--u)); transform: translate(-50%, -50%); pointer-events: none;
    background: url('../assets/branding/escudo-oro.png') center / contain no-repeat; opacity: .32; filter: blur(calc(1.3 * var(--u))) drop-shadow(0 0 calc(7 * var(--u)) rgba(0, 0, 0, .4)); }
  .tcar-count { right: calc(29 * var(--u)); top: calc(26 * var(--u)); width: calc(64 * var(--u)); height: calc(36 * var(--u)); font-size: calc(20 * var(--u)); }
  .tcar-nav { top: calc(262 * var(--u)); border: calc(2 * var(--u)) solid rgba(255, 255, 255, .5); background: rgba(22, 22, 26, .58); font-size: calc(18 * var(--u)); }
  .tcar-nav:hover { background: rgba(22, 22, 26, .85); }
  .tcar-nav.prev { left: calc(18 * var(--u)); } .tcar-nav.next { right: calc(18 * var(--u)); }
  .tcar-dots { bottom: calc(18.5 * var(--u)); gap: calc(9 * var(--u)); } .tcar-dots i { width: calc(9.5 * var(--u)); height: calc(9.5 * var(--u)); } .tcar-dots i.on { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
  .tcar-fs { right: calc(22 * var(--u)); bottom: calc(13 * var(--u)); width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(11 * var(--u)); background: rgba(28, 28, 32, .72); border: calc(1 * var(--u)) solid rgba(255, 255, 255, .18); font-size: calc(17 * var(--u)); }
  .tcar-ths, .tcar-div { display: none; }

  .tcar-meta { left: calc(16 * var(--u)); right: calc(17 * var(--u)); top: calc(572 * var(--u)); }
  .tcar-who { gap: calc(9 * var(--u)); height: calc(52 * var(--u)); }
  .tcar-av { width: calc(52 * var(--u)); height: calc(52 * var(--u)); }
  .tcar-nm { font-size: calc(16.8 * var(--u)); }
  .tcar-seal { font-size: calc(18 * var(--u)); margin-left: calc(-2 * var(--u)); }
  .tcar .pfx-follow.tcar-follow { margin-left: auto; height: calc(35 * var(--u)); width: calc(100 * var(--u)); font-size: calc(16 * var(--u)); }
  .tcar-txt { margin: calc(6.5 * var(--u)) 0 0 calc(6 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(33 * var(--u)); -webkit-line-clamp: 2; }
  .tcar-h { font-size: calc(16 * var(--u)); margin-right: .62em; }
  .tcar-acts > .trd-act { top: calc(732 * var(--u)); font-size: calc(17.5 * var(--u)); }
  .tcar-acts > .trd-act i { font-size: calc(24 * var(--u)); }
  .tcar-acts > :nth-child(1) { left: calc(61 * var(--u)); } .tcar-acts > :nth-child(2) { left: calc(158 * var(--u)); } .tcar-acts > :nth-child(3) { left: calc(233 * var(--u)); } .tcar-acts > :nth-child(4) { left: calc(303 * var(--u)); } .tcar-acts > :nth-child(5) { left: calc(380 * var(--u)); }
  .tcar-acts > :nth-child(4) i { font-size: calc(23 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .tcar-s, .tcar-nav, .tcar-th, .tcar-dots i, .trd-pl-stage, .trd-sl, .trd-pl-bg::after, .trd-pl-brand { transition: none !important; }
}

/* ── Una sola foto/vídeo o un audio: la misma tarjeta, sin flechas, puntos, contador ni miniaturas ── */
.tcar.is-one .tcar-fs { display: block; }
.tcar-s.is-audio { cursor: default; background: radial-gradient(120% 90% at 50% 35%, #263C68 0%, #2a0b3a 55%, #0a0414 100%); }
.tcar-s.is-audio .tcar-au { position: absolute; left: 6%; right: 6%; bottom: 7%; width: 88%; height: 14%; min-height: 40px; z-index: 4; opacity: .95; }
.tcar-mic { position: absolute; left: 50%; top: 34%; z-index: 1; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(28px, 5vw, 64px); color: #1a0a22; background: linear-gradient(135deg, #fff3bf, #ffe08a 45%, #fdbe15); box-shadow: 0 0 40px rgba(253, 190, 21, .45); }
.tcar-wave { position: absolute; left: 12%; right: 12%; top: 58%; height: 18%; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3px; pointer-events: none; }
.tcar-wave i { flex: 1; height: var(--h); max-width: 6px; border-radius: 4px; background: linear-gradient(180deg, #ffe08a, #fdbe15); opacity: .8; }
.tcar.is-aud .tcar-fs { display: none; }
@media (max-width: 720px), (orientation: portrait) { .tcar.is-aud .tcar-s.is-audio::after { display: none; } }

/* ── Panel de comentarios del visor: azul oscuro y dorado, como la tarjeta (antes era blanco) ── */
.trd-pl-com { background: linear-gradient(180deg, #0f2a4d 0%, #081a33 100%) !important; color: #eaf0fa !important; border: 1.5px solid rgba(255, 213, 74, .75); box-shadow: 0 0 0 3px rgba(253, 190, 21, .16), 0 0 28px rgba(255, 168, 45, .35), 0 30px 90px rgba(0, 0, 0, .55) !important; }
.trd-pl-com .trd-cm-h { background: transparent !important; border-bottom: 1px solid rgba(255, 213, 74, .28) !important; padding: 16px 18px; }
.trd-pl-com .trd-cm-h h3 { font-size: 19px; font-weight: 800; color: #ffe08a; letter-spacing: -.2px; }
.trd-pl-com .trd-cm-n { color: #fff; opacity: .9; }
.trd-pl-com .trd-cm-x { width: 36px; height: 36px; background: rgba(255, 255, 255, .06) !important; border: 1.5px solid rgba(255, 224, 138, .7); color: #fff; }
.trd-pl-com .trd-cm-x:hover { background: rgba(255, 224, 138, .22) !important; }
.trd-pl-com .trd-cm-body { padding: 14px 16px 18px; scrollbar-width: none; }
.trd-pl-com .ini-cmf { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.trd-pl-com .ini-cmf-in { position: relative; min-height: 48px; background: rgba(255, 255, 255, .08) !important; border: 1.5px solid rgba(255, 255, 255, .22) !important; border-radius: 14px; color: #fff !important; font-size: 14px; line-height: 1.35; padding: 12px 74px 12px 14px; }
.trd-pl-com .ini-cmf-in:focus-within { border-color: #ffd54a !important; box-shadow: 0 0 0 3px rgba(253, 190, 21, .2); }
.trd-pl-com .ini-cmf-in textarea, .trd-pl-com .ini-cmf-in [contenteditable] { color: #fff !important; background: transparent !important; }
.trd-pl-com .ini-cmf-in ::placeholder, .trd-pl-com .ini-cmf-in [data-placeholder]:empty::before { color: rgba(234, 240, 250, .6) !important; }
.trd-pl-com .ini-cmf-tools .pfx-iconbtn { color: #ffe08a !important; }
.trd-pl-com .ini-gifbtn { border-color: #ffe08a !important; color: #ffe08a !important; background: transparent !important; }
.trd-pl-com .ini-cmf-send { background: linear-gradient(#ffd54a, #f9b90b) !important; border: 0 !important; color: #10294a !important; font-weight: 800; border-radius: 12px; min-height: 44px; box-shadow: 0 6px 14px rgba(240, 165, 0, .3); }
.trd-pl-com .ini-c { border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 12px; margin-bottom: 12px; }
.trd-pl-com .ini-nick { color: #ffd54a !important; font-weight: 800; }
.trd-pl-com .ini-user { color: #8fb6e8 !important; }
.trd-pl-com .ini-meta { color: rgba(234, 240, 250, .55) !important; }
.trd-pl-com .ini-c-text { color: #fff !important; font-size: 14.5px; }
.trd-pl-com .ini-cbtn, .trd-pl-com .ini-c-more { color: rgba(234, 240, 250, .7) !important; }
.trd-pl-com .ini-cbtn:hover, .trd-pl-com .ini-c-more:hover { color: #ffd54a !important; }
.trd-pl-com .ini-cbtn.like.on { color: #ff5a6e !important; }
.trd-pl-com .ini-cmmore, .trd-pl-com .ini-cmx a { color: #ffd54a !important; }
.trd-pl-com .pfx-empty, .trd-pl-com .pfx-empty * { color: rgba(234, 240, 250, .7) !important; }

.trd-pl-com .ini-cmf-in input, .trd-pl-com .ini-cmf-in textarea, .trd-pl-com .ini-cmf-in [contenteditable] { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; width: 100%; min-height: 24px; padding: 0 !important; color: #fff !important; font-size: 14px; }
.trd-pl-com .ini-cmf-in ::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trd-pl-com .ini-cmf-tools { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.trd-sl.is-story .tcar-bm { display: none !important; }
