:root {
    --spotify-green: #1db954;
    --spotify-dark: #191414;
    --spotify-grey: #232323;
    --spotify-light: #282828;
    --spotify-white: #fff;
    --spotify-shadow: 0 8px 32px 0 rgba(30,215,96,0.10), 0 2px 12px rgba(0,0,0,0.10);
}

html, body {
    overflow-x: hidden !important;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--spotify-white);
    font-family: 'Inter', Arial, sans-serif;
    position: relative;
    min-height: 100vh;
    /* Hintergrund wird jetzt vom ::before gemacht */
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #181c1f 0%, #232526 50%, #1d8f45 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

header {
    background: var(--spotify-dark);
    padding: 32px 0 18px 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 10;
}

h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #1db954 30%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spotify-green {
    color: var(--spotify-green);
    font-weight: 900;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 16px 0 16px; /* Weniger Padding unten */
    position: relative;
}

.button, .action-btn, .back-fab {
    font-family: inherit;
    font-weight: 700;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.button {
    background: var(--spotify-green);
    color: var(--spotify-white);
    padding: 14px 38px;
    font-size: 1.18em;
    border-radius: 32px;
    box-shadow: 0 2px 16px rgba(30,215,96,0.13);
    margin: 28px 0;
    letter-spacing: 0.5px;
}

.button:hover, .button:focus {
    background: #1ed760;
    color: #fff;
    transform: scale(1.04);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--spotify-grey);
    border-radius: 18px;
    padding: 18px 28px;
    margin-bottom: 28px;
    box-shadow: var(--spotify-shadow);
}

.user-img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--spotify-green);
    background: #222;
}

.playlist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 8px;
}

.playlist-card {
    background: var(--spotify-grey);
    border-radius: 22px;
    box-shadow: var(--spotify-shadow);
    padding: 22px 18px 18px 18px;
    width: 210px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    border: 2px solid transparent;
}

.playlist-card:hover, .playlist-card:focus {
    transform: translateY(-8px) scale(1.045);
    box-shadow: 0 12px 36px rgba(30,215,96,0.18);
    border: 2px solid var(--spotify-green);
}

.playlist-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    background: #191414;
}

