/* Минималистичный виджет — верхний центр, 90% ширины */
.mw5-widget-container {
    position: fixed;
    z-index: 999;
    cursor: pointer;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
}

.mw5-compact-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mw5-compact-widget:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.mw5-moon-icon canvas {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.mw5-compact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.mw5-phase-short {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.mw5-zodiac-short {
    font-size: 11px;
    color: #aaa;
}

/* Модальное окно — 95% ширины */
.mw5-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mw5-modal-content {
    position: relative;
    margin: 2.5% auto;
    padding: 0;
    width: 95%;
    height: 95%;
    max-width: none;
    background: #0d0d0f;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mw5-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #111113;
    border-bottom: 1px solid #2a2a2e;
}

.mw5-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.mw5-modal-close {
    color: #888;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.mw5-modal-close:hover {
    color: #fff;
}

.mw5-modal-body {
    display: flex;
    gap: 0;
    height: calc(100% - 57px);
}

.mw5-modal-canvas {
    flex: 2;
    background: #070708;
    position: relative;
}

.mw5-modal-info {
    flex: 1;
    background: #0d0d0f;
    padding: 20px;
    overflow-y: auto;
    color: #ccc;
    border-left: 1px solid #2a2a2e;
}

.mw5-modal-info h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-data, .planet-data {
    margin-bottom: 28px;
}

.astro-data div {
    margin-bottom: 8px;
    font-size: 13px;
    color: #ddd;
}

#planet-positions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.planet-item {
    background: #111113;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #ccc;
    border: 1px solid #222226;
}

.planet-symbol {
    font-size: 14px;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .mw5-modal-body {
        flex-direction: column;
    }
    
    .mw5-modal-canvas {
        height: 280px;
    }
    
    .mw5-modal-info {
        border-left: none;
        border-top: 1px solid #2a2a2e;
    }
    
    .mw5-compact-widget {
        padding: 8px 16px;
        gap: 10px;
    }
    
    .mw5-moon-icon canvas {
        width: 36px;
        height: 36px;
    }
    
    .mw5-phase-short {
        font-size: 11px;
    }
    
    .mw5-zodiac-short {
        font-size: 9px;
    }
}