/*
 * FilmParty shell layout — shared contract for every page with .topbar-glass
 * Home-specific hero/carousel rules stay in home.css.
 */

:root {
    --fp-topbar-gap: 0;
    --fp-topbar-height: 62px;
    --fp-topbar-content-gap: 48px;
    --fp-topbar-width: min(1120px, calc(100vw - 24px));
    --fp-content-below-topbar: calc(var(--fp-topbar-gap) + var(--fp-topbar-height) + var(--fp-topbar-content-gap));
}

@media (max-width: 768px) {
    :root {
        --fp-topbar-height: 58px;
        --fp-topbar-content-gap: 44px;
        --fp-topbar-width: calc(100vw - 16px);
    }
}

@media (max-width: 640px) {
    :root {
        --fp-topbar-content-gap: 42px;
    }
}

@media (max-width: 390px) {
    :root {
        --fp-topbar-content-gap: 40px;
        --fp-topbar-width: calc(100vw - 12px);
    }
}

.topbar-glass {
    position: fixed;
    top: var(--fp-topbar-gap);
    left: 50%;
    transform: translateX(-50%);
    width: var(--fp-topbar-width);
    max-width: var(--fp-topbar-width);
    height: var(--fp-topbar-height);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-radius: 24px;
    background: var(--glass-topbar-fill);
    border: 1px solid var(--glass-topbar-border);
    backdrop-filter: blur(26px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

.topbar-right,
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: visible;
}

.desktop-menu-btn,
.search-open-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-small {
    direction: ltr;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-small span {
    color: #ff4d67;
    text-shadow: 0 0 14px rgba(255, 77, 103, 0.6);
}

.brand-small b {
    color: #57a1ff;
    text-shadow: 0 0 14px rgba(87, 161, 255, 0.6);
}

.movie-card-pro {
    flex: 0 0 168px;
    scroll-snap-align: center;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.movie-card-link {
    display: block;
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border-neutral);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px var(--glass-rim);
}

.movie-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card-pro:hover img {
    transform: scale(1.06);
    filter: brightness(0.78);
}

.movie-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%);
    opacity: 0;
    transition: 0.3s;
}

.movie-card-pro:hover .movie-card-shine {
    opacity: 1;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(-6px);
    transition: 0.25s ease;
}

.movie-card-pro:hover .wishlist-heart {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-heart.active {
    color: #ff4d67;
    box-shadow: 0 0 20px rgba(255, 77, 103, 0.35);
}

.movie-card-meta {
    padding: 11px 4px 0;
}

.movie-card-meta h3 {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-info {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 11px;
}

.movie-card-info span {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-border-cool);
}

.movie-card-info .movie-card-imdb-chip {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(236, 228, 205, 0.88);
    background:
        radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.16), transparent 46%),
        linear-gradient(155deg, rgba(250, 204, 21, 0.09), rgba(120, 90, 30, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.06),
        0 2px 5px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .desktop-menu-btn {
        display: none;
    }

    .topbar-glass {
        border-radius: 20px;
    }

    .movie-card-pro {
        flex-basis: 136px;
    }
}
