/**
 * Modo Cinema — visual premium (streaming / sala de arte)
 */

body.lista-modo-cinema {
    background: #050505 !important;
}

body.lista-modo-cinema .lista-catalogo--filmes {
    --lista-accent: #f5f5f5;
    --lista-accent-soft: rgba(255, 255, 255, 0.1);
    --lista-accent-border: rgba(255, 255, 255, 0.28);
}

.lista-cinema-main {
    max-width: 80rem;
    padding-top: 1.5rem;
}

body.lista-modo-cinema .lista-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 1rem !important;
    margin-bottom: 0.5rem !important;
}

.lista-cinema-topcard .lista-panel-title {
    color: #fafafa;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.lista-cinema-topcard .lista-panel-title i {
    color: #a3a3a3 !important;
    margin-right: 0.5rem;
}

body.lista-modo-cinema .lista-cats-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.lista-modo-cinema .lista-cat-chip.is-active {
    color: #0a0a0a;
    background: #fafafa;
    border-color: #fafafa;
    box-shadow: none;
}

body.lista-modo-cinema .lista-cat-chip.is-active i {
    color: #0a0a0a;
}

/* —— Hero —— */
.lista-cinema-wrap {
    margin-bottom: 2.5rem;
}

.lista-cinema-hero-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
}

.lista-cinema-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #737373;
}

.lista-cinema-hero-lead {
    margin: 0;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fafafa;
}

.lista-cinema-stage {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.lista-cinema-stage--swipe {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.lista-cinema-stage--swipe.is-swiping {
    cursor: grabbing;
}

.lista-cinema-track {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    min-height: 16rem;
}

@media (min-width: 640px) {
    .lista-cinema-track {
        min-height: 18rem;
    }
}

@media (min-width: 900px) {
    .lista-cinema-track {
        aspect-ratio: 2.4 / 1;
        min-height: 22rem;
    }
}

.lista-cinema-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 0;
}

.lista-cinema-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.lista-cinema-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lista-cinema-backdrop-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.12);
    filter: blur(22px) brightness(0.5) saturate(1.15);
}

.lista-cinema-backdrop-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.45) 32%, rgba(5, 5, 5, 0.08) 58%, transparent 100%),
        linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.72) 28%, rgba(5, 5, 5, 0.25) 52%, transparent 78%);
}

.lista-cinema-hero-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 3rem;
}

@media (min-width: 640px) {
    .lista-cinema-hero-body {
        gap: 1.35rem;
        padding: 1.5rem 1.75rem 3.25rem;
    }
}

@media (min-width: 900px) {
    .lista-cinema-hero-body {
        gap: 1.75rem;
        padding: 2rem 2.5rem 3.5rem;
    }
}

.lista-cinema-hero-poster {
    flex: 0 0 auto;
    width: clamp(5.5rem, 22vw, 9.5rem);
    aspect-ratio: 2 / 3;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lista-cinema-hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.lista-cinema-hero-copy {
    flex: 1;
    min-width: 0;
    max-width: 36rem;
    padding-bottom: 0.15rem;
}

.lista-cinema-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lista-cinema-hero-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.1rem, 2.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.lista-cinema-hero-meta {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #a3a3a3;
}

.lista-cinema-hero-plot {
    margin: 0 0 0.85rem;
    font-size: clamp(0.72rem, 1.6vw, 0.85rem);
    font-weight: 400;
    line-height: 1.5;
    color: #d4d4d4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.lista-cinema-hero-plot--loading {
    min-height: 3.2rem;
    border-radius: 0.25rem;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: lista-cinema-plot-shimmer 1.4s ease-in-out infinite;
}

@keyframes lista-cinema-plot-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.lista-cinema-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.lista-cinema-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0 1.15rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lista-cinema-btn-play {
    background: #fafafa;
    color: #0a0a0a;
}

.lista-cinema-btn-play:hover {
    background: #e5e5e5;
}

.lista-cinema-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.lista-cinema-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.lista-cinema-nav.lista-hero-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    z-index: 4;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.lista-cinema-nav-dots {
    bottom: 0.65rem;
}

.lista-cinema-nav .lista-hero-dots {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(10, 10, 10, 0.55);
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lista-cinema-nav .lista-hero-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    padding: 0;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.lista-cinema-nav .lista-hero-dot-active {
    background: #fafafa;
    width: 1.15rem;
    transform: none;
}

/* —— Programação —— */
.lista-cinema-programacao {
    padding: 0 0.15rem;
}

.lista-cinema-programacao-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.lista-cinema-programacao-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fafafa;
}

.lista-cinema-programacao-count {
    margin: 0;
    font-size: 0.78rem;
    color: #737373;
    white-space: nowrap;
}

.lista-cinema-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
}

