.yiv-wrap {
    width: 100%;
    background: #080808;
    color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    font-family: inherit;
}

.yiv-topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: #101010;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yiv-file {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yiv-icon {
    color: #f4b400;
    font-size: 22px;
}

.yiv-title {
    font-weight: 700;
    font-size: 15px;
}

.yiv-badge {
    color: #f4b400;
    border: 1px solid rgba(244, 180, 0, 0.25);
    padding: 5px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.yiv-actions {
    display: flex;
    gap: 8px;
}

.yiv-actions button {
    background: #151515;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yiv-actions button:hover {
    color: #f4b400;
    border-color: rgba(244, 180, 0, 0.45);
}

.yiv-viewer {
    position: relative;
    width: 100%;
    min-height: 420px;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        #070707;
    background-size: 64px 64px;
}

.yiv-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.yiv-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4b400;
    font-size: 13px;
    letter-spacing: 0.12em;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
}

.yiv-footer {
    display: flex;
    gap: 40px;
    padding: 18px 22px;
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yiv-footer div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.yiv-footer span {
    color: #777;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.yiv-footer strong {
    color: #f2f2f2;
    font-size: 12px;
}

.yiv-status {
    color: #f4b400 !important;
}

.yiv-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
}

.yiv-wrap:fullscreen .yiv-viewer {
    height: calc(100vh - 122px) !important;
}

@media (max-width: 768px) {
    .yiv-topbar {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .yiv-actions {
        flex-wrap: wrap;
    }

    .yiv-actions button {
        padding: 9px 12px;
    }

    .yiv-footer {
        flex-direction: column;
        gap: 10px;
    }
}