/* ============================================================
   HERO / PEEK CAROUSEL
   ============================================================ */
.hero-wrapper { position: relative; width: 100%; margin-bottom: 0; }

.hero-stack {
    position: relative;
    width: 100%;
    height: 520px;
    margin: 20px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    isolation: isolate;
}

.hero-card {
    position: absolute;
    width: calc(100% - 60px);
    max-width: 440px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.35s ease;
    will-change: transform, opacity;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.75);
}

/* Esqueleto original */
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #141414 25%, #262626 50%, #141414 75%);
    background-size: 200% 100%;
    animation: heroShimmer 1.5s ease-in-out infinite;
    z-index: 6;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.hero-card.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes heroShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

.hero-card.active {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    z-index: 10;
    opacity: 1;
}
.hero-card.active::after { opacity: 0; }

.hero-card.next-1 {
    transform: translate3d(52%, 0, 0) scale3d(0.92, 0.92, 1);
    z-index: 9;
    opacity: 0.9;
}
.hero-card.next-1::after { opacity: 0.35; }

.hero-card.next-2 {
    transform: translate3d(96%, 0, 0) scale3d(0.84, 0.84, 1);
    z-index: 8;
    opacity: 0.6;
}
.hero-card.next-2::after { opacity: 0.55; }

.hero-card.next-3 {
    transform: translate3d(132%, 0, 0) scale3d(0.76, 0.76, 1);
    z-index: 7;
    opacity: 0.35;
}
.hero-card.next-3::after { opacity: 0.7; }

.hero-card.prev-1 {
    transform: translate3d(-52%, 0, 0) scale3d(0.92, 0.92, 1);
    z-index: 9;
    opacity: 0.9;
}
.hero-card.prev-1::after { opacity: 0.35; }

.hero-card.prev-2 {
    transform: translate3d(-96%, 0, 0) scale3d(0.84, 0.84, 1);
    z-index: 8;
    opacity: 0.6;
}
.hero-card.prev-2::after { opacity: 0.55; }

.hero-card.prev-3 {
    transform: translate3d(-132%, 0, 0) scale3d(0.76, 0.76, 1);
    z-index: 7;
    opacity: 0.35;
}
.hero-card.prev-3::after { opacity: 0.7; }

.hero-card.hidden-card {
    transform: translate3d(0, 0, 0) scale3d(0.5, 0.5, 1);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-card .hero-bg-blur {
    display: none !important;
}

.hero-card .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 2;
    pointer-events: none;
    opacity: 1; /* ⚡ Deixa 1 para aparecer na hora */
    transition: opacity 0.3s ease;
}

.hero-card .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.98) 0%,
        rgba(10,10,10,0.75) 20%,
        rgba(10,10,10,0.35) 45%,
        transparent 70%
    );
    z-index: 3;
    pointer-events: none;
}

.hero-card .hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-card .hero-logo {
    max-height: 70px;
    max-width: 82%;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.95));
    z-index: 5;
    transition: opacity 0.3s ease;
}
.hero-card .hero-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 16px rgba(0,0,0,1);
    transition: opacity 0.3s ease;
}
.hero-card .hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,1);
    flex-wrap: wrap;
    transition: opacity 0.3s ease;
}
.hero-card .imdb-badge {
    background: #f5c518;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
}
.hero-card .meta-dot { opacity: 0.5; }

.hero-card .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-card.active .hero-actions {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.hero-card:not(.active) .hero-meta { opacity: 0.3; }
.hero-card:not(.active) .hero-logo,
.hero-card:not(.active) .hero-title { opacity: 0.5; }

.hero-card .btn-play {
    flex: 1;
    max-width: 200px;
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: transform 0.15s;
}
.hero-card .btn-play:active { transform: scale(0.96); background: #e6e6e6; }

.hero-card .btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.hero-card .btn-icon:active { transform: scale(0.92); background: rgba(255,255,255,0.25); }

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 50;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition: transform 0.15s, background 0.15s;
}
.hero-nav-btn:active { transform: translateY(-50%) scale(0.9); background: rgba(0,0,0,0.85); }
.hero-nav-prev { left: 8px; }
.hero-nav-next { right: 8px; }

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 6px 0 12px 0;
}
.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.4s ease;
    border: none;
    padding: 0;
    cursor: pointer;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ⚡ SKELETON DO HERO CORRIGIDO (Mesmas proporções do Card) */