@media (min-width: 480px) {
    .lista-cinema-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem 0.85rem;
    }
}

@media (min-width: 768px) {
    .lista-cinema-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lista-cinema-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.35rem 1rem;
    }
}

.lista-cinema-poster-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lista-cinema-poster-media {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #141414;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lista-cinema-poster-card:hover .lista-cinema-poster-media {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.lista-cinema-poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.25s ease;
}

.lista-cinema-poster-card:hover .lista-cinema-poster-media img {
    opacity: 0.92;
}

.lista-cinema-poster-name {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: #d4d4d4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.lista-cinema-poster-card:hover .lista-cinema-poster-name {
    color: #fafafa;
}

@media (min-width: 640px) {
    .lista-cinema-poster-name {
        font-size: 0.82rem;
    }
}

/* —— Hero responsivo —— */
@media (max-width: 899px) {
    .lista-cinema-track {
        aspect-ratio: auto;
        min-height: 19rem;
    }

    .lista-cinema-hero-plot:not(.lista-cinema-hero-plot--loading) {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 5;
    }
}

@media (max-width: 639px) {
    .lista-cinema-track {
        min-height: 22rem;
    }

    .lista-cinema-backdrop-scrim {
        background:
            linear-gradient(to top, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.82) 45%, rgba(5, 5, 5, 0.35) 72%, transparent 100%),
            linear-gradient(to right, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 55%, transparent 100%);
    }

    .lista-cinema-hero-body {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem 2.75rem;
    }

    .lista-cinema-hero-poster {
        width: 4rem;
        align-self: flex-start;
    }

    .lista-cinema-hero-copy {
        max-width: none;
        padding-bottom: 0;
    }

    .lista-cinema-tag {
        margin-bottom: 0.35rem;
        font-size: 0.58rem;
    }

    .lista-cinema-hero-title {
        font-size: clamp(0.95rem, 4.5vw, 1.15rem);
        margin-bottom: 0.25rem;
    }

    .lista-cinema-hero-meta {
        font-size: 0.68rem;
        margin-bottom: 0.35rem;
    }

    .lista-cinema-hero-plot:not(.lista-cinema-hero-plot--loading) {
        font-size: 0.7rem;
        line-height: 1.45;
        margin-bottom: 0;
        margin-top: 0.35rem;
        flex: 0 0 100%;
        width: 100%;
        -webkit-line-clamp: unset;
        display: block;
    }

    .lista-cinema-hero-plot--loading {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 0.35rem;
    }

    .lista-cinema-hero-body {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .lista-cinema-hero-actions {
        gap: 0.4rem;
    }

    .lista-cinema-btn {
        min-height: 2.2rem;
        padding: 0 0.85rem;
        font-size: 0.76rem;
    }

    .lista-cinema-nav.lista-hero-nav {
        padding: 0 0.5rem;
        bottom: 0.55rem;
    }

    .lista-cinema-nav .lista-hero-dot {
        width: 0.38rem;
        height: 0.38rem;
    }

    .lista-cinema-nav .lista-hero-dot-active {
        width: 1rem;
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .lista-cinema-hero-body {
        gap: 0.85rem;
        padding: 1.1rem 1.25rem 3rem;
    }

    .lista-cinema-hero-poster {
        width: clamp(4.5rem, 16vw, 7rem);
    }

    .lista-cinema-hero-copy {
        max-width: 28rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lista-cinema-slide,
    .lista-cinema-poster-media,
    .lista-cinema-poster-media img,
    .lista-cinema-hero-plot--loading {
        transition: none;
        animation: none;
    }
}
