/* ════════ YouTube ════════ */
.red-yt { --yt-rojo: #FF0033; }
.yt-heroe { position: relative; border-radius: 26px; overflow: hidden; margin: 6px 0 20px; background: var(--panel-solido); border: 1px solid var(--borde); box-shadow: 0 20px 60px var(--red-brillo); }
.yt-banner { height: 150px; background: radial-gradient(circle at 20% 0%, #ff5a5a, transparent 55%), linear-gradient(120deg, #6d0000, #FF0033 55%, #ff7a3d); background-size: cover; background-position: center; position: relative; }
.yt-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.yt-heroe-cuerpo { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 20px; margin-top: -44px; position: relative; flex-wrap: wrap; }
.yt-heroe-cuerpo h1 { font-size: 28px; letter-spacing: -.03em; }
.yt-heroe-av { width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--panel-solido); overflow: hidden; background: var(--panel-3); flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.yt-heroe-av img { width: 100%; height: 100%; object-fit: cover; }
.yt-heroe-desc { color: var(--apagado); font-size: 13px; margin-top: 6px; max-width: 640px; }
.yt-cuerpo { animation: aparecer .4s cubic-bezier(.2,.8,.2,1); }

.yt-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--red-grad); color: #fff; font-weight: 800; font-size: 12px; }
.yt-av.gde { width: 40px; height: 40px; font-size: 14px; }
.yt-av img { width: 100%; height: 100%; object-fit: cover; }

.yt-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.yt-mini-stats.tres { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.yt-mini-stats > div { padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--borde); display: flex; flex-direction: column; gap: 2px; }
.yt-mini-stats b { font-family: var(--fuente-titulo); font-size: 22px; }
.yt-mini-stats span { color: var(--apagado); font-size: 12px; font-weight: 600; }

/* Tarjetas de vídeo */
.yt-video { padding: 10px; }
.yt-video-mini { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.yt-video-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yt-video:hover .yt-video-mini img { transform: scale(1.06); }
.yt-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; }
.yt-dur .ico { width: 12px; height: 12px; }
.yt-video-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; opacity: 0; transition: opacity .2s; }
.yt-video-hover span { display: inline-flex; align-items: center; gap: 5px; }
.yt-video:hover .yt-video-hover { opacity: 1; }
.yt-video-titulo { font-weight: 700; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: 2.7em; }
.yt-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.yt-trunc2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-mini-tabla { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; flex: none; }
.yt-puesto { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--red-grad); color: #fff; font-size: 12px; flex: none; }

/* Shorts */
.yt-shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.yt-short-tarjeta { position: relative; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; transition: transform var(--transicion), box-shadow var(--transicion); }
.yt-short-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 16px 40px var(--red-brillo); }
.yt-short-tarjeta img { width: 100%; height: 100%; object-fit: cover; }
.yt-short-tarjeta-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 12.5px; font-weight: 600; }
.yt-short-tarjeta-pie b { display: block; font-size: 11.5px; opacity: .85; margin-top: 4px; }
.yt-short-tarjeta-priv { position: absolute; top: 8px; left: 8px; }

