@keyframes skeletonPulse { 0%{opacity:.6} 50%{opacity:.2} 100%{opacity:.6} }
.skeleton-loader { background: #222; animation: skeletonPulse 1.2s ease-in-out infinite; }
.skeleton-block { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; border-radius: 6px; }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   GRID DE POSTERS
   ============================================================ */
.grid-posters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}
.grid-posters > * {
    min-width: 0 !important;
    width: 100% !important;
}
.poster-cell {
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 180px;
    width: 100%;
}

/* ============================================================
   MEDIA CARD
   ============================================================ */
.media-card {
    flex: none;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,.6);
    content-visibility: auto;
    contain-intrinsic-size: 180px;
}
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-card-poster {
    width: 100% !important;
    aspect-ratio: 2 / 3;
    height: auto !important;
}
.badge-score { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.85); padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; color: #fbbf24; }

/* ============================================================
   HOME — seções com content-visibility
   ============================================================ */
.home-section {
    content-visibility: auto;
    contain-intrinsic-size: 240px;
}

/* ============================================================
   TOAST
   ============================================================ */
#venus-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translate(-50%, 20px);
    background: rgba(20,20,20,0.96);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    max-width: 82vw;
    text-align: center;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
#venus-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   CLASSIFICAÇÃO INDICATIVA
   ============================================================ */
.rating-badge-img {
    display: inline-block !important;
    width: 22px !important;
    height: 20px !important;
    max-width: 22px !important;
    max-height: 20px !important;
    min-width: 22px;
    min-height: 20px;
    object-fit: contain !important;
    vertical-align: middle;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.rating-badge-img.small { width: 22px !important; height: 20px !important; max-width: 22px !important; max-height: 20px !important; }
.rating-badge-img.large {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.meta-line-top .rating-badge-img,
.hero-meta .rating-badge-img,
.vp-pause-meta .rating-badge-img {
    width: 22px !important;
    height: 20px !important;
    max-width: 22px !important;
    max-height: 20px !important;
}

/* ============================================================
   BADGE TOP 10
   ============================================================ */
.top10-badge {
    display: block !important;
    object-fit: contain !important;
    pointer-events: none;
    user-select: none;
    z-index: 8;
}
.top10-badge.card {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 44px !important;
    height: auto !important;
    max-width: 44px !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.85));
}
.top10-badge.hero {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 auto 8px auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.9));
}

.collection-title {
    font-family: 'Bebas Neue', 'Impact', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1.8px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    padding: 0 20px;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.grid-3-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.card-item { cursor: pointer; transition: transform 0.15s ease; }
.card-item:active { transform: scale(0.95); }
.card-poster { width: 100%; aspect-ratio: 2/3; position: relative; overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skeleton-card { width: 100%; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
.vc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vc-grid > * { content-visibility: auto; contain-intrinsic-size: 220px; contain: layout paint style; transform: translateZ(0); }
.vc-sentinel { height: 80px; display: flex; align-items: center; justify-content: center; }
.vc-loader { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.12); border-top-color: #E50914; animation: vcSpin 0.9s linear infinite; display: none; }
.vc-loader.active { display: block; }
@keyframes vcSpin { to { transform: rotate(360deg); } }
.vc-end { text-align: center; padding: 24px 0; color: #555; font-size: 12px; letter-spacing: 0.5px; display: none; }
.vc-end.active { display: block; }

.genre-item-title,
.similar-title {
    display: none !important;
}

/* ============================================================
   MODAL DE CONFIRMAÇÃO
   ============================================================ */
.vc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.vc-confirm-overlay.visible { opacity: 1; }

.vc-confirm-box {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.9);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.vc-confirm-overlay.visible .vc-confirm-box {
    transform: scale(1);
}

.vc-confirm-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.vc-confirm-message {
    font-size: 14px;
    color: #b3b3b3;
    line-height: 1.5;
    margin-bottom: 22px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.vc-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.vc-confirm-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.1s, background 0.15s;
}
.vc-confirm-btn:active { transform: scale(0.96); }

.vc-confirm-cancel {
    background: rgba(255,255,255,0.08);
    color: #ccc;
}
.vc-confirm-cancel:active { background: rgba(255,255,255,0.15); }

.vc-confirm-ok {
    background: #E50914;
    color: #fff;
}
.vc-confirm-ok:active { background: #c40812; }

.vc-confirm-danger {
    background: #E50914;
    color: #fff;
}