body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.logo-font {
    font-family: ui-rounded, "Segoe UI", system-ui, sans-serif;
}

.hero-banner {
    background-image:
        radial-gradient(circle at 18% 35%, rgba(236, 72, 153, .32), transparent 36%),
        radial-gradient(circle at 75% 28%, rgba(139, 92, 246, .35), transparent 38%),
        linear-gradient(135deg, #18181b, #09090b 58%, #1f1235);
}

.local-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .vitrine-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-color: rgb(63 63 70) rgb(24 24 27);
        scrollbar-width: thin;
    }

    .vitrine-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .vitrine-sidebar::-webkit-scrollbar-track {
        background: rgb(24 24 27);
    }

    .vitrine-sidebar::-webkit-scrollbar-thumb {
        background: rgb(63 63 70);
        border-radius: 4px;
    }
}

.genre-item {
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.genre-item:hover {
    background-color: rgb(236 72 153);
    color: white;
    transform: scale(1.03);
}

.year-item {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-sidebar {
    transition: color 0.15s ease;
}

.category-sidebar.active {
    color: rgb(244 114 182);
    font-weight: 600;
}

.genre-item.active {
    background-color: rgb(236 72 153);
    color: white;
}

.year-item.active {
    background-color: white;
    color: black;
}

.catalog-load-more {
    text-align: center;
    padding: 1.5rem 0 2rem;
    color: rgb(161 161 170);
    font-size: 0.875rem;
}

.scroll-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(236 72 153), rgb(139 92 246));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-to-top:hover {
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.35);
    transform: translateY(-2px);
}

.scroll-to-top.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

body.movie-modal-open .scroll-to-top {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .scroll-to-top {
        right: 0.875rem;
        bottom: 0.875rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

.movie-card-poster {
    background: rgb(39 39 42);
}

body.movie-modal-open {
    overflow: hidden;
}

.movie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
}

.movie-modal {
    background: rgb(24 24 27);
    border-radius: 1.5rem;
    width: min(1320px, 98vw);
    height: 94vh;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.movie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.movie-modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.35;
}

.movie-modal-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.movie-modal-close:hover {
    color: #fff;
}

.movie-modal-body {
    padding: 1rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.movie-detail-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1rem;
    height: 100%;
    min-height: 0;
}

.movie-detail-player-col {
    min-height: 0;
    min-width: 0;
    display: flex;
}

.movie-detail-player {
    flex: 1;
    width: 100%;
    min-height: 0;
    position: relative;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
}

.movie-player-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player-mount--html,
.movie-player-html-wrap {
    width: 100%;
    height: 100%;
}

.movie-detail-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-color: rgb(63 63 70) rgb(24 24 27);
    scrollbar-width: thin;
}

.movie-detail-scroll::-webkit-scrollbar {
    width: 8px;
}

.movie-detail-scroll::-webkit-scrollbar-track {
    background: rgb(24 24 27);
}

.movie-detail-scroll::-webkit-scrollbar-thumb {
    background: rgb(63 63 70);
    border-radius: 4px;
}

.movie-detail-poster-wrap {
    flex-shrink: 0;
}

.movie-detail-poster {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 1rem;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.movie-detail-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgb(212 212 216);
}

.movie-detail-meta li {
    margin: 0;
    word-break: break-word;
}

.movie-detail-meta strong {
    color: #fff;
    font-weight: 600;
}

.movie-detail-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgb(212 212 216);
    white-space: pre-wrap;
    word-break: break-word;
}

.mh-player-shell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mh-player-shell iframe,
.movie-player-iframe,
.movie-detail-player iframe,
.movie-player-mount iframe,
#movie-player-slot iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    display: block;
}

.mh-playback-layer {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.mh-playback-v {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
    pointer-events: none;
}

.movie-detail-empty {
    color: rgb(161 161 170);
    font-size: 0.95rem;
    padding: 1rem;
    text-align: center;
}

@media (max-width: 900px) {
    .movie-modal {
        width: 100%;
        height: 96vh;
        max-height: 96vh;
        border-radius: 1rem;
    }

    .movie-detail-split {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 42vh) minmax(0, 1fr);
    }

    .movie-detail-poster {
        max-width: 140px;
    }

    .movie-detail-meta {
        font-size: 0.875rem;
    }
}