/* Detalle */
.yt-detalle { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.yt-detalle-medio { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.yt-detalle-medio.short { aspect-ratio: 9/16; max-height: 520px; justify-self: center; width: auto; height: 520px; }
.yt-detalle-medio iframe { width: 100%; height: 100%; border: 0; }

/* Ficha de previsualización */
.yt-previa-caja { display: grid; place-items: center; }
.yt-ficha, .yt-tarjeta-inicio { width: 100%; background: #0f0f0f; color: #f1f1f1; border-radius: 18px; padding: 12px; border: 1px solid #272727; font-family: Roboto, 'Segoe UI', sans-serif; box-shadow: var(--sombra-2); }
.yt-reproductor { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-reproductor img { width: 100%; height: 100%; object-fit: cover; }
.yt-reproductor.peq { width: 100%; }
.yt-sin-mini { display: grid; place-items: center; height: 100%; color: #555; }
.yt-sin-mini .ico { width: 40px; height: 40px; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: .92; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.yt-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.yt-barra i { display: block; height: 100%; background: #FF0033; }
.yt-ficha-titulo, .yt-tarjeta-titulo { font-weight: 700; font-size: 16px; margin-top: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-tarjeta-titulo { font-size: 14px; margin-top: 0; }
.yt-suscribirse { background: #f1f1f1; color: #0f0f0f; padding: 7px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; }
.yt-pildora { display: inline-flex; align-items: center; gap: 6px; background: #272727; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.yt-pildora .ico { width: 15px; height: 15px; }
.yt-desc { background: #272727; border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 12.5px; line-height: 1.5; }
.red-yt .yt-desc { color: #f1f1f1; }
.yt-detalle .yt-desc { background: var(--panel-2); color: var(--texto); white-space: pre-wrap; }
.yt-hashes { margin-top: 6px; display: flex; gap: 8px; color: #3ea6ff; }

/* Short en el teléfono */
.yt-short { position: absolute; inset: 0; background: #000; }
.yt-short video { width: 100%; height: 100%; object-fit: cover; }
.yt-short-vacio { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #666; font-size: 13px; }
.yt-short-vacio .ico { width: 48px; height: 48px; margin: 0 auto; }
.yt-short-top { position: absolute; top: 46px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.yt-short-acciones { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.yt-short-acciones > div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; }
.yt-short-acciones .ico { width: 26px; height: 26px; background: rgba(255,255,255,.14); border-radius: 50%; padding: 9px; box-sizing: content-box; }
.yt-short-disco { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: #333; border: 2px solid #fff; }
.yt-short-disco img { width: 100%; height: 100%; object-fit: cover; }
.yt-short-pie { position: absolute; left: 12px; right: 64px; bottom: 22px; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.yt-short-titulo { margin-top: 8px; font-size: 13.5px; line-height: 1.35; }
.yt-sub-mini { background: #fff; color: #000; padding: 4px 10px; border-radius: 16px; font-size: 11.5px; font-weight: 700; text-shadow: none; }

/* Formulario de subida */
.yt-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border-radius: 12px; border: 1px solid var(--borde); background: rgba(0,0,0,.18); min-height: 44px; align-items: center; }
:root[data-tema="claro"] .yt-etiquetas { background: #fff; }
.yt-etiquetas:focus-within { border-color: var(--red-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-1) 22%, transparent); }
.yt-etiquetas input { flex: 1; min-width: 140px; border: 0; background: transparent; outline: none; padding: 4px 6px; }
.yt-privacidad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.yt-priv { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--borde); background: var(--panel); cursor: pointer; transition: all var(--transicion); }
.yt-priv:hover { border-color: var(--borde-fuerte); transform: translateY(-2px); }
.yt-priv .ico { width: 22px; height: 22px; color: var(--red-1); }
.yt-priv b { font-size: 14px; }
.yt-priv span { font-size: 12px; color: var(--apagado); }
.yt-priv.activo { border-color: transparent; box-shadow: 0 0 0 2px var(--red-1), 0 10px 26px var(--red-brillo); background: color-mix(in srgb, var(--red-1) 12%, var(--panel)); }
.yt-avanzado summary { cursor: pointer; list-style: none; }
.yt-avanzado summary::-webkit-details-marker { display: none; }
.yt-avanzado summary::after { content: '▾'; float: right; color: var(--apagado); }
.yt-avanzado[open] summary::after { content: '▴'; }
@media (max-width: 1350px) { .yt-privacidad { grid-template-columns: repeat(2, 1fr); } }

/* Listas */
.yt-lista { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.col > .yt-lista { flex-direction: row; align-items: center; }
.col > .yt-lista .yt-lista-mini { width: 120px; flex: none; }
.yt-lista.activa { box-shadow: 0 0 0 2px var(--red-1); }
.yt-lista-mini { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--panel-3); }
.yt-lista-mini img { width: 100%; height: 100%; object-fit: cover; }
.yt-lista-num { position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: rgba(0,0,0,.72); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }

/* Comentarios */
.yt-com-texto { margin-top: 4px; white-space: pre-wrap; line-height: 1.5; }
.yt-com-video { width: 150px; flex: none; display: flex; flex-direction: column; gap: 6px; color: var(--apagado); }
.yt-com-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.yt-responder { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--borde); animation: aparecer .3s ease; }
.yt-respuestas { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--borde-fuerte); display: flex; flex-direction: column; gap: 10px; }

/* Demografía */
.yt-demo { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.yt-demo-fila { display: grid; grid-template-columns: 60px 1fr 64px; gap: 12px; align-items: center; font-size: 12.5px; font-weight: 650; }
.yt-demo-fila b { text-align: right; font-family: var(--fuente-mono); }
.yt-demo-barra { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.yt-demo-barra i, .yt-demo + .leyenda i { display: block; height: 100%; }
.g-female { background: #FF4FA3; }
.g-male { background: #3EA6FF; }
.g-user_specified { background: #FFB547; }

/* Ideas */
.yt-ideas-cab { background: linear-gradient(135deg, color-mix(in srgb, var(--red-1) 18%, var(--panel)), var(--panel)); }
.yt-cuota { width: 220px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--borde); }
.yt-idea .yt-video-mini { cursor: pointer; }