.playlist-name {
    font-size: 1.18em;
    font-weight: bold;
    color: var(--spotify-green);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

footer {
    text-align: center;
    padding: 22px 0 18px 0;
    background: var(--spotify-dark);
    color: #aaa;
    left: 0;
    bottom: 0;
    width: 100vw;
    font-size: 1.13em;
    letter-spacing: 1px;
    z-index: 100;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
    margin-top: 50px;
}

#swipe-area {
    margin-top: 24px;
    min-height: 0; /* war: 100vh oder mehr */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.swipe-back-outer {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 20;
}

@media (max-width: 700px) {
    .swipe-back-outer {
        top: 12px;
        left: 10px;
    }
}

.back-fab {
    background: rgba(25,20,20,0.92);
    color: var(--spotify-green);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2em;
    box-shadow: 0 2px 12px rgba(30,215,96,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--spotify-green);
}
.back-fab:hover, .back-fab:focus {
    background: var(--spotify-green);
    color: #fff;
    border-color: #fff;
    transform: scale(1.08);
}

.swipe-card {
    background: var(--spotify-grey);
    border-radius: 38px;
    box-shadow: 0 16px 48px 0 rgba(30,215,96,0.13), 0 2px 12px rgba(0,0,0,0.10);
    padding: 44px 32px 36px 32px;
    width: 440px;
    max-width: 98vw;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s;
    min-height: 70vh;
    max-height: 80vh;
    margin-top: 24px;
    border: 2.5px solid #232;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}

.swipe-card iframe {
    border-radius: 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 32px rgba(30,215,96,0.10), 0 2px 12px rgba(0,0,0,0.10);
    width: 100%;
    min-height: 352px;
    background: #191414;
}

.swipe-title {
    font-size: 1.35em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -1px;
}

.swipe-artist {
    color: #b3b3b3;
    margin-bottom: 18px;
    font-size: 1.08em;
    font-weight: 500;
}

.swipe-actions {
    display: flex;
    gap: 54px;
    justify-content: center;
    margin-top: 32px;
}

.action-btn {
    background: var(--spotify-grey);
    color: var(--spotify-green);
    border: 2.5px solid var(--spotify-green);
    border-radius: 50%;
    width: 74px;
    height: 74px;
    font-size: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(30,215,96,0.10);
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
}
.action-btn:hover, .action-btn:active {
    background: var(--spotify-green);
    color: #fff;
    border: 2.5px solid #fff;
    transform: scale(1.13);
}
.action-no { border-color: #ff4d4d; color: #ff4d4d; }
.action-no:hover, .action-no:active { background: #ff4d4d; color: #fff; border-color: #fff; }
.action-yes { border-color: #1db954; color: #1db954; }
.action-yes:hover, .action-yes:active { background: #1db954; color: #fff; border-color: #fff; }

@media (max-width: 600px) {
    .swipe-card {
        width: 99vw;
        padding: 8vw 2vw 8vw 2vw;
        min-height: 60vw;
    }
    .swipe-card iframe {
        min-height: 48vw;
    }
    .action-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3em;
    }
    .swipe-back-outer {
        top: 6vw;
        left: 2vw;
    }
}

body.swipe-active {
    height: 100vh !important;
    overflow: hidden !important;
}

#swipe-area.swipe-mode {
    min-height: 0;
    height: calc(100vh - 80px - 70px); /* 80px Header, 70px Footer, ggf. anpassen */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    position: relative;
}

.swipe-card {
    margin: 0 !important;
    padding: 32px 32px;
    width: 440px;
    max-width: 98vw;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swipe-playlist-title {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    z-index: 12;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    pointer-events: none;
}
@media (max-width: 700px) {
    .swipe-playlist-title {
        top: 18px;
        font-size: 1.2em;
    }
}

#profile-menu-container {
    position: absolute;
    top: 28px;
    right: 38px;
    z-index: 100;
}

.profile-avatar-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    padding: 0;
    width: 54px;
    height: 54px;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-btn img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--spotify-green);
    background: #222;
    transition: border 0.2s;
}

.profile-avatar-btn:active,
.profile-avatar-btn:focus {
    box-shadow: 0 4px 24px rgba(30,215,96,0.18);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 62px;
    right: 0;
    background: var(--spotify-grey);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(30,215,96,0.10), 0 2px 12px rgba(0,0,0,0.10);
    min-width: 180px;
    padding: 12px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.22s, transform 0.22s;
    z-index: 200;
}

.profile-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.profile-dropdown-item {
    padding: 12px 28px;
    color: #fff;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    display: block;
}

.profile-dropdown-item:hover {
    background: var(--spotify-green);
    color: #191414;
}

.login-panel {
    background: var(--spotify-grey);
    border-radius: 28px;
    box-shadow: 0 8px 32px 0 rgba(30,215,96,0.10), 0 2px 12px rgba(0,0,0,0.10);
    padding: 44px 32px 32px 32px;
    max-width: 420px;
    margin: 64px auto 0 auto;
    text-align: center;
    color: #fff;
    animation: fadeIn 0.5s;
}
.login-logo img {
    width: 90px;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 12px #1db95444);
}
.login-panel h2 {
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 900;
    color: var(--spotify-green);
}
.login-subline {
    color: #b3b3b3;
    font-size: 1.08em;
    margin-bottom: 24px;
}
.login-btn {
    font-size: 1.13em;
    padding: 12px 28px;
    margin-bottom: 28px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.login-info {
    margin-top: 10px;
    font-size: 1.08em;
    color: #b3b3b3;
    background: #232323;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: left;
}
.login-section {
    margin-bottom: 16px;
}
.login-section-title {
    font-weight: bold;
    color: var(--spotify-green);
    margin-bottom: 4px;
    font-size: 1.08em;
}
.login-info ul {
    margin: 0 0 0 18px;
    padding: 0;
    list-style: disc;
}
.login-info li {
    margin-bottom: 8px;
}