/* ========================================
   RESET
======================================== */

* {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}


html,
body {
    width: 100%;
    min-height: 100%;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #eeeeee;
}

.archive-brand {
    cursor: pointer;
}


button,
input {
    font-family: inherit;
}


/* ========================================
   BACKGROUND
======================================== */

.home-body {

    position: relative;

    min-height: 100vh;

    overflow-x: hidden;

    background: #090909;
}

.album-title-container {
    margin-top: 10px;
}


.home-body::before {

    content: "";

    position: fixed;

    inset: -50px;

    background-image:
        url("Images/main.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    filter:
        blur(10px)
        brightness(0.42)
        saturate(0.75);

    transform: scale(1.06);

    z-index: 0;
}


.home-body::after {

    content: "";

    position: fixed;

    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.62)
        );

    z-index: 1;

    pointer-events: none;
}


/* ========================================
   MAIN
======================================== */

.home-page {
    position: relative;

    z-index: 2;

    width: 100%;
    min-height: 100vh;

    /*
        Оставляем список слева,
        а основную панель — по центру.
    */

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;
}


/* ========================================
   TRACKS PANEL
======================================== */

.selected-tracks {
    position: absolute;

    left: 35px;

    top: 50%;

    transform: translateY(-50%);

    width: 280px;

    max-height: 440px;

    padding: 16px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 14px;

    background:
        rgba(15, 15, 15, 0.58);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}


/* Заголовок */

.selected-tracks-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        2px 4px 14px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

    color: #aaa;

    font-size: 12px;
}


.selected-tracks-header span:last-child {

    color: #666;
}


/* ========================================
   TRACK LIST
======================================== */

.tracks-list {

    max-height: 350px;

    margin-top: 10px;

    overflow-y: auto;
}