.hero-skeleton-card {
    position: absolute;
    width: calc(100% - 60px); /* Igual ao card */
    max-width: 440px;
    height: 100%;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}
.hero-skeleton-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #141414 25%, #262626 50%, #141414 75%);
    background-size: 200% 100%;
    animation: heroShimmer 1.5s ease-in-out infinite;
}
.hero-skeleton-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-skeleton-logo { width: 160px; height: 50px; border-radius: 8px; background: #2a2a2a; margin-bottom: 10px; }
.hero-skeleton-title { width: 220px; height: 24px; border-radius: 6px; background: #2a2a2a; margin-bottom: 14px; }
.hero-skeleton-meta-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.hero-skeleton-meta-row .skeleton-block { background: #2a2a2a; }
.hero-skeleton-actions { display: flex; gap: 8px; width: 100%; justify-content: center; }
.hero-skeleton-btn-play { width: 200px; height: 44px; border-radius: 10px; background: #2a2a2a; }
.hero-skeleton-btn-icon { width: 44px; height: 44px; border-radius: 10px; background: #2a2a2a; }

/* ============================================================
   CATEGORIA CARDS
   ============================================================ */
.category-card {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 18px;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #E50914 0%, #ff3b46 45%, #b30008 100%);
    box-shadow: 0 4px 14px rgba(229,9,20,0.35), inset 0 0 0 1px rgba(255,255,255,0.18);
    cursor: pointer;
    transition: transform 0.15s ease;
    white-space: nowrap;
    contain: layout paint style;
    transform: translateZ(0);
}
.category-card:active { transform: scale(0.94) translateZ(0); }
.category-card::after { display: none; }
.category-card-name {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    z-index: 2;
    letter-spacing: 0.3px;
    position: relative;
}
.category-card-placeholder { flex: none; width: 100px; height: 56px; border-radius: 9px; }

.category-skeleton {
    flex: none;
    width: 90px;
    height: 56px;
    border-radius: 9px;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: categoryShimmer 1.5s ease-in-out infinite;
}
@keyframes categoryShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.media-card {
    background: linear-gradient(90deg, #141414 25%, #262626 50%, #141414 75%);
    background-size: 200% 100%;
    animation: categoryShimmer 1.5s ease-in-out infinite;
}
.media-card img {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.media-card img.loaded {
    opacity: 1;
}

.top10-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 16px 20px 24px 56px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.top10-carousel::-webkit-scrollbar { display: none; }
.top10-item {
    flex: none;
    position: relative;
    width: 112px;
    height: 176px;
    scroll-snap-align: start;
    cursor: pointer;
}
.top-number-badge-img {
    position: absolute;
    bottom: -6px;
    left: -18px;
    width: 78px;
    height: auto;
    z-index: 10;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0px #000) drop-shadow(6px 6px 12px rgba(0,0,0,0.95));
}

@media (max-width: 480px) {
    .hero-stack { height: 480px; }
    .hero-card { width: calc(100% - 70px); }
    .hero-card .hero-logo { max-height: 60px; }
    .hero-card .hero-title { font-size: 20px; }
    .hero-nav-btn { width: 34px; height: 34px; font-size: 13px; }
    .hero-nav-prev { left: 4px; }
    .hero-nav-next { right: 4px; }
    .hero-skeleton-card { width: calc(100% - 70px); }
    .hero-skeleton-logo { width: 130px; height: 44px; }
    .hero-skeleton-title { width: 180px; height: 22px; }
    .hero-skeleton-btn-play { width: 150px; height: 42px; }
    .hero-skeleton-btn-icon { width: 42px; height: 42px; }
}