/* =========================================================
   DETALLE AMPLIADO DE TARJETAS — SOLO ESCRITORIO
========================================================= */

.desktop-card-detail {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.desktop-card-detail[hidden] {
    display: none;
}

.desktop-card-detail.is-open {
    opacity: 1;
    visibility: visible;
}

.desktop-card-detail__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.desktop-card-detail__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(420px, 1fr);
    width: min(920px, 92vw);
    max-height: min(780px, 88vh);
    overflow: hidden;
    border: 1px solid #303038;
    border-radius: 14px;
    background: #111114;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .72);
    transform: translateY(12px) scale(.985);
    transition: transform .18s ease;
}

.desktop-card-detail.is-open .desktop-card-detail__panel {
    transform: translateY(0) scale(1);
}

.desktop-card-detail__cover-wrap {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #050505;
}

.desktop-card-detail__cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
}

.desktop-card-detail__content {
    min-width: 0;
    overflow-y: auto;
    padding: 44px 42px 38px;
    scrollbar-width: thin;
}

.desktop-card-detail__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 35, 39, .94);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.desktop-card-detail__close:hover,
.desktop-card-detail__close:focus-visible {
    background: #303036;
    outline: 2px solid rgba(255, 255, 255, .18);
    outline-offset: 2px;
}

.desktop-card-detail__title {
    margin: 0 56px 10px 0;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.12;
    font-weight: 800;
}

.desktop-card-detail__type {
    margin: 0 0 14px;
    color: #d6d6da;
    font-size: 14px;
    line-height: 1.45;
}

.desktop-card-detail__platform,
.desktop-card-detail__category {
    margin: 0 0 9px;
    color: #d6d6da;
    font-size: 14px;
    line-height: 1.45;
}

.desktop-card-detail__views {
    margin: 18px 0 26px;
    color: #bdbdc4;
    font-size: 13px;
    font-weight: 700;
}

.desktop-card-detail__description-wrap {
    padding-top: 22px;
    border-top: 1px solid #29292f;
}

.desktop-card-detail__description-wrap h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.desktop-card-detail__description {
    margin: 0;
    color: #d0d0d5;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.desktop-card-detail__actions {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.desktop-card-detail__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 118px;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease;
}

.desktop-card-detail__play:hover {
    background: #e8e8e8;
    transform: scale(1.03);
}

body.desktop-card-detail-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .desktop-card-detail {
        display: none !important;
    }
}

@media (min-width: 601px) and (max-width: 850px) {
    .desktop-card-detail {
        padding: 20px;
    }

    .desktop-card-detail__panel {
        grid-template-columns: 280px minmax(0, 1fr);
        width: 94vw;
    }

    .desktop-card-detail__cover-wrap,
    .desktop-card-detail__cover {
        min-height: 420px;
    }

    .desktop-card-detail__content {
        padding: 38px 28px 30px;
    }
}
