* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background-color: black;
    font-family: 'Vazir', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

@font-face {
    font-family: 'Vazir';
    src: url('contents/font/Vazir-Black.woff2');
    font-display: swap;
}

.glass-container {
    max-width: 1400px;
    width: 100%;
    background: rgba(20, 20, 25, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 24px 28px;
    transition: all 0.3s ease;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(111, 0, 89, 0)),
        url('./contents/cover/forest_trees_shrouded_in_fog-wallpaper-2560x1080.jpg') no-repeat center center/cover;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.logo-area {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-text h1 {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #E0E0E0, #A0A0A0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 6px 16px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.admin-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(5, 4, 0, 0.781);
    border: 1px solid #030300;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Vazir';
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(212, 175, 55, 0.5);
    color: white;
}

.music-main {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.player-section {
    flex: 1.2;
    min-width: 260px;
}

.playlist-section {
    flex: 0.9;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-x: hidden;
}

.music-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 28px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cover-art {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.cover-image {
    width: 280px;
    height: 280px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    background: #1e1e24;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.song-info {
    text-align: center;
    margin-bottom: 28px;
}

.song-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.song-artist {
    color: #bcbcbc;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.progress-area {
    margin: 20px 0 18px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    direction: ltr;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #B87333, #D4AF37);
    border-radius: 10px;
    transition: width 0.05s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #D4AF37;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: left 0.05s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #ccc;
}

.controls {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin: 28px 0;
}

.ctrl-btn {
    background: rgba(30, 30, 35, 0.8);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.ctrl-btn.active {
    background: rgba(212, 175, 55, 0.5);
}

.volume-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #D4AF37;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 6px gold;
}

.track-list {
    list-style: none;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.track-item {
    background: rgba(20, 20, 28, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.track-item.active-track {
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(60, 60, 75, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-number {
    font-weight: bold;
    color: #b9b9b9;
    width: 32px;
    flex-shrink: 0;
}

.track-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ececec;
    word-break: break-word;
}

.track-artist-name {
    font-size: 0.7rem;
    color: #aaa;
    word-break: break-word;
}

.track-added-by {
    font-size: 0.6rem;
    color: #D4AF37;
    margin-top: 2px;
    word-break: break-word;
}

.track-duration {
    font-size: 0.7rem;
    font-family: monospace;
    color: #c9c9c9;
    flex-shrink: 0;
}

.song-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.small-btn {
    background: rgba(30, 30, 35, 0.9);
    border: none;
    border-radius: 10px;
    padding: 4px 10px;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.small-btn svg {
    fill: white;
    width: 12px;
    height: 12px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-right: 8px;
    color: #ddd;
    font-weight: bold;
    border-right: 3px solid #D4AF37;
}

.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box,
.cat-select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #D4AF37;
    border-radius: 10px;
    padding: 8px 16px;
    color: white;
    font-family: 'Vazir';
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #aaa;
    font-size: 1.0rem;
}

.about p {
    margin: 5px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(25, 25, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close-modal,
.close-modal-artist,
.close-modal-genre,
.close-modal-move {
    float: left;
    font-size: 28px;
    cursor: pointer;
    color: #D4AF37;
}

.modal input,
.modal select {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1e1e24;
    color: white;
    font-family: 'Vazir';
}


.artist-item,
.genre-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

#uploadProgressContainer {
    margin: 15px 0;
}

#uploadProgressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 10px;
    transition: width 0.3s;
}

@media (max-width: 1000px) {
    .glass-container {
        padding: 16px;
    }

    .music-main {
        flex-direction: column !important;
    }

    .player-section,
    .playlist-section {
        width: 100% !important;
        flex: none !important;
        min-width: auto !important;
    }

    .playlist-section {
        margin-top: 20px;
    }

    .song-title {
        font-size: 1.3rem;
    }

    .cover-image {
        width: 230px;
        height: 230px;
    }

    .controls {
        gap: 16px;
    }

    .ctrl-btn {
        width: 44px;
        height: 44px;
    }

    .track-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .track-number {
        width: 28px;
        font-size: 0.8rem;
    }

    .track-name {
        font-size: 0.9rem;
    }

    .track-artist-name,
    .track-added-by {
        font-size: 0.65rem;
    }

    .song-actions {
        gap: 5px;
    }

    .small-btn {
        padding: 3px 8px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .cat-select,
    .action-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .track-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-number {
        width: auto;
        margin-bottom: 4px;
    }

    .track-info {
        width: 100%;
        margin-bottom: 6px;
    }

    .track-duration {
        align-self: flex-end;
        margin-top: -25px;
    }

    .song-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

.track-list::-webkit-scrollbar {
    width: 4px;
}

.track-list::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.track-list::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

.track-categories {
    font-size: 0.6rem;
    color: #ffffff !important;  /* سفید کردن دسته‌بندی */
    margin-top: 3px;
}

.modal h3 {
    color: white;
}

.category-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 30, 35, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    margin: 4px;
}

.category-checkbox input {
    width: auto;
    margin: 0;
    vertical-align: middle;
}

.category-checkbox span {
    line-height: 1;
}