.hp-overlay {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.hp-overlay.hp-show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hp-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}
.hp-media.hp-portrait-mode {
    aspect-ratio: 2/3;
}
.hp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-media.hp-portrait-mode img {
    object-fit: contain;
    background: #000;
}
.hp-media video,
.hp-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.hp-media video.hp-media-show,
.hp-media iframe.hp-media-show {
    opacity: 1;
}
.hp-media::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(24,24,24,0.95) 0%, rgba(24,24,24,0.15) 60%, transparent 100%);
    pointer-events: none;
}

.hp-body {
    padding: 14px 16px 16px;
}
.hp-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.hp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .8rem;
    color: #d2d2d2;
    margin-bottom: 8px;
}
.hp-meta .hp-rating {
    color: #46d369;
    font-weight: 600;
}
.hp-meta .hp-censor {
    border: 1px solid #6a6a6a;
    padding: 0 5px;
    border-radius: 2px;
    font-size: .7rem;
}
.hp-genres {
    font-size: .8rem;
    color: #a3a3a3;
    margin-bottom: 10px;
}
.hp-desc {
    font-size: .8rem;
    color: #c7c7c7;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .15s ease;
}
.hp-play-btn:hover {
    background: #d2d2d2;
    color: #000;
}

@media (hover: none), (pointer: coarse) {
    .hp-overlay { display: none !important; }
}

.streamit-card.hp-suppress .card-description {
    opacity: 0 !important;
    transform: translateY(100%) !important;
}

.hp-mute-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: rgba(24,24,24,0.6);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s ease, border-color .15s ease;
}
.hp-mute-btn.hp-mute-btn-show {
    display: flex;
}
.hp-mute-btn:hover {
    background: rgba(24,24,24,0.9);
    border-color: #fff;
}
