/**
 * Estulin Content Grid – UI aligned with provided HTML mockup
 * Version 2.8.0 - Full Features + Netflix Title Fix + Flat Yellow Lock Icon
 */

:root {
    --est-primary: #FFD700;
    --est-primary-hover: #E6C200;
    --est-bg: #0a0a0a;
    --est-surface: #1d1d1d;
    --est-surface-2: rgba(255, 255, 255, 0.05);
    --est-border: rgba(255, 255, 255, 0.10);
    --est-border-strong: rgba(255, 255, 255, 0.20);
    --est-text: #ffffff;
    --est-muted: #9ca3af;
    --est-radius-xl: 16px;
    --est-radius-2xl: 24px;
}

/* ========================================
   BASE
   ======================================== */
.estulin-content-grid-wrapper {
    color: var(--est-text);
    font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure the shortcode can use the full width of its container */
.estulin-content-grid-wrapper * {
    box-sizing: border-box;
}

.estulin-content-grid-wrapper .content-grid {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: grid;
    gap: 20px;
}

/* Column system based on the shortcode "columns-X" class */
.estulin-content-grid-wrapper .content-grid[class*="columns-"]{
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px){
  .estulin-content-grid-wrapper .content-grid.columns-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estulin-content-grid-wrapper .content-grid.columns-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px){
  .estulin-content-grid-wrapper .content-grid.columns-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .estulin-content-grid-wrapper .content-grid.columns-5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .estulin-content-grid-wrapper .content-grid.columns-6{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Fallback if no columns-* class exists */
.estulin-content-grid-wrapper .content-grid:not([class*="columns-"]){
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.estulin-netflix-style {
    background: var(--est-bg);
    padding: 28px 0 36px;
}

/* ========================================
   NETFLIX LAYOUT (CORREGIDO: SIMPLE -> EXPANDED)
   ======================================== */
.estulin-content-grid-wrapper .content-grid.layout-netflix{
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    
    /* Padding reducido, el portal maneja el overflow */
    padding: 20px 4px;
    
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    position: relative;
    z-index: 1;
}

.estulin-content-grid-wrapper .content-grid.layout-netflix::-webkit-scrollbar{
    display: none;
}

/* SHELL: Overflow visible para que el clon pueda salir */
.estulin-content-grid-wrapper .estulin-netflix-shell{
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

/* FLECHAS: Z-Index 200 (encima de todo) */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-nav{
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
    z-index: 200;
    opacity: 0;
    transition: opacity .18s ease;
}

/* Show arrows only when the user hovers/focuses the row */
.estulin-content-grid-wrapper .estulin-netflix-shell:hover .estulin-netflix-nav,
.estulin-content-grid-wrapper .estulin-netflix-shell:focus-within .estulin-netflix-nav{
    opacity: 1;
}

/* Edge fades */
.estulin-content-grid-wrapper .estulin-netflix-shell::before,
.estulin-content-grid-wrapper .estulin-netflix-shell::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 15;
    opacity: .85;
    transition: opacity .18s ease;
}
.estulin-content-grid-wrapper .estulin-netflix-shell::before{
    left: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95), rgba(10,10,10,0));
}
.estulin-content-grid-wrapper .estulin-netflix-shell::after{
    right: 0;
    background: linear-gradient(to left, rgba(10,10,10,0.95), rgba(10,10,10,0));
}
.estulin-content-grid-wrapper .estulin-netflix-shell:hover::before,
.estulin-content-grid-wrapper .estulin-netflix-shell:hover::after,
.estulin-content-grid-wrapper .estulin-netflix-shell:focus-within::before,
.estulin-content-grid-wrapper .estulin-netflix-shell:focus-within::after{
    opacity: 1;
}

.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-arrow{
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(29,29,29,0.65);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
    user-select: none;
}

.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-arrow:hover{
    transform: scale(1.06);
    background: rgba(29,29,29,0.85);
}

/* Netflix Card Sizing */
.estulin-content-grid-wrapper .content-grid.layout-netflix{
    --est-nfx-gap: 16px;
    --est-nfx-card: 360px;
}
@media (max-width: 1499px){ .estulin-content-grid-wrapper .content-grid.layout-netflix{ --est-nfx-card: 360px; } }
@media (max-width: 999px){ .estulin-content-grid-wrapper .content-grid.layout-netflix{ --est-nfx-card: 320px; } }
@media (max-width: 520px){ .estulin-content-grid-wrapper .content-grid.layout-netflix{ --est-nfx-card: 260px; --est-nfx-gap: 12px; } }

/* === ESTADO NORMAL (Grid Item) === */
.estulin-content-grid-wrapper .content-grid.layout-netflix .content-item{
    scroll-snap-align: start;
    flex: 0 0 var(--est-nfx-card);
    max-width: var(--est-nfx-card);
    position: relative;
    overflow: visible !important;
}

/* En estado normal: transparente, sin borde, SIN CUERPO */
.estulin-content-grid-wrapper .content-grid.layout-netflix .estulin-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.estulin-content-grid-wrapper .content-grid.layout-netflix .estulin-card-body {
    display: none !important; /* Ocultar info por defecto */
}

.estulin-content-grid-wrapper .content-grid.layout-netflix .estulin-card-media {
    margin-bottom: 0 !important;
    border-radius: 12px !important;
    transition: none !important;
}

/* TÍTULO EN MINIATURA (SOLO MODO NORMAL) */
.estulin-netflix-title-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    pointer-events: none;
    
    /* FIX: Z-Index 5 para estar ENCIMA del overlay de bloqueo (z-index 3) */
    z-index: 5;
    
    display: block;
}
.estulin-netflix-title-text {
    font-size: 14px; font-weight: 700; line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* === ESTADO HOVER (Grid Portal Clone) === */
/* El overlay cubre el shell pero deja pasar clics */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-overlay{
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* La tarjeta flotante (clon) */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-floating{
    pointer-events: auto !important;
    position: absolute;
    z-index: 150;
    
    /* Restaurar aspecto de tarjeta completa */
    background: #141414 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 12px !important;
    border-radius: var(--est-radius-2xl) !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8) !important;
    
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    
    /* ANIMACIÓN: Escala y SUBE para desplegar abajo */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    transform: scale(1.1) translateY(-10%);
}

/* MOSTRAR CUERPO en el clon flotante */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-floating .estulin-card-body {
    display: block !important;
    margin-top: 10px;
    animation: estFadeIn 0.2s ease-in;
}
@keyframes estFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* OCULTAR TÍTULO SOBREIMPRESO en el clon (ya está en el cuerpo) */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-floating .estulin-netflix-title-overlay {
    display: none !important;
}

/* Ajuste de imagen en el clon */
.estulin-content-grid-wrapper .estulin-netflix-shell .estulin-netflix-floating .estulin-card-media {
    margin-bottom: 0 !important;
    border-radius: var(--est-radius-xl) !important;
    transform: scale(0.95);
    transform-origin: top center;
}

/* Ocultar el original */
.estulin-content-grid-wrapper .content-grid.layout-netflix .content-item.estulin-netflix-ghost{
    visibility: hidden;
}

/* Prevent themes from messing form controls */
.estulin-content-grid-wrapper select,
.estulin-content-grid-wrapper input,
.estulin-content-grid-wrapper button {
    font-family: inherit;
}

/* ========================================
   FILTROS (Compact frosted)
   ======================================== */
.estulin-filters-wrapper {
    margin-bottom: 22px;
}

.estulin-filters-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-select-dark {
    width: 220px !important;
    appearance: none;
    min-width: 190px;
    padding: 12px 14px;
    background: var(--est-surface);
    border: 1px solid var(--est-border);
    border-radius: 12px;
    color: var(--est-text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.filter-select-dark:hover {
    border-color: rgba(255, 215, 0, 0.45);
}

.filter-select-dark:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}

.search-box-inline {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-input-dark {
    width: 100%;
    padding: 12px 14px 12px 62px !important;
    background: var(--est-surface);
    border: 1px solid var(--est-border);
    border-radius: 12px;
    color: var(--est-text);
    font-size: 14px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.search-input-dark::placeholder { color: var(--est-muted); }

.search-input-dark:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}

.search-icon-dark{
  position:absolute;
  left: 20px;
  top:50%;
  transform:translateY(-50%);
  color:#ffffff;
  opacity:.9;
  font-size:16px;
  pointer-events:none;
}

.btn-filter-dark,
.btn-reset-dark {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.btn-filter-dark {
    background: var(--est-primary);
    color: #000;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.btn-filter-dark:hover {
    background: var(--est-primary-hover);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.40);
}

.btn-reset-dark {
    background: rgba(255, 255, 255, 0.08);
    color: var(--est-text);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-reset-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   GRID (Standard)
   ======================================== */
.content-grid {
    display: grid;
    gap: 18px;
}

.content-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.content-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.content-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ========================================
   CARD (Standard)
   ======================================== */
.estulin-card {
    background: var(--est-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--est-radius-2xl);
    padding: 12px;
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.estulin-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.06);
}

.content-card-wrapper { width: 100%; }

/* Media area */
.estulin-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--est-radius-xl);
    overflow: hidden;
    background: var(--est-surface);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.estulin-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform .5s ease;
}

.estulin-card:hover .estulin-card-media img {
    transform: scale(1.06);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 48px;
    opacity: 0.35;
}

/* Cinematic scrims */
.estulin-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%);
    pointer-events: none;
    opacity: 1;
}

