@font-face {
    font-family: "iransans";
    src: url("../fonts/IRANSansWeb.eot");
    src: url("../fonts/IRANSansWeb.eot?#iefix") format("embedded-opentype"),
         url("../fonts/IRANSansWeb.woff2") format("woff2"),
         url("../fonts/IRANSansWeb.woff") format("woff"),
         url("../fonts/IRANSansWeb.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
 
:where(#mp-test-result *) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(#mp-test-result) {
    min-height: 100vh;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
        /* پلیر اصلی - تم لایت با راست‌چین */
        .player-container {
font-family: iransans;
margin: 0 auto;
            max-width: 1200px;
            width: 100%;
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 1.5rem;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(12px);
            border-radius: 2rem;
            padding: 1.5rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
            direction: rtl;
        }

        /* سایدبار لیست‌های پخش */
        .playlists-sidebar {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            border-radius: 1.5rem;
            padding: 1.2rem;
            height: fit-content;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        }

        .sidebar-title {
            font-size: 1rem;
            font-weight: 700;
            color: #2c3e66;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid rgba(100, 80, 200, 0.3);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .playlist-tabs {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .playlist-tab {
font-family: iransans;
            background: rgba(240, 243, 252, 0.9);
            border: none;
            padding: 0.9rem 1rem;
            border-radius: 1rem;
            text-align: right;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: #2c3e66;
            font-weight: 500;
            font-size: 0.9rem;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .playlist-tab:hover {
            background: rgba(100, 80, 200, 0.12);
            transform: translateX(4px);
        }

        .playlist-tab.active {
font-family: iransans;
            background: linear-gradient(135deg, rgba(100, 70, 255, 0.2), rgba(80, 55, 200, 0.15));
            color: #4a2bc2;
            box-shadow: 0 4px 12px rgba(100, 70, 255, 0.08);
            border: 1px solid rgba(100, 70, 255, 0.3);
        }

        .playlist-icon {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
        }

        /* بخش اصلی پلیر و لیست آهنگ‌ها */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* پلیر بالا */
        .player-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            border-radius: 1.5rem;
            padding: 1.5rem;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
        }

        .now-playing-section {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .cover-large {
            width: 110px;
            height: 110px;
            border-radius: 1.2rem;
            background: linear-gradient(145deg, #e0e5f0, #d0d9ec);
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        }

        .cover-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .track-details {
            flex: 1;
            text-align: right;
        }

        .track-title-main {
            font-size: 1.6rem;
            font-weight: 800;
            color: #1f2a48;
            margin-bottom: 0.3rem;
        }

        .track-artist-main {
            font-size: 0.9rem;
            color: #5e6e8c;
            margin-bottom: 0.8rem;
        }

        .controls-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .ctrl-button {
            background: rgba(230, 235, 250, 0.9);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        }

        .ctrl-button:hover {
            background: rgba(100, 80, 230, 0.2);
            transform: scale(1.05);
        }

        .play-main {
            background: linear-gradient(135deg, <?php echo $primaryColor; ?>, #5a3be0);
            box-shadow: 0 4px 12px rgba(90, 59, 224, 0.3);
        }
        .play-main:hover {
            background: linear-gradient(135deg, #8c6cff, <?php echo $primaryColor; ?>);
        }

        .svg-icon {
            width: 22px;
            height: 22px;
            stroke: #2c3e66;
            fill: none;
            stroke-width: 2;
        }
        .play-main .svg-icon {
            stroke: white;
        }
        .fill-icon {
            fill: white;
            stroke: none;
        }

        .progress-area {
            margin-top: 1.2rem;
        }

        .time-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: #6b7a9a;
            margin-bottom: 0.3rem;
        }

        .progress-bar-bg {
direction: ltr;
            background: rgba(0, 0, 0, 0.08);
            height: 5px;
            border-radius: 8px;
            cursor: pointer;
            position: relative;
        }

        .progress-fill {
            background: linear-gradient(90deg, <?php echo $primaryColor; ?>, #5d3be0);
            width: 0%;
            height: 100%;
            border-radius: 8px;
            transition: width 0.05s linear;
        }

        .volume-row {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-top: 1rem;
            justify-content: flex-start;
        }
        .volume-row svg {
            stroke: #5e6e8c;
        }

        .volume-slider {
            width: 120px;
            height: 4px;
            -webkit-appearance: none;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 5px;
            direction: ltr;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            background: <?php echo $primaryColor; ?>;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        /* لیست آهنگ‌های لیست پخش فعال */
        .songs-list-container {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            border-radius: 1.5rem;
            padding: 1.2rem;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            max-height: 550px;
            display: flex;
            flex-direction: column;
        }

        .songs-list {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 0.8rem;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0.2rem;
            scrollbar-width: thin;
        }

        .songs-list::-webkit-scrollbar {
            width: 5px;
        }

        .songs-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
        }

        .songs-list::-webkit-scrollbar-thumb {
            background: #b2a8ff;
            border-radius: 10px;
        }

        .songs-list::-webkit-scrollbar-thumb:hover {
            background: <?php echo $primaryColor; ?>;
        }

        .song-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0.7rem;
            border-radius: 0.8rem;
            background: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            text-align: right;
        }

        .song-item:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(100, 70, 200, 0.1);
        }

        .song-item.active-song {
            background: linear-gradient(135deg, rgba(100, 70, 255, 0.12), rgba(80, 55, 200, 0.08));
            border-color: rgba(100, 70, 255, 0.3);
        }

        .song-cover-small {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 0.6rem;
            object-fit: cover;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .song-info {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .song-name {
            font-size: 0.7rem;
            font-weight: 700;
            color: #1f2a48;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: right;
        }

        .song-artist {
            font-size: 0.6rem;
            color: #7a88aa;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: right;
        }

        .song-duration {
            font-size: 0.6rem;
            color: #9aa9c4;
            margin-top: 0.1rem;
            text-align: right;
        }

        .song-item::before {
            content: "▶";
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            right: auto;
            background: rgba(100, 70, 255, 0.85);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        .song-item:hover::before {
            opacity: 1;
        }

        @media (max-width: 1400px) {
            .songs-list { grid-template-columns: repeat(5, 1fr); }
        }
        @media (max-width: 1100px) {
            .songs-list { grid-template-columns: repeat(4, 1fr); }
        }
        @media (max-width: 800px) {
            .player-container { grid-template-columns: 1fr; }
            .songs-list { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 550px) {
            .songs-list { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .songs-list-container { max-height: 450px; }
        }
        @media (max-width: 480px) {
            .songs-list-container { max-height: 400px; }
        }

        ::-webkit-scrollbar {
            width: 4px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: #b2a8ff;
            border-radius: 10px;
        }