/* =========================================================
   vn.css — the file-explorer icon grid + the review popup
========================================================= */

.vn-explorer {
    width: calc(100% - 26px);
    margin-left: 26px;
    margin-top: 50px;
    height: calc(100% - 50px - 36px);  
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 26px 22px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;  
    opacity: 0;
    animation: contentFade .8s ease .15s forwards;
}

.vn-explorer::-webkit-scrollbar { display: none; }

.vn-file {
    width: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #eaeaea;
    cursor: pointer;
    transition: transform .15s ease;
}

.vn-file img {
    width: 115px;
    display: block;
    transition: transform .15s ease, opacity .15s ease;
}

.vn-file p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    opacity: .85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vn-file:hover { transform: translateY(-2px); }
.vn-file:hover img { transform: scale(1.06); }
.vn-file:hover p { opacity: 1; }
.vn-file:active { transform: translateY(0) scale(.97); }


/* the review popup  */

.vn-review {
    position: fixed;
    top: 150px;
    transform: scale(var(--ui-scale));
    transform-origin: top left;
    width: 300px;
    display: flex;
    flex-direction: column;
    background: #2e2e2e;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    overflow: hidden;
    z-index: 2000;
    color: #eaeaea;
}

@keyframes vnReviewOpen {
    from { opacity: 0; transform: scale(calc(var(--ui-scale) * 0.92)); }
    to   { opacity: 1; transform: scale(var(--ui-scale)); }
}

.vn-review.is-opening {
    animation: vnReviewOpen 280ms cubic-bezier(.22, 1, .36, 1) both;
}

.vn-review__bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding-left: 8px;
    background: #626262;
    font-size: 14px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.vn-review__bar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0; 
}

.vn-review__bar-title img {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.vn-review__bar-title span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vn-review__bar:active { cursor: grabbing; }

.vn-review__close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-left: 1px solid #333;
    color: #eaeaea;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.vn-review__close:hover { background: rgba(255, 255, 255, .1); }

.vn-review__cover {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.vn-review__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vn-review__body {
    flex: 1;
    min-height: 0;   
    padding: 12px 14px 16px;
    overflow-y: auto;
}

.vn-review__resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    background: repeating-linear-gradient(
        135deg,
        transparent 0px, transparent 2px,
        rgba(234, 234, 234, .6) 2px, rgba(234, 234, 234, .6) 3px,
        transparent 3px, transparent 6px
    );
}

.vn-review__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(234, 234, 234, .75);
}

.vn-review__rating { letter-spacing: 1px; }

.vn-review__field { margin-bottom: 10px; }
.vn-review__field:last-child { margin-bottom: 0; }

.vn-review__field h4 {
    margin: 0 0 2px;
    font-family: "Mate SC", serif;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .02em;
    color: rgba(234, 234, 234, .65);
}

.vn-review__field p,
.vn-review__body p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    line-height: 1.4;
}