/* N16: Netflix-style hover preview card.
   Rendered as a single body-level portal so it escapes .horizontal-scroll overflow clipping. */
.hp-portal {
    position: fixed;
    z-index: 4000;
    border-radius: 10px;
    overflow: hidden;
    background: #141414;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: scale(0.92);
    transform-origin: center center;
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
    display: none;
    color: #fff;
    font-family: inherit;
}
.hp-portal.hp-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.hp-poster {
    width: 100%;
    height: 58%;
    object-fit: cover;
    display: block;
    background: #222;
}
.hp-body {
    padding: 10px 12px 12px;
}
.hp-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    color: #bcbcbc;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.hp-meta .hp-rating { color: #ffd24a; }
.hp-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    height: 34px;
    padding: 0 12px;
    transition: filter .15s ease, background .15s ease;
    font-family: inherit;
}
.hp-btn:hover { filter: brightness(1.12); }
.hp-btn-play {
    background: #fff;
    color: #111;
    flex: 1 1 auto;
}
.hp-btn-icon {
    width: 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex: 0 0 auto;
}
.hp-btn-icon.hp-active {
    background: #e50914;
    border-color: #e50914;
}
@media (hover: none), (pointer: coarse) {
    .hp-portal { display: none !important; }
}
