@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;
}

/* ============================================================
   BOTTOM SHEET (COMENTÁRIOS E AVALIAÇÕES) - ADICIONADO
   ============================================================ */
#sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#sheet-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80vh;
    max-height: 85vh;
    background: #141414;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 310;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
    touch-action: pan-y;
}

#bottom-sheet.visible {
    transform: translateY(0);
}

#bottom-sheet.dragging {
    transition: none;
}

.sheet-handle-area {
    padding: 12px 0 6px 0;
    display: flex;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    touch-action: none;
}

.sheet-handle {
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
}

.sheet-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sheet-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: color 0.2s;
}

.sheet-tab.active {
    color: #fff;
}

.sheet-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #E50914;
    border-radius: 2px;
}

.sheet-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    overscroll-behavior: contain;
}

.sheet-tab-content.active {
    display: block;
}

/* RATING FORM */
.rating-form {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rating-form-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.rating-stars-input {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.rating-star {
    font-size: 28px;
    color: #444;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.rating-star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-comment-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 13px;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.rating-comment-input:focus {
    border-color: rgba(229, 9, 20, 0.5);
}

.rating-submit-btn {
    background: #E50914;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.rating-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ITENS DE COMENTÁRIO E AVALIAÇÃO */
.comment-item, .rating-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.comment-date {
    font-size: 11px;
    color: #666;
}

.comment-handle {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.comment-action-btn.liked {
    color: #1e88e5;
}

.comment-action-btn.disliked {
    color: #e53935;
}

.rating-stars-display {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 2px;
    margin: 4px 0 6px 0;
}

.star-filled { color: #fbbf24; }
.star-empty { color: #444; }

/* INPUT AREA (RODAPÉ) */
.sheet-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sheet-input-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.sheet-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.sheet-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.sheet-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E50914;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sheet-send-btn:active {
    transform: scale(0.9);
}

/* ============================================================
   FAB DE COMENTÁRIOS
   ============================================================ */
#fab-comment {
    position: fixed !important;
    bottom: 84px !important;
    right: 18px !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #E50914 0%, #b30008 100%) !important;
    color: #fff !important;
    display: none; /* Escondido por padrão */
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4), 0 4px 12px rgba(0,0,0,0.4) !important;
    z-index: 210 !important;
    transition: transform 0.15s ease, background 0.2s ease;
}

#fab-comment.visible {
    display: flex !important;
}

#fab-comment:active {
    transform: scale(0.9);
}