﻿dialog {
    border: none;
    border-radius: 20px;
    padding: 0;
    margin: 0 auto;
    top: 20%;
    max-width: 600px;
    width: 92%;
    background: linear-gradient(145deg, #ffffff, #fff);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0;
    animation: zoomFadeIn 0.95s cubic-bezier(.2, .9, .3, 1) forwards;
}

@keyframes zoomFadeIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

dialog.closing {
    animation: zoomFadeOut 0.25s ease forwards;
}

@keyframes zoomFadeOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.85);
        opacity: 0;
    }
}


dialog:-internal-dialog-in-top-layer::backdrop {
    position: fixed;
    background-color: rgb(0 0 0 / 53%);
    inset: 0px;
}

.poster-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: url('') center/cover;
}

.poster-content {
    padding: 10px 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.poster-title {
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #00B9B5;
    gap:2px;
}
.poster-desc {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.5
}

.poster-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

button {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s
}

    button:hover {
        transform: translateY(-2px)
    }

.btn-primary {
    background: linear-gradient(90deg,#06b6d4,#3b82f6);
    color: #fff;
    box-shadow: 0 3px 10px rgba(59,130,246,0.3)
}

.btn-ghost {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155
}

.poster-footer {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background .2s;
}

    .close-btn:hover {
        background: #e2e8f0
    }

@media (max-width:500px) {
    .poster-title {
        font-size: 22px
    }

    .poster-desc {
        font-size: 15px
    }
}
