/* =========================================================
   SOUND-NET / MUSIC ROOM
   CLEAN RESPONSIVE DARK UI
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    color: #eeeaf2;

    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(126, 91, 155, .13),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 35%,
            rgba(75, 91, 125, .08),
            transparent 28%
        ),
        #08080c;
}

/* =========================================================
   GLOBAL
   ========================================================= */

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: rgba(145, 115, 170, .35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #09090d;
}

::-webkit-scrollbar-thumb {
    background: rgba(145, 125, 160, .35);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 145, 180, .5);
}

/* =========================================================
   BACKGROUND GLOWS
   ========================================================= */

.background-glow {
    position: fixed;
    z-index: -1;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: .18;
}

.glow-one {
    width: 330px;
    height: 330px;

    top: 90px;
    right: -140px;

    background: #805e99;
}

.glow-two {
    width: 280px;
    height: 280px;

    top: 650px;
    left: -130px;

    background: #4e607c;
}

.glow-three {
    width: 250px;
    height: 250px;

    bottom: 100px;
    right: 25%;

    background: #75527e;

    opacity: .08;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;

    top: 0;
    z-index: 1000;

    width: min(1180px, calc(100% - 36px));

    min-height: 72px;

    margin: 14px auto 0;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: rgba(12, 12, 17, .84);

    border:
        1px solid rgba(190, 175, 205, .08);

    border-radius: 20px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, .25);
}

/* logo */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #ded4e7;

    font-size: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(135, 110, 155, .24),
            rgba(70, 70, 92, .16)
        );

    border:
        1px solid rgba(190, 170, 205, .09);
}

.logo strong,
.logo span {
    display: block;
}

.logo strong {
    color: #eee9f2;
    font-size: 15px;
}

.logo span {
    margin-top: 2px;

    color: rgba(180, 170, 190, .45);

    font-size: 10px;
    letter-spacing: 1px;
}

/* navigation */

.header nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 14px;

    color: rgba(190, 183, 200, .52);

    border-radius: 11px;

    font-size: 12px;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.header nav a:hover {
    color: #eee9f2;

    background: rgba(255, 255, 255, .035);

    transform: translateY(-1px);
}

.header nav a.active {
    color: #eee9f2;

    background:
        rgba(135, 112, 155, .14);
}

/* admin */

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 14px;

    flex-shrink: 0;

    color: rgba(205, 196, 212, .65);

    border:
        1px solid rgba(180, 165, 195, .08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, .018);

    font-size: 11px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.admin-link:hover {
    color: #fff;

    background:
        rgba(140, 120, 160, .12);

    transform: translateY(-1px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: min(1180px, calc(100% - 36px));

    min-height: 430px;

    margin: 28px auto 0;

    padding: 55px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, .85fr);

    align-items: center;

    gap: 55px;

    overflow: hidden;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(120, 90, 145, .19),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #15131b,
            #0b0b10 70%
        );

    border:
        1px solid rgba(185, 170, 200, .07);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .32);
}

.hero::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -200px;
    bottom: -250px;

    border-radius: 50%;

    background: rgba(125, 95, 145, .12);

    filter: blur(80px);

    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;

    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding: 0 12px;

    margin-bottom: 18px;

    color: rgba(205, 193, 215, .58);

    background:
        rgba(255, 255, 255, .025);

    border:
        1px solid rgba(190, 175, 205, .08);

    border-radius: 999px;

    font-size: 10px;
}

.hero h1 {
    color: #f0ebf3;

    font-size: clamp(34px, 5vw, 58px);

    line-height: 1.25;

    letter-spacing: -1.5px;
}

.hero h1 span {
    display: block;

    color: rgba(172, 145, 190, .78);
}

.hero p {
    max-width: 550px;

    margin-top: 18px;

    color: rgba(185, 178, 193, .52);

    font-size: 13px;

    line-height: 2;
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    min-height: 48px;

    margin-top: 25px;

    padding: 0 18px;

    color: #eee8f2;

    border:
        1px solid rgba(190, 170, 205, .10);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(130, 105, 150, .22),
            rgba(70, 80, 110, .14)
        );

    transition:
        transform .22s ease,
        background .22s ease;
}

