* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f5f7fb;
    color: #111827;
}


/* Barra superior */

.topbar {
    height: 72px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}


.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #2563eb;
}


#search {
    width: 260px;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    outline: none;
    font-size: 14px;
}


/* Layout principal */

.layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    padding: 30px;
}


/* Reproductor */

.player {

    background: white;
    border-radius: 24px;
    padding: 25px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.08);

}


.station-cover {

    height: 250px;
    border-radius: 20px;

    background:
    linear-gradient(
    135deg,
    #2563eb,
    #60a5fa
    );

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

}



.waves {

    width:120px;
    height:120px;

    border-radius:50%;

    border:5px solid rgba(255,255,255,.7);

    animation:pulse 2s infinite;

}



@keyframes pulse {

0% {
    transform:scale(.8);
    opacity:.5;
}

50% {
    transform:scale(1);
    opacity:1;
}

100% {
    transform:scale(.8);
    opacity:.5;
}

}



.station-info h1 {

    margin:22px 0 5px;
    font-size:25px;

}



.station-info p {

    margin:0;
    color:#6b7280;

}



audio {

    width:100%;
    margin-top:25px;

}



/* Biblioteca */

.library h2 {

    margin-top:0;

}



.radio-grid {

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

}



/* Tarjetas */


.radio-card {

    background:white;

    border-radius:18px;

    padding:18px;

    display:flex;

    align-items:center;

    gap:15px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.06);

    transition:.2s;

}



.radio-card:hover {

    transform:translateY(-4px);

}



.radio-card img {

    width:55px;
    height:55px;

    object-fit:contain;

}



.placeholder {

    width:55px;
    height:55px;

    background:#2563eb;

    color:white;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:14px;

    font-weight:bold;

}



.radio-card h3 {

    margin:0;

}



.radio-card p {

    margin:5px 0;

    color:#6b7280;

    font-size:14px;

}



.radio-card button {

    margin-left:auto;

    width:42px;
    height:42px;

    border-radius:50%;

    border:0;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-size:16px;

}



.radio-card button:hover {

    background:#1d4ed8;

}



/* Modo móvil */

@media(max-width:800px){

.layout {

    grid-template-columns:1fr;

    padding:18px;

}


.topbar {

    padding:0 15px;

}


#search {

    width:150px;

}


.station-cover {

    height:200px;

}

}



/* Horizontal */

@media(orientation:landscape) and (max-height:600px){

.layout {

    grid-template-columns:300px 1fr;

}


.station-cover {

    height:160px;

}

}