/* Play overlay */
.estulin-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .25s ease;
    background: rgba(0,0,0,0.12);
}

.estulin-card:hover .estulin-play-overlay {
    opacity: 1;
}

.estulin-play-button {
    background: rgba(255, 215, 0, 0.92);
    color: #000;
    border-radius: 999px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: scale(.85);
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.estulin-card:hover .estulin-play-button {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.estulin-play-button .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
    font-size: 30px;
    line-height: 1;
}

/* Locked overlay */
.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 3;
}

/* FIX: Icono de candado amarillo y plano */
.lock-icon {
    font-size: 42px;
    color: var(--est-primary); /* Amarillo #FFD700 */
    animation: estPulse 1.8s ease-in-out infinite;
}

@keyframes estPulse {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}

/* Badges */
.estulin-badges,
.content-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 4;
}

.badge {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 215, 0, 0.18);
    color: var(--est-primary);
    border: 1px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.10);
}

.badge-new { background: rgba(255, 215, 0, 0.22); }
.badge-public { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.40); color: #34d399; }
.badge-plan-basic { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.40); color: #93c5fd; }
.badge-plan-premium { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.40); color: #d8b4fe; }
.badge-plan-vip { background: rgba(251, 146, 60, 0.18); border-color: rgba(251, 146, 60, 0.40); color: #fdba74; }
.badge-plan-finanzas { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.40); color: #34d399; }

/* Card body */
.estulin-card-body {
    padding: 14px 6px 6px;
}

.estulin-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--est-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.estulin-card-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--est-muted);
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.estulin-card-excerpt {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.estulin-card-actions {
    margin-top: 12px;
}

/* Primary button */
.btn-view-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--est-primary);
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.22);
}

