﻿.mpx-reset {
    box-sizing: border-box;
}

.mpx-container, .mpx-container * {
    box-sizing: border-box;
}

.mpx-section {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111;
    background: #f7f8fa;
    border-radius: 12px;
}

@media (max-width: 860px) {
    .mpx-section {
        grid-template-columns: 1fr;
    }

    .mpx-left {
        order: 2;
    }

    .mpx-right {
        order: 1;
    }
}

.mpx-left {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20,20,40,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    max-height: 70vh;
}

.mpx-left-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mpx-left-header h3 {
        margin: 0;
        font-size: 16px;
    }

.mpx-left-search {
    margin-left: auto;
    min-width: 0;
}

    .mpx-left-search input {
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 8px;
        border: 1px solid #e6e8ec;
    }

.mpx-playlist {
    overflow: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpx-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .06s;
    outline: none;
    border: 1px solid transparent;
}

    .mpx-item:hover {
        background: #fbfdff;
        transform: translateY(-1px);
    }

    .mpx-item:active {
        transform: translateY(0);
    }

    .mpx-item.mpx-active {
        background: linear-gradient(90deg,#eef7ff 0%, #ffffff 100%);
        border-color: #d0e9ff;
        box-shadow: 0 4px 12px rgba(16,88,200,0.06);
    }

.mpx-thumb {
    width: 110px;
    height: 62px;
    flex: 0 0 110px;
    border-radius: 6px;
    overflow: hidden;
    background: #ddd;
    display: block;
    object-fit: cover;
}

.mpx-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mpx-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.15;
    color: #0b2540;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpx-desc {
    font-size: 13px;
    color: #5b6775;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpx-duration {
    font-size: 12px;
    color: #2b3945;
    background: #eef6ff;
    padding: 4px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    align-self: flex-start;
}

.mpx-right {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20,20,40,0.04);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpx-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mpx-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.mpx-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.mpx-info {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

    .mpx-info .mpx-current-title {
        font-weight: 700;
        font-size: 16px;
        color: #07203a;
    }

    .mpx-info .mpx-current-desc {
        font-size: 13px;
        color: #54606e;
    }

.mpx-player-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mpx-btn {
    border: none;
    background: #0b76ff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

    .mpx-btn.secondary {
        background: transparent;
        border: 1px solid #d7dff8;
        color: #0b76ff;
    }

.mpx-progress {
    width: 100%;
    height: 8px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

    .mpx-progress > .mpx-progress-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg,#0b76ff,#4cc3ff);
    }

.mpx-time {
    font-size: 13px;
    color: #263238;
}

.mpx-dark .mpx-right {
    background: #0f1720;
    color: #e6eefb;
}
