/* BASE */
body {
    overflow: hidden;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #172822; /* Color base sólido, el gradiente lo ponemos en .bg */
    color: #fff;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #172822;
    /* Gradiente compatible con WebKit viejo (PS3) */
    background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#172822), color-stop(50%,#37615f), color-stop(80%,#192519), color-stop(100%,#151b0d));
    background: #172822; /* fallback */
    z-index: -1;
}

input {
    width: 400px;
    padding: 12px;
    font-size: 18px;
}

/* BOTÓN LOGIN */
#loginBtn {
    padding: 14px 26px;
    font-size: 22px;
    margin: 10px 0;
    background: transparent;
    color: white;
    border: 3px solid white;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 25%;
}
#loginBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
}
#loginBtn:active {
    background: rgba(255, 255, 255, 0.4);
    color: rgb(0, 0, 0);
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header img[alt="logo"] {
    height: 80px;
    margin-top: 40px;
    margin-left: 60px;
}

header img.pfp {
    height: 60px;
    width: 60px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    right: 60px;
    top: 50px;
}

header .right-section {
    position: absolute;
    right: 60px;
    top: 50px;
}

header .division {
    width: 2px;
    height: 60px;
    background-color: #ffffff81;
    position: absolute;
    right: 160px;
    top: 50px;
}

header img[alt="search-svg"] {
    height: 50px;
    position: absolute;
    right: 200px;
    top: 55px;
}

header nav {
    position: absolute;
    left: 200px;
    top: 80px;
}

header nav button {
    background: none;
    border: none;
    color: #495c5a;
    font-size: 32px;
    margin-right: 30px;
    padding-bottom: 10px;
}

header nav button.sel {
    border-bottom: 2px solid white;
    font-weight: bold;
    color: white;
}

/* MAIN CONTENT */
#main {
    position: absolute;
    top: 160px;
    left: 60px;
    width: 90%;
}

.title {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    font-weight: 300;
}

/* WARNING MODAL (PS3 style) */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    text-align: center;
    padding-top: 200px;
}

.warning-text {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
}

.warning-line {
    border-top: 2px solid #fff;
    width: 60%;
    margin: 40px auto;
}

.ok-btn {
    background: none;
    border: none;
    padding: 15px 50px;
    color: #fff;
    font-size: 24px;
}

/* POPULAR PLAYLISTS - Usamos floats en vez de grid */
#popularPlaylists {
    overflow: hidden;
    width: 100%;
}

.playlist-item {
    float: left;
    width: 400px;
    height: 200px;
    margin-right: 40px;
    margin-bottom: 40px;
    background: #222222;
    position: relative;
}

.playlist-item img {
    width: 200px;
    height: 200px;
    float: left;
}

.data-playlist-container {
    position: absolute;
    left: 220px;
    top: 0;
    height: 200px;
    display: table;
}

.data-playlist-container > div {
    display: table-cell;
    vertical-align: bottom;
    padding-bottom: 20px;
}

.playlist-title {
    font-size: 20px;
    margin: 0;
}

.track-count {
    color: #888888;
    font-size: 14px;
    margin-top: 5px;
}

.more-button {
    background: none;
    width: 120px;
    height: 120px;
    font-size: 22px;
    border: 2px solid #4b5a55;
    color: #4b5a55;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    letter-spacing: 3px;
}

/* TOP GENRES - Floats en vez de grid */
#topGenres {
    overflow: hidden;
    width: 100%;
}

.genre-card {
    float: left;
    width: 200px;
    height: 200px;
    margin-right: 40px;
    margin-bottom: 40px;
    background: #222222;
    position: relative;
    text-align: center;
}

.genre-name {
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 8px black;
}

/* YOUR MUSIC - LIKED SONGS */
#myFavouriteSongsSection {
    overflow: hidden;
    width: 100%;
}

.liked-song-item {
    float: left;
    width: 400px;
    height: 400px;
    margin-right: 40px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    text-align: center;
}

.liked-song-cover {
    width: 400px;
    height: 400px;
}

.liked-song-info {
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
}

.liked-song-title {
    font-size: 34px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
}

.liked-song-artist {
    font-size: 20px;
    color: #b3b3b3;
    margin: 10px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
}

#yourmusic {
    position: absolute;
    top: 160px;
    left: 2000px; /* Fuera de pantalla, lo mueves con JS */
    width: 90%;
    transition: none; /* PS3 no soporta transition bien */
}

/* NAVEGACIÓN POR TECLADO (compatible) */
.navigable.keyboard-focus {
    outline: 4px solid #1DB954 !important;
    background: rgba(30, 215, 96, 0.4) !important;
}

/* LOGIN SCREEN */
#login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    text-align: center;
    padding-top: 200px;
}

#login .logo {
    width: 550px;
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -275px;
}
#login .bg {
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
#login img[alt="psmusic"] {
    width: 100px;
    position: absolute;
    bottom: 220px;
    right: 50px;
}

/* LIMPIAR FLOATS */
.container--:after,
#popularPlaylists:after,
#topGenres:after,
#myFavouriteSongsSection:after {
    content: "";
    display: table;
    clear: both;
}
#login-step-two{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    text-align: center;
    padding-top: 150px;
    background-color: #121212;
}
#login-step-two img {
    width: 20%;
    border-radius: 30px;
}
#login-step-two button{
    padding: 14px 26px;
    font-size: 22px;
    margin: 10px 0;
    background: transparent;
    color: white;
    border: 3px solid white;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    margin-left: 20px;
}
#login-step-two .button-container{
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 25%;
}
#login-step-two button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
}
#login-step-two button:active {
    background: rgba(255, 255, 255, 0.4);
    color: rgb(0, 0, 0);
}
#login-step-three{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    text-align: center;
    padding-top: 150px;
    background-color: #121212;
}
#login-step-three input{
    background: #121212;
    border: 1px solid #7c7c7c;
    height: 37px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    word-spacing: 5px;
    color: white;
    font-size: 15px;
    outline: none;
    width: 70%;
}
#login-step-three button{
    padding: 14px 26px;
    font-size: 22px;
    margin: 10px 0;
    background: transparent;
    color: white;
    border: 3px solid white;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    margin-left: 20px;
}
#login-step-three .button-container{
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 25%;
}
#login-step-three button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
}
#login-step-three button:active {
    background: rgba(255, 255, 255, 0.4);
    color: rgb(0, 0, 0);
}
