/* ==========================================================================
   GLOBAL REVIEW MODAL STYLES - TenshoMusic Theme
   ========================================================================== */

/* Modal Core */
.tm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tm-modal.active {
    display: flex;
    opacity: 1;
}

.tm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.tm-modal-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.tm-modal.active .tm-modal-container {
    transform: translateY(0);
}

.tm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.tm-modal-close:hover {
    opacity: 1;
}

.tm-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tm-modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #eee;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin: 20px 0;
}

/* Custom Scrollbar for Modal Body */
.tm-modal-body::-webkit-scrollbar {
    width: 4px;
}

.tm-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.tm-modal-body::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    /* Accent color fallback */
    border-radius: 10px;
}

@media (max-width: 480px) {
    .tm-modal-container {
        padding: 30px 20px;
    }

    .tm-modal-header {
        flex-direction: column;
        text-align: center;
    }
}