.empty-tracks {

    padding:
        28px 12px;

    color: #555;

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


.selected-track {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 8px;

    transition:
        background 0.2s ease;
}


.selected-track:hover {

    background:
        rgba(255, 255, 255, 0.05);
}


.selected-track-number {

    width: 22px;

    flex-shrink: 0;

    color: #555;

    font-size: 11px;

    text-align: center;
}


.selected-track-info {

    flex: 1;

    min-width: 0;
}


.selected-track-name {

    color: #ccc;

    font-size: 12px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.selected-track-size {

    margin-top: 3px;

    color: #555;

    font-size: 10px;
}


/* ========================================
   CENTRAL CONTENT
======================================== */

.home-content {
    width: 430px;

    max-width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* ========================================
   BRAND
======================================== */

.brand {

    margin-bottom: 34px;

    color: #f1f1f1;

    font-size: 32px;

    font-weight: 600;

    letter-spacing: -1px;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.65);
}


/* ========================================
   NAME INPUT
======================================== */

.album-title-container {
    width: 100%;

    height: 56px;

    display: flex;

    align-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    background:
        rgba(15, 15, 15, 0.68);

    backdrop-filter:
        blur(16px);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.album-title-container:focus-within {
    border-color:
        rgba(255, 255, 255, 0.25);

    background:
        rgba(20, 20, 20, 0.78);
}

.album-title-container .nickname-input {

    width: 100%;

    height: 100%;

    padding:
        0 18px;

    border: none;

    outline: none;

    background: transparent;

    color: #eeeeee;

    font-size: 14px;

    text-align: center;

    font-family: inherit;
}


.album-title-container .nickname-input::placeholder {

    color: #777;
}


/* ========================================
   UPLOAD BUTTONS
======================================== */


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .visibility-options {

        flex-direction: column;

    }

}


@media (max-width: 500px) {

    .visibility-options {

        flex-direction: column;
    }

}

.upload-buttons {

    width: 100%;

    display: flex;

    gap: 10px;

    margin-top: 14px;
}


.upload-button {

    flex: 1;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 9px;

    background:
        rgba(18, 18, 18, 0.65);

    backdrop-filter:
        blur(12px);

    color: #aaa;

    font-size: 13px;

    cursor: pointer;

    user-select: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.upload-button:hover {

    background:
        rgba(35, 35, 35, 0.78);

    color: #eee;

    border-color:
        rgba(255, 255, 255, 0.17);

    transform:
        translateY(-1px);
}


.upload-button:active {

    transform:
        translateY(0);
}


.upload-button-icon {

    font-size: 16px;
}


/* ========================================
   COVER
======================================== */


.cover-preview {

    display: none;

    width: 150px;

    height: 150px;

    margin-top: 16px;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.45);
}


/*
    JS добавит класс .visible,
    когда пользователь выберет обложку.
*/

.cover-preview.visible {

    display: block;
}


.cover-preview img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


/* ========================================
   PUBLISH
======================================== */

.publish-button {

    width: 100%;

    height: 48px;

    margin-top: 12px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.09);

    color: #eee;

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.publish-button:disabled {

    cursor: not-allowed;

    opacity: 0.32;

    background:
        rgba(15, 15, 15, 0.55);

    border-color:
        rgba(255, 255, 255, 0.06);
}


.publish-button:not(:disabled):hover {

    background:
        rgba(255, 255, 255, 0.17);

    border-color:
        rgba(255, 255, 255, 0.25);

    transform:
        translateY(-1px);
}


.publish-button:not(:disabled):active {

    transform:
        translateY(0);
}


/* ========================================
   STATUS
======================================== */

.upload-status {

    min-height: 18px;

    margin-top: 10px;

    color: #777;

    font-size: 11px;

    text-align: center;
}


/* ========================================
   SCROLLBAR
======================================== */

::-webkit-scrollbar {

    width: 6px;
}


::-webkit-scrollbar-track {

    background: transparent;
}


::-webkit-scrollbar-thumb {

    background:
        rgba(255, 255, 255, 0.12);

    border-radius: 10px;
}


/* ========================================
   NARROW SCREEN
======================================== */

@media (max-width: 1000px) {

    .home-page {
        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 25px;

        padding:
            60px 20px 40px;
    }


    .home-content {
        order: 1;

        width: 430px;

        max-width: 100%;
    }


    .selected-tracks {
        position: relative;

        left: auto;
        top: auto;

        order: 2;

        width: 430px;

        max-width: 100%;

        transform: none;

        max-height: 300px;
    }


    .tracks-list {
        max-height: 220px;
    }
}




/* ========================================
   SMALL MOBILE
======================================== */


@media (max-width: 500px) {

    .upload-buttons {
        flex-direction: column;
    }


    .brand {
        font-size: 27px;
    }
}


/* ========================================
   FOOTER
======================================== */

.archive-footer {

    position: relative;

    z-index: 2;

    min-height: 360px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        70px 30px 45px;

    background:
        rgba(7, 7, 7, 0.82);

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter:
        blur(20px);
}


/* ========================================
   FOOTER CONTENT
======================================== */

.footer-content {

    width: 100%;

    max-width: 900px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* ========================================
   BRAND
======================================== */

.footer-brand {

    display: flex;

    align-items: center;

    gap: 14px;
}


.footer-logo {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #eee;

    font-size: 16px;

    font-weight: 600;
}


.footer-title {

    color: #eee;

    font-size: 17px;

    font-weight: 500;
}


.footer-description {

    margin-top: 5px;

    color: #666;

    font-size: 11px;
}


/* ========================================
   DIVIDER
======================================== */

.footer-divider {

    width: 100%;

    height: 1px;

    margin:
        38px 0 28px;

    background:
        rgba(255, 255, 255, 0.06);
}


/* ========================================
   SOCIAL TITLE
======================================== */

.footer-social-title {

    margin-bottom: 16px;

    color: #555;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ========================================
   SOCIAL LINKS
======================================== */

.footer-socials {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;
}


.social-link {

    min-width: 90px;

    padding:
        10px 18px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.035);

    color: #888;

    font-size: 11px;

    text-align: center;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.social-link:hover {

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.14);

    color: #eee;

    transform:
        translateY(-2px);
}


/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-bottom {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 55px;

    color: #444;

    font-size: 10px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 500px) {

    .archive-footer {

        min-height: 420px;

        padding:
            60px 20px 35px;
    }


    .footer-socials {

        width: 100%;
    }


    .social-link {

        flex: 1;

        min-width: 120px;
    }


    .footer-bottom {

        flex-direction: column;

        gap: 8px;

        margin-top: 45px;
    }

}

/* ========================================
   ALBUM VISIBILITY
======================================== */

.visibility-container {

    width: 100%;

    margin-top: 14px;
}


.visibility-label {

    margin-bottom: 8px;

    color: #777;

    font-size: 11px;
}


.visibility-options {

    width: 100%;

    display: flex;

    gap: 10px;
}


.visibility-option {

    flex: 1;

    display: block;

    cursor: pointer;
}


/*
    Сам radio скрываем.
*/

.visibility-option input[type="radio"] {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* ========================================
   CARD
======================================== */

.visibility-card {

    min-height: 58px;

    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    background:
        rgba(18, 18, 18, 0.58);

    color: #777;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.visibility-option:hover
.visibility-card {

    background:
        rgba(28, 28, 28, 0.66);

    border-color:
        rgba(255, 255, 255, 0.14);

    color: #aaa;
}


/*
    Активный вариант.
*/

.visibility-option
input[type="radio"]:checked
+ .visibility-card {

    background:
        rgba(255, 255, 255, 0.075);

    border-color:
        rgba(255, 255, 255, 0.22);

    color: #eee;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.18);
}


.visibility-option
input[type="radio"]:checked
+ .visibility-card
.visibility-card-icon {

    color: #eee;
}


/* ========================================
   TEXT
======================================== */

.visibility-card-icon {

    width: 20px;

    flex-shrink: 0;

    font-size: 15px;

    text-align: center;

    opacity: 0.8;
}


.visibility-card-text {

    min-width: 0;
}


.visibility-card-title {

    display: block;

    color: inherit;

    font-size: 12px;

    font-weight: 500;
}


.visibility-card-description {

    display: block;

    margin-top: 3px;

    color: #5f5f5f;

    font-size: 10px;
}


.visibility-option
input[type="radio"]:checked
+ .visibility-card
.visibility-card-description {

    color: #888;
}