.main-button:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            rgba(145, 115, 165, .28),
            rgba(75, 85, 115, .18)
        );
}

.main-button b {
    font-size: 17px;
}

/* =========================================================
   HERO VISUALIZER
   ========================================================= */

.hero-visualizer {
    position: relative;
    z-index: 2;

    min-height: 270px;

    padding: 23px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 23, 32, .92),
            rgba(10, 10, 15, .94)
        );

    border:
        1px solid rgba(185, 170, 200, .08);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.visualizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    color: rgba(190, 182, 200, .48);

    font-size: 9px;

    letter-spacing: 1.7px;
}

.visualizer-header span {
    display: flex;
    align-items: center;

    gap: 7px;
}

.visualizer-header strong {
    color: rgba(190, 177, 202, .48);

    font-size: 9px;
    font-weight: 500;
}

.live-dot {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background: rgba(150, 130, 170, .7);

    box-shadow:
        0 0 0 4px rgba(150, 130, 170, .05);
}

/* equalizer */

.equalizer {
    width: 100%;
    height: 145px;

    margin-top: 25px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: 4px;

    overflow: hidden;
}

.eq-bar {
    width: 5px;
    height: 100%;

    flex: 1;

    max-width: 7px;

    min-width: 2px;

    transform-origin: bottom center;

    border-radius: 999px;

    background:
        linear-gradient(
            to top,
            rgba(100, 87, 120, .28),
            rgba(160, 140, 180, .62)
        );

    opacity: .7;

    will-change: transform;
}

.beat-line {
    height: 1px;

    margin-top: 6px;

    display: flex;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(165, 145, 180, .18),
            transparent
        );
}

.beat-line span {
    flex: 1;
}

.visualizer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;

    color: rgba(175, 165, 185, .34);

    font-size: 8px;

    letter-spacing: 1.6px;
}

.visualizer-footer strong {
    color: rgba(190, 175, 200, .5);

    font-size: 9px;
}

/* =========================================================
   COMMON SECTION
   ========================================================= */

.section {
    width: min(1180px, calc(100% - 36px));

    margin: 0 auto;

    padding: 65px 0 0;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.section-title > div > span {
    display: block;

    margin-bottom: 6px;

    color: rgba(160, 145, 180, .45);

    font-size: 9px;

    letter-spacing: 2px;
}

.section-title h2 {
    color: #eee8f1;

    font-size: 29px;
}

#songCount {
    color: rgba(185, 175, 195, .48);

    font-size: 11px;
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin-bottom: 20px;
}

.category {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    color: rgba(190, 182, 200, .55);

    border:
        1px solid rgba(180, 165, 195, .07);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .018);

    cursor: pointer;

    font-size: 11px;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.category b {
    color: rgba(180, 160, 195, .5);

    font-size: 14px;
}

.category:hover {
    color: #eee8f1;

    transform: translateY(-1px);

    background:
        rgba(140, 120, 160, .08);
}

.category.active {
    color: #eee8f1;

    background:
        rgba(140, 120, 160, .16);

    border-color:
        rgba(165, 145, 185, .16);
}

/* =========================================================
   MUSIC LIST
   ========================================================= */

