body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

.app {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    background: linear-gradient(135deg, #4b1fb8, #b93f76);
    color: white;
}

.frame {
    width: 60vw;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    padding-top: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 8px;
}

.header-left {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: 1px;
}

.header-title-link {
    color: white;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: 1px;
    cursor: pointer;
}

.header-title-link:hover {
    color: white;
    text-decoration: none;
}

.nav {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav:hover {
    text-decoration: underline;
    transform: rotate(7deg);
}

.nav.active {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
    text-decoration: none;
    transform: none;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.card {
    width: 300px;
    height: 280px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    color: white;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.login-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.service-name-right {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    width: 100%;
    height: 40px;
}

.service-name {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.service-label {
    text-align: center;
    white-space: nowrap;
}

.arrow-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}

.arrow-btn[disabled] {
    opacity: 0.3;
    cursor: default;
}

.arrow-btn:hover:not([disabled]) {
    opacity: 0.7;
}

.card-icon.spotify {
    background-color: #1ed760;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swap-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.swap-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.playlist-header {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px 24px 0 0;
}

.playlist-table {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
}

.row {
    display: grid;
    grid-template-columns: 60px 200px 1fr;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 18px;
    margin-bottom: 0px;
}

.row + .row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: auto;
    cursor: pointer;
}

.cell.meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cover {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    object-fit: cover;
}

.cell.tracks {
    max-height: 160px;
    overflow-y: auto;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track {
    white-space: nowrap;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.loading-row {
    grid-column: 2 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.loading-bar::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: #00ff95;
    animation: slide 1.1s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes slide {
    0% {
        left: -50%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -50%;
    }
}

.transfer-btn {
    background: linear-gradient(135deg, #4b1fb8, #b93f76);
    border: none;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.transfer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.footer {
    width: 100%;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;

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

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

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.next-btn {
    background: linear-gradient(135deg, #8a4dff, #ff8bcf);
    border: 1.8px solid rgba(255, 255, 255, 0.45);
    color: white;
    font-size: 1.15rem;
    font-weight: 700;

    padding: 10px 60px;
    border-radius: 22px;
    min-width: 260px;
    text-align: center;
}

.loading-bar-done {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.loading-bar-done::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: #4da3ff;
    animation: slide 1.1s ease-in-out infinite;
    border-radius: 4px;
}

.done-loading-text {
    margin-top: 16px;
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
}

.done-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.done-message {
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 22px;
    border: none;
    font-size: 16px;
    text-align: center;
}

.donate-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 24px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background: #006aff;
    color: white;
}

.support-container {
    margin: 32px auto 0;
    max-width: 520px;
    padding: 24px 28px;
    border-radius: 32px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.support-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.support-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 22px;
    border: none;
    font-size: 16px;
    text-align: center;
    outline: none;
}

.support-send-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 24px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background: #006aff;
    color: white;
    transition: 0.2s ease;
}

.support-send-btn:hover {
    opacity: 0.9;
}
