/* ==========================
   HARUKA'S WEB - SOUNDTRACK
========================== */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

:root{
    --bg:#FAF9FC;
    --card:#EEE8FA;
    --accent:#D8CCF8;
    --text:#3D3552;
    --shadow:rgba(0,0,0,.15);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Quicksand',sans-serif;
    background:linear-gradient(135deg,var(--bg),#F2EDFF);
    color:var(--text);
}

/*=========================
HEADER
=========================*/

.titlebar{
    background:linear-gradient(135deg,#D8CCF8,#EEE8FA);
    text-align:center;
    padding:35px;
    border-bottom:4px solid #CDB8F8;
}

.titlebar h1{
    font-size:40px;
    margin-bottom:15px;
}

.titlebar img{
    width:400px;
    max-width:90%;
    transition:.4s;
}

.titlebar img:hover{
    transform:scale(1.04);
}

.titlebar p{
    width:min(700px,90%);
    margin:auto;
    margin-top:15px;
    line-height:1.8;
}

/*=========================
MENU
=========================*/

.menu{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
    background:white;
    padding:15px;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.menu a{
    text-decoration:none;
    color:var(--text);
    padding:10px 16px;
    border-radius:12px;
    transition:.3s;
}

.menu a:hover{
    background:var(--accent);
    transform:translateY(-3px);
}

/*=========================
GENERAL
=========================*/

main{
    width:min(1100px,92%);
    margin:auto;
    padding:40px 0;
}

.card{
    background:var(--card);
    border-radius:20px;
    padding:30px;
    margin-bottom:35px;
    box-shadow:0 10px 20px var(--shadow);
}

.card h2{
    text-align:center;
    margin-bottom:25px;
    font-size:30px;
}

.rating{
    font-size:24px;
    color:#8B65FF;
    margin:15px 0;
}

/*=========================
NOW PLAYING
=========================*/

.player{
    display:flex;
    gap:35px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:center;
}

.player img{
    width:260px;
    border-radius:18px;
    box-shadow:0 12px 25px rgba(0,0,0,.2);
}

.info{
    flex:1;
    min-width:280px;
}

.info h3{
    font-size:30px;
    margin-bottom:12px;
}

.info p{
    margin:8px 0;
}

.caption{
    text-align:center;
    margin-top:25px;
    font-style:italic;
}

.spotify{
    display:inline-block;
    margin-top:18px;
    background:#CDB8F8;
    color:#3D3552;
    text-decoration:none;
    padding:12px 22px;
    border-radius:25px;
    transition:.3s;
    font-weight:bold;
}

.spotify:hover{
    background:#B79DF3;
    transform:translateY(-3px);
}

/*=========================
RECOMENDACIONES
=========================*/

.recommendation{
    display:flex;
    gap:25px;
    align-items:flex-start;
    flex-wrap:wrap;
    background:white;
    padding:20px;
    border-radius:18px;
    margin-bottom:25px;
    box-shadow:0 6px 15px rgba(0,0,0,.08);
}

.recommendation img{
    width:180px;
    border-radius:15px;
}

.recommendation h3{
    margin-bottom:5px;
}

.recommendation h4{
    margin-top:18px;
    color:#7152C6;
}

/*=========================
      BANDA SONORA
=========================*/

.soundtrack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}


.sound-item {
    background: white;
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}


.sound-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,.14);
}


.sound-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}


.sound-item p {
    margin: 8px 0;
}


.sound-item .rating {
    margin: 12px 0 16px;
    font-size: 20px;
}


.sound-item img {
    width: 220px;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
    display: block;
    margin: 0 auto;
    transition: transform .35s ease;
}


.sound-item img:hover {
    transform: scale(1.08) rotate(-3deg);
}
/*=========================
ALBUM DEL MES
=========================*/

.album-month h4{
    margin-top:20px;
    color:#6F4CC9;
}

/*=========================
LETRAS
=========================*/

blockquote{
    background:white;
    border-left:6px solid #B99CFF;
    border-radius:12px;
    padding:25px;
    font-size:20px;
    margin-bottom:25px;
    line-height:1.8;
}

blockquote footer{
    margin-top:20px;
    font-size:15px;
    opacity:.7;
}

/*=========================
FOOTER
=========================*/

footer{
    text-align:center;
    padding:40px;
    opacity:.8;
}

/*=========================
RESPONSIVE
=========================*/

@media(max-width:700px){

    .titlebar h1{
        font-size:30px;
    }

    .player{
        flex-direction:column;
    }

    .player img{
        width:220px;
    }

    .recommendation{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .recommendation img{
        width:220px;
    }

}

/* =========================
   CHAT DE VISITANTES
========================= */

.visitor-chat {
    max-width: 850px;
    margin: 40px auto;
    padding: 0;
    overflow: hidden;

    background: #F1ECFF;
    border: 2px solid #B9A4EC;
    border-radius: 14px;

    box-shadow: 0 10px 25px rgba(82, 65, 112, 0.16);
}


/* Barra superior estilo Windows */

.chat-titlebar {
    padding: 9px 12px;

    background: linear-gradient(
        to right,
        #806DA4,
        #B9A4EC
    );

    color: white;

    font-family: "Courier New", monospace;
    font-size: 13px;
    font-weight: bold;

    text-align: left;

    border-bottom: 2px solid #62527F;
}


/* Texto de bienvenida */

.chat-intro {
    padding: 12px 18px;

    background: #FFFFFF;

    text-align: center;

    color: #62527F;

    font-size: 13px;
}

.chat-intro p {
    margin: 0;
}


/* Ventana donde está Cbox */

.chat-window {
    margin: 0 15px 15px;

    background: white;

    border: 2px solid #D8CCF8;
    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        inset 0 0 8px rgba(98, 82, 127, 0.12),
        0 5px 12px rgba(0, 0, 0, 0.08);
}


/* El iframe */

.chat-window iframe {
    display: block;
    width: 100%;
    height: 450px;

    border: none;
}


/* Efecto al pasar el cursor */

.visitor-chat {
    transition: transform .3s ease, box-shadow .3s ease;
}

.visitor-chat:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(82, 65, 112, 0.20);
}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    .visitor-chat {
        width: 94%;
    }

    .chat-window {
        margin: 0 8px 8px;
    }

    .chat-window iframe {
        height: 450px;
    }
}