.music-list {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

/* =========================================================
   SONG
   ========================================================= */

.song {
    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 10px 13px;

    border-radius: 18px;

    background:
        rgba(17, 17, 24, .78);

    border:
        1px solid rgba(180, 165, 195, .055);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.song:hover {
    transform: translateY(-2px);

    background:
        rgba(25, 24, 34, .9);

    border-color:
        rgba(175, 160, 190, .11);
}

.song-number {
    width: 35px;

    flex-shrink: 0;

    text-align: center;

    color: rgba(170, 162, 180, .32);

    font-size: 10px;
}

.song > div:nth-child(2) {
    min-width: 0;

    flex: 1;
}

.song-name {
    overflow: hidden;

    color: rgba(235, 230, 240, .88);

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.song-artist {
    margin-top: 5px;

    overflow: hidden;

    color: rgba(175, 168, 185, .45);

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.song-category {
    flex-shrink: 0;

    min-width: 70px;

    text-align: center;

    color: rgba(175, 165, 185, .35);

    font-size: 10px;
}

.song-actions {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 7px;
}

.song-play,
.favorite-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.song-play {
    color: rgba(220, 212, 225, .72);

    background:
        rgba(255, 255, 255, .025);

    border:
        1px solid rgba(180, 165, 195, .09);
}

.song-play:hover {
    transform: scale(1.07);

    background:
        rgba(150, 130, 175, .14);
}

.favorite-button {
    color: rgba(185, 175, 195, .45);

    background:
        rgba(255, 255, 255, .018);

    border:
        1px solid rgba(180, 165, 195, .07);

    font-size: 18px;
}

.favorite-button:hover {
    color: rgba(225, 205, 230, .85);

    transform: scale(1.07);

    background:
        rgba(150, 120, 170, .12);
}

.favorite-button.active,
.favorite-button.is-favorite {
    color: #c7a6d8;

    border-color:
        rgba(190, 155, 210, .2);

    background:
        rgba(150, 110, 170, .12);
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    width: 100%;

    padding: 60px 25px;

    text-align: center;

    border-radius: 22px;

    background:
        rgba(16, 16, 23, .7);

    border:
        1px solid rgba(180, 165, 195, .07);
}

.empty-state h2 {
    color: rgba(235, 230, 240, .85);

    font-size: 20px;
}

.empty-state p {
    margin-top: 10px;

    color: rgba(175, 168, 185, .45);

    font-size: 12px;
}

.empty-state a {
    display: inline-flex;

    margin-top: 20px;

    padding: 10px 16px;

    color: #e9e0ee;

    border-radius: 12px;

    background:
        rgba(140, 115, 160, .14);

    border:
        1px solid rgba(180, 160, 195, .09);
}

/* =========================================================
   PLAYER
   ========================================================= */

.player-card {
    width: 100%;

    padding: 25px;

    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 19, 27, .95),
            rgba(10, 10, 15, .97)
        );

    border:
        1px solid rgba(180, 165, 195, .08);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .28);
}

.now-playing {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.player-cover {
    width: 92px;
    height: 92px;

    min-width: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #1b1922,
            #111118
        );

    border:
        1px solid rgba(180, 165, 195, .08);
}

.player-cover img {
    width: 100%;
    height: 100%;

    display: none;

    object-fit: cover;
}

.default-cover {
    color: rgba(190, 175, 205, .55);

    font-size: 30px;
}

.track-info {
    min-width: 0;
}

.track-info > span {
    color: rgba(165, 151, 180, .5);

    font-size: 9px;

    letter-spacing: 2px;
}

.track-info h2 {
    margin-top: 7px;

    overflow: hidden;

    color: rgba(235, 230, 240, .92);

    font-size: 20px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-info p {
    margin-top: 5px;

    color: rgba(175, 168, 185, .48);

    font-size: 12px;
}

/* =========================================================
   PLAYER TIME
   ========================================================= */

.time-row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;

    color: rgba(175, 168, 185, .4);

    font-size: 10px;
}

/* =========================================================
   RANGE INPUTS
   ========================================================= */

.progress,
#volume {
    appearance: none;
    -webkit-appearance: none;

    outline: none;

    cursor: pointer;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .08);
}

.progress {
    width: 100%;
    height: 5px;
}

.progress::-webkit-slider-thumb,
#volume::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    border: 2px solid #0d0d12;

    background: #b39ac0;

    box-shadow:
        0 0 0 3px rgba(175, 145, 190, .08);
}

.progress::-moz-range-thumb,
#volume::-moz-range-thumb {
    width: 13px;
    height: 13px;

    border-radius: 50%;

    border: 2px solid #0d0d12;

    background: #b39ac0;
}

/* =========================================================
   CONTROLS
   ========================================================= */

.controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 22px;
}

.control-button,
.play-button {
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.control-button {
    width: 42px;
    height: 42px;

    color: rgba(205, 195, 212, .6);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .025);

    border:
        1px solid rgba(180, 165, 195, .07);
}

.control-button:hover {
    transform: scale(1.06);

    background:
        rgba(145, 120, 165, .12);
}

