:root {
    --accent: #1db954;
    --fallback-cover: #333;
    --album-color: #222;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #2a2a2a, #000);
    color: white;
    font-family: "Segoe UI", sans-serif;

    /* QUITAR INSPECCIONAR */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.app {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    height: 100vh;
}

.logo-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 76px; 
    height: 76px; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center; 
    overflow: hidden;
    border: none; 
}

.logo-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* SIDEBAR */

.sidebar {
    background: #000;
    padding: 20px;
}

.sidebar button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
}

.album-card {
    background: var(--album-color);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.album-card img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #444;
}

.album-card span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAIN */

.main {
    padding: 30px;
    overflow-y: auto;
}

#songGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.songCard {
    background: #181818;
    padding: 12px;
    border-radius: 10px;
}

.songCard img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--fallback-cover);
}

.songCard p {
    margin-top: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NOW PLAYING */

.nowplaying {
    background: #111;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: none;
}

#discPlaceholder {
    width: 100%;
    height: 100%;
    background: #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.controls .icon {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.15s;
}

.controls .icon:hover {
    transform: scale(1.2);
}

.controls .big {
    font-size: 28px;
}

#shuffle.active {
    color: var(--accent);
    border-radius: 8px;
}

.time {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

#progress {
    flex: 1;
}

.volumeControl {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

#volume {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    -webkit-appearance: none;
    background: linear-gradient(to right, green 50%, red 50%);
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Marca de agua */

.watermark {
    position: fixed;
    bottom: 5px;
    right: 20px;
    text-align: right;
    font-size: 15px;
    opacity: 0.8;
    font-family: "Segoe UI", sans-serif; /* opcional igual que antes */
}

.watermark .author {
    margin-bottom: 4px;
}

.watermark .links a {
    margin: 0 4px;
    text-decoration: none;
    color: white;
    font-size: 25px;
}

.watermark .links a:hover {
    text-decoration: underline;
}

.watermark .links img {
    width: 27px;
    height: 27px;
    margin-left: 6px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.watermark .links img:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* TOP LINKS MODALS */

.topLinks{
position:fixed;
top:10px;
left:20px;
display:flex;
gap:20px;
z-index:999;
font-family: "Segoe UI", sans-serif; /* igual que marca de agua */
}

.topLinks span{
cursor:pointer;
font-weight:bold;
}

/* MODAL ESTILO MEJORADO */

.modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.7);
display:none;
justify-content:center;
align-items:center;
z-index:1000;
}

.modalBox{
background:#1c1c1c;
padding:30px;
border-radius:15px;
width:320px;
text-align:center;
box-shadow:0 0 20px rgba(0,255,0,0.5);
animation:fadeIn 0.3s ease;
}

.modalBox h2{
font-family:"Segoe UI", sans-serif;
margin-bottom:15px;
color:#1db954;
}

.modalBox p{
margin-bottom:20px;
}

.modalBox button{
padding:10px 20px;
border:none;
border-radius:8px;
background:var(--accent);
color:#fff;
cursor:pointer;
transition:0.2s;
}

.modalBox button:hover{
background:#15a347;
}

@keyframes fadeIn{
from{opacity:0; transform:translateY(-20px);}
to{opacity:1; transform:translateY(0);}
}
