/* Premium Glassmorphism Popover Menu */
.htm-action-popover {
    position: absolute;
    width: 180px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow: hidden;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: htm-popover-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

@keyframes htm-popover-appear {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.htm-action-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.htm-action-item-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.htm-action-item-btn .material-symbols-outlined {
    font-size: 18px;
    color: #94a3b8;
    transition: color 0.15s;
}

.htm-action-item-btn:hover .material-symbols-outlined {
    color: #ffffff;
}

/* Specific actions styling */
.htm-action-item-btn.delete-action {
    color: #fda4af;
}

.htm-action-item-btn.delete-action .material-symbols-outlined {
    color: #f43f5e;
}

.htm-action-item-btn.delete-action:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #ffe4e6;
}

.htm-action-item-btn.delete-action:hover .material-symbols-outlined {
    color: #ff859b;
}

/* Delete confirmation panel */
.htm-popover-delete-confirm {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: htm-fade-in 0.15s ease-out;
}

@keyframes htm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.htm-confirm-title {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 2px;
}

.htm-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.htm-confirm-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-align: center;
}

.htm-confirm-yes {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.htm-confirm-yes:hover {
    background: #e11d48;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.htm-confirm-no {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.htm-confirm-no:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Fade out animation for card elements */
.htm-upcoming-item.fade-out,
.htm-stream-item.fade-out {
    opacity: 0 !important;
    transform: scale(0.95) translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}