.btn-view-yellow:hover {
    background: var(--est-primary-hover);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.38);
    transform: translateY(-1px);
}

.btn-view-yellow:active {
    transform: translateY(0);
}

/* ========================================
   LOAD MORE
   ======================================== */
.estulin-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.btn-load-more {
    background: rgba(255, 255, 255, 0.08);
    color: var(--est-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}

.btn-load-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-load-more:active {
    transform: scale(0.98);
}

/* ========================================
   LOADER
   ======================================== */
.estulin-loader {
    text-align: center;
    padding: 20px 0;
    color: var(--est-muted);
}

.loader-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--est-primary);
    border-radius: 999px;
    margin: 0 auto 10px;
    animation: estSpin 1s linear infinite;
}

@keyframes estSpin {
    to { transform: rotate(360deg); }
}

.estulin-content-grid-wrapper a.btn-view-yellow:visited{color:#0a0a0a !important;-webkit-text-fill-color:#0a0a0a !important;text-decoration:none !important;}
.estulin-content-grid-wrapper a.btn-view-yellow:active{color:#0a0a0a !important;-webkit-text-fill-color:#0a0a0a !important;text-decoration:none !important;}
.estulin-content-grid-wrapper a.btn-view-yellow:focus{color:#0a0a0a !important;-webkit-text-fill-color:#0a0a0a !important;text-decoration:none !important;outline:none !important;}

.btn-load-more:visited{color:#ffffff !important;}
.btn-load-more:active{color:#ffffff !important;}
.btn-load-more:focus{color:#ffffff !important;}

.btn-view-yellow,.btn-load-more,.btn-filter-dark,.btn-reset-dark{ -webkit-tap-highlight-color: transparent; }
.btn-view-yellow:focus,.btn-load-more:focus,.btn-filter-dark:focus,.btn-reset-dark:focus{ outline:none; }

.estulin-content-grid-wrapper .search-input-dark{box-sizing:border-box !important;}

.estulin-content-grid-wrapper a.btn-view-yellow{color:#0a0a0a !important;-webkit-text-fill-color:#0a0a0a !important;text-decoration:none !important;}


.estulin-content-grid-wrapper .content-grid.layout-netflix{
    cursor: grab;
}
.estulin-content-grid-wrapper .content-grid.layout-netflix.is-dragging{
    cursor: grabbing;
}

/* =========================================================
   LIST LAYOUT (RESTORED)
   ========================================================= */
.content-grid.layout-list { grid-template-columns: 1fr !important; gap: 15px; }

.content-item-list {
    display: flex;
    background: var(--est-surface);
    border: 1px solid var(--est-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    gap: 20px;
    align-items: center;
    transition: background 0.2s;
}
.content-item-list:hover { background: var(--est-surface-2); border-color: rgba(255,255,255,0.2); }

.content-thumbnail-list {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.content-thumbnail-list img { width: 100%; height: 100%; object-fit: cover; }

.content-info-list { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.list-header h3 { margin: 0 0 5px 0; font-size: 16px; color: #fff; }
.list-header h3 a { color: #fff; text-decoration: none; }
.content-badges-inline { display: flex; gap: 5px; margin-top: 5px; }
.badge-small { font-size: 9px; padding: 2px 6px; }

.content-actions-list .btn-view-small {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.content-actions-list .btn-view-small:hover { background: var(--est-primary); color: #000; }

@media (max-width: 768px) {
    .content-item-list { flex-direction: column; align-items: flex-start; }
    .content-thumbnail-list { width: 100%; height: 180px; }
    .content-info-list { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
    .content-actions-list { width: 100%; }
    .content-actions-list .btn-view-small { display: block; text-align: center; }
}

/* =========================================================
   MINIMAL LAYOUT (RESTORED)
   ========================================================= */
.content-item-minimal { background: transparent; border-radius: 8px; }
.minimal-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--est-text); padding: 8px; border-radius: 8px; transition: background 0.2s; }
.minimal-link:hover { background: rgba(255,255,255,0.05); }

.minimal-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #000;
}
.minimal-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.minimal-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.minimal-badge { margin-left: auto; }
.badge-tiny { font-size: 8px; padding: 2px 4px; }

/* =========================================================
   QUICK VIEW MODAL (RESTORED)
   ========================================================= */
.quick-view-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }
.modal-content {
    position: relative; background: #1a1a1a; width: 100%; max-width: 900px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden; z-index: 2;
    max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; z-index: 10; }

.quick-view-inner { display: flex; flex-direction: column; }
@media(min-width: 768px) {
    .quick-view-inner { flex-direction: row; }
    .quick-view-thumbnail { width: 50%; }
    .quick-view-info { width: 50%; padding: 40px; }
}
.quick-view-thumbnail { position: relative; min-height: 300px; }
.quick-view-thumbnail img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.quick-view-info { padding: 20px; }
.quick-view-info h2 { margin-top: 0; color: var(--est-primary); }
.quick-view-meta { margin: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.meta-item { display: block; margin-bottom: 5px; font-size: 13px; color: #ccc; }
.quick-view-actions .btn-primary { background: var(--est-primary); color: #000; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 20px; }

/* ========================================
   v2.8.0: Toggle "Solo mi contenido"
   Pure div-based – no <input> involved
   ======================================== */
.estulin-toggle-accessible {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding: 6px 0;
    margin: 0;
    line-height: 1;
}

.etoggle-track {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none !important;
    border-radius: 12px;
    transition: background-color .25s ease, box-shadow .25s ease;
    flex-shrink: 0;
}

.etoggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #9ca3af;
    border: none !important;
    border-radius: 50%;
    transition: transform .25s ease, background-color .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.etoggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .01em;
    transition: color .25s ease;
}

/* Active state */
.estulin-toggle-accessible.is-active .etoggle-track {
    background: var(--est-primary, #FFD700);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.30);
}

.estulin-toggle-accessible.is-active .etoggle-thumb {
    transform: translateX(20px);
    background: #000;
}

.estulin-toggle-accessible.is-active .etoggle-label {
    color: var(--est-primary, #FFD700);
}

/* Focus */
.estulin-toggle-accessible:focus-visible .etoggle-track {
    outline: 2px solid var(--est-primary, #FFD700);
    outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE MOBILE FILTERS
   ========================================================= */
@media (max-width: 768px) {
    .estulin-filters-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .estulin-filters-inline {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: stretch;
    }

    .filter-select-dark {
        width: 100% !important;
        min-width: 0;
    }

    .search-box-inline {
        grid-column: span 2;
        width: 100%;
    }

    .btn-filter-dark,
    .btn-reset-dark {
        grid-column: span 2;
        width: 100%;
    }

    /* v2.8.0: Toggle full width on mobile */
    .estulin-toggle-accessible {
        grid-column: span 2;
        justify-content: center;
        padding: 4px 0;
    }

    .estulin-content-grid-wrapper .content-grid:not(.layout-netflix) {
        padding-left: 20px;
        padding-right: 20px;
    }
}