.play-button {
    width: 54px;
    height: 54px;

    color: #f4eef6;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(145, 115, 165, .5),
            rgba(100, 90, 125, .4)
        );

    border:
        1px solid rgba(205, 185, 215, .13);

    box-shadow:
        0 10px 30px rgba(80, 60, 100, .22);
}

.play-button:hover {
    transform: scale(1.06);
}

/* =========================================================
   VOLUME
   ========================================================= */

.volume-box {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 24px;

    color: rgba(180, 170, 190, .45);
}

.volume-box > span {
    flex-shrink: 0;

    font-size: 14px;
}

#volume {
    width: 130px;
    height: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: min(1180px, calc(100% - 36px));

    margin: 80px auto 0;
    padding: 28px 0 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(180, 165, 195, .06);

    color: rgba(170, 162, 180, .38);

    font-size: 10px;
}

.footer-logo {
    color: rgba(205, 195, 215, .6);

    font-size: 12px;
}

footer p {
    text-align: center;
}

footer a {
    color: rgba(185, 170, 200, .5);

    transition: color .2s ease;
}

footer a:hover {
    color: #eee8f2;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding: 38px;

        gap: 30px;
    }

    .hero-visualizer {
        min-height: 240px;
    }

    .song-category {
        display: none;
    }
}

@media (max-width: 650px) {

    .header {
        width: calc(100% - 20px);

        margin-top: 8px;

        padding: 10px;

        gap: 8px;
    }

    .header nav {
        gap: 2px;
    }

    .header nav a {
        padding: 0 8px;

        font-size: 10px;
    }

    .admin-link {
        display: none;
    }

    .hero,
    .section {
        width: calc(100% - 20px);
    }

    .hero {
        min-height: auto;

        padding: 28px 22px;

        border-radius: 23px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 12px;
    }

    .section {
        padding-top: 45px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .category {
        min-height: 35px;

        padding: 0 11px;

        font-size: 10px;
    }

    .song {
        gap: 9px;

        padding: 9px;
    }

    .song-number {
        width: 24px;

        font-size: 9px;
    }

    .song-name {
        font-size: 12px;
    }

    .song-artist {
        font-size: 10px;
    }

    .song-play,
    .favorite-button {
        width: 35px;
        height: 35px;
    }

    .player-card {
        padding: 18px;
    }

    .player-cover {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .track-info h2 {
        font-size: 16px;
    }

    footer {
        width: calc(100% - 20px);

        flex-direction: column;

        text-align: center;
    }
}

@media (max-width: 430px) {

    .logo > div:last-child {
        display: none;
    }

    .header nav a {
        padding: 0 6px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-visualizer {
        padding: 18px;
    }

    .song-number {
        display: none;
    }

    .song-actions {
        gap: 4px;
    }

    .favorite-button {
        display: none;
    }

    .now-playing {
        gap: 13px;
    }
}
/* =========================================================
   FIX SONG COVER SIZE
   اندازه قبلی کاور آهنگ‌ها
   ========================================================= */

.song-cover {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;

    flex: 0 0 54px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
}

.song-cover img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center !important;
    display: block !important;

}
/* =========================================================
DOWNLOAD BUTTON
========================================================= */

.download-button {
position: relative;
}

.download-button:hover {
color: #ffffff;
background:
rgba(139, 92, 246, .14);
border-color:
rgba(139, 92, 246, .30);
transform: translateY(-2px);
}

.download-button:active {
transform: scale(.90);
}

.download-button:disabled {
opacity: .55;
cursor: wait;
transform: none;
}
.song-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.song-play,
.song-download {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.06);

    color: white;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.song-play:hover,
.song-download:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}


.song-download {
    font-size: 22px;
    font-weight: bold;
}


.song-download:active,
.song-play:active {
    transform: scale(0.94);
}
/* =========================================================
   FAVORITES
========================================================= */

.favorite-button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: 24px;
    cursor: pointer;
    transition: .2s ease;
}

.favorite-button:hover {
    transform: scale(1.15);
    color: #ff4d6d;
}

.favorite-button.is-favorite {
    color: #ff3158;
    text-shadow: 0 0 15px rgba(255, 49, 88, .45);
}
