* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #0d0f17 url('../img/ui/tile.png');
    color: #d8d9e0;
    font: 12px Tahoma, Arial, Verdana, sans-serif;
}

a {
    color: #c9c3ff;
    text-decoration: none;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================================
   WRAPPER
   ========================================================= */

#wrapper {
    width: 980px;
    margin: 18px auto 30px;
    background: #191b26;
    border: 1px solid #686a7e;
    box-shadow: 0 0 0 5px #08090d, 0 0 28px #000;
}

/* =========================================================
   HEADER
   ========================================================= */

#top {
    height: 116px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 35%,
            rgba(115, 82, 190, .34),
            transparent 30%
        ),
        linear-gradient(#272a40, #11131e);
    border-bottom: 1px solid #73758d;
}

#top:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: url('../img/ui/equalizer.png') bottom / 700px 70px repeat-x;
    opacity: .5;
}

.brand {
    position: absolute;
    left: 25px;
    top: 18px;
    z-index: 2;
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 7px;
    color: #fff;
    text-shadow:
        2px 2px 0 #5c43a0,
        0 0 10px #6f56ca66;
}

.subtitle {
    position: absolute;
    left: 28px;
    top: 68px;
    z-index: 2;
    color: #9b9eaf;
    font-size: 11px;
    letter-spacing: 2px;
}

.badge {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 220px;
    height: 46px;
    background: url('../img/ui/badge.png') center / contain no-repeat;
    z-index: 2;
}

/* =========================================================
   NAVIGATION
   PC: EXACTAMENTE COMO TU DISEÑO ORIGINAL
   ========================================================= */

#nav {
    padding: 6px 7px;
    height: 42px;
    background: linear-gradient(#404254, #20212c);
    border-bottom: 1px solid #0b0c11;
}

#nav a {
    display: inline-block;
    height: 29px;
    line-height: 29px;
    padding: 0 17px;
    margin-right: 5px;
    font-weight: bold;
    font-size: 11px;
    color: #eee;
    border: 1px solid #6b6e81;
    border-top-color: #999cad;
    background: linear-gradient(#575a6e, #2f303d);
    box-shadow:
        inset 0 1px #ffffff26,
        0 1px #111;
}

#nav a:hover {
    background: linear-gradient(#7167a3, #3c365b);
    text-decoration: none;
}

/* =========================================================
   BODY
   ========================================================= */

#body {
    display: grid;
    grid-template-columns: 188px 1fr;
    gap: 10px;
    padding: 10px;
}

.sidebox,
.panel {
    border: 1px solid #5b5d70;
    background: #171923;
    box-shadow:
        inset 0 0 0 1px #272a38,
        0 2px 5px #090a0e;
    margin-bottom: 10px;
}

.sidehead,
.panelhead {
    padding: 7px 9px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(#4d5064, #292b39);
    border-bottom: 1px solid #66687c;
}

.sidein,
.panelin {
    padding: 9px;
}

.sidein {
    line-height: 1.65;
    color: #aaadbd;
}

.side-links a {
    display: block;
    padding: 5px 6px;
    border-bottom: 1px dotted #454754;
}

.side-links a:before {
    content: "» ";
    color: #a898ff;
}

/* =========================================================
   FEATURE
   ========================================================= */

.breadcrumb {
    font-size: 10px;
    color: #7d8090;
    margin: 0 0 8px;
}

.feature {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 14px;
    background:
        linear-gradient(135deg, #ffffff06, transparent 55%),
        #151721;
    border: 1px solid #585b6e;
    padding: 10px;
}

.coverframe {
    background: #090a0f;
    padding: 8px;
    border: 1px solid #777a91;
    box-shadow:
        0 0 0 3px #252735,
        0 6px 12px #000;
}

.coverframe img,
.coverframe .cover-empty {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.coverlabel {
    text-align: center;
    margin-top: 6px;
    color: #777b8a;
    font-size: 9px;
    letter-spacing: 1px;
}

.cover-empty {
    background: linear-gradient(135deg, #181a27, #0e0f17);
    border: 1px solid #4c4e60;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #797d8e;
    padding: 12px;
}

.feature h1 {
    font-size: 24px;
    margin: 0 0 3px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kicker,
.year {
    font-size: 10px;
    color: #999dae;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 9px 0;
}

.meta span {
    background: #252735;
    border: 1px solid #54576a;
    padding: 4px 7px;
    color: #c8c9d2;
    font-size: 10px;
}

.hr {
    height: 1px;
    background: #454857;
    margin: 9px 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btnrow {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 7px 11px;
    color: #fff !important;
    font-weight: bold;
    font-size: 10px;
    border: 1px solid #8f92a5;
    background: linear-gradient(#666a7c, #353845);
    box-shadow:
        inset 0 1px #ffffff2b,
        0 1px #0c0d12;
}

.btn:hover {
    background: linear-gradient(#7d73b6, #403a62);
    text-decoration: none;
}

.green {
    background: linear-gradient(#596d64, #2f4039);
}

.purple {
    background: linear-gradient(#7767aa, #443967);
}

/* =========================================================
   TRACKS
   ========================================================= */

.trackcols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tracklist {
    width: 100%;
    border-collapse: collapse;
    background: #11131a;
    border: 1px solid #3d4050;
}

.tracklist td {
    padding: 5px;
    border-bottom: 1px solid #2e303d;
}

.tracklist tr:hover {
    background: #1e2030;
}

.tn {
    width: 31px;
    text-align: center;
    color: #8e91a1;
    font-size: 10px;
}

.tm {
    width: 45px;
    text-align: right;
    color: #8e91a1;
    font-size: 10px;
    white-space: nowrap;
}

.bonus td {
    background: #2b2117;
}

.bonus .tt {
    color: #ffd394;
}

/* =========================================================
   ALBUM GRID
   ========================================================= */

.albumgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.card {
    background: #13151d;
    border: 1px solid #56596c;
    padding: 7px;
    box-shadow: inset 0 0 0 1px #232631;
}

.card:hover {
    border-color: #8d7acd;
}

.card img,
.card .cover-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card h3 {
    font-size: 12px;
    color: #fff;
    margin: 7px 2px 2px;
    line-height: 1.25;
}

.type {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 5px;
    border: 1px solid #4e5162;
    background: #252735;
    color: #bdb7ff;
    font-size: 9px;
}

.desc {
    height: 47px;
    overflow: hidden;
    margin: 6px 2px;
    color: #888b9b;
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   TWO COLUMNS / BIO
   ========================================================= */

.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bio {
    line-height: 1.7;
}

.bioimg {
    float: left;
    width: 135px;
    height: 135px;
    object-fit: cover;
    border: 1px solid #6c6f80;
    margin: 0 11px 7px 0;
}

.timeline {
    border-left: 2px solid #585078;
    margin-left: 8px;
    padding-left: 12px;
    line-height: 1.6;
}

.timeline div {
    margin-bottom: 9px;
}

.timeline b {
    color: #fff;
}

.notice {
    border: 1px solid #775e40;
    background: #2c2219;
    color: #e7c99e;
    padding: 8px;
    font-size: 10px;
    line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    border-top: 1px solid #5d5f73;
    background: #101119;
    padding: 14px;
    text-align: center;
    color: #696c7b;
    font-size: 10px;
}


/* =========================================================
   =========================================================
   RESPONSIVE
   TODO LO ANTERIOR SE MANTIENE IGUAL EN PC
   =========================================================
   ========================================================= */


/* ---------------------------------------------------------
   1000px
   Solo reducimos el wrapper para evitar scroll horizontal.
   --------------------------------------------------------- */

@media screen and (max-width: 1000px) {

    #wrapper {
        width: calc(100% - 20px);
        max-width: 980px;
    }

}


/* ---------------------------------------------------------
   TABLETS
   --------------------------------------------------------- */

@media screen and (max-width: 780px) {

    /*
     * Menú:
     * Los 5 botones se distribuyen automáticamente.
     */
    #nav {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
    }

    #nav a {
        margin-right: 0;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }

    /*
     * Sidebar pasa arriba.
     */
    #body {
        grid-template-columns: 1fr;
    }

    /*
     * Badge desaparece para dejar espacio al título.
     */
    .badge {
        display: none;
    }

    /*
     * Feature todavía conserva imagen + información
     * mientras haya espacio suficiente.
     */
    .feature {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    }

    /*
     * Tracks y bloques dobles pasan a una columna.
     */
    .trackcols,
    .twocol {
        grid-template-columns: 1fr;
    }

    /*
     * Álbumes: 2 columnas.
     */
    .albumgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   CELULARES
   --------------------------------------------------------- */

@media screen and (max-width: 560px) {

    body {
        overflow-x: hidden;
    }

    #wrapper {
        width: calc(100% - 10px);
        max-width: none;
        margin: 8px auto 20px;
        box-shadow:
            0 0 0 2px #08090d,
            0 0 18px #000;
    }


    /* ---------------- HEADER ---------------- */

    #top {
        height: 105px;
    }

    .brand {
        left: 14px;
        top: 18px;
        font-size: clamp(24px, 9vw, 32px);
        letter-spacing: 4px;
        white-space: nowrap;
    }

    .subtitle {
        left: 16px;
        top: 65px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .badge {
        display: none;
    }


    /* ---------------- MENÚ ---------------- */

    #nav {
        width: 100%;
        height: auto;
        padding: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    #nav a {
        width: 100%;
        min-width: 0;
        height: 30px;
        line-height: 28px;
        margin: 0;
        padding: 0 5px;
        text-align: center;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /*
     * El quinto botón ocupa toda la fila.
     */
    #nav a:nth-child(5) {
        grid-column: 1 / -1;
    }


    /* ---------------- BODY ---------------- */

    #body {
        display: block;
        padding: 7px;
    }

    .sidebox,
    .panel {
        margin-bottom: 8px;
    }

    .sidein,
    .panelin {
        padding: 8px;
    }


    /* ---------------- FEATURE ---------------- */

    .feature {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 8px;
    }

    .coverframe {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .feature h1 {
        font-size: 20px;
        line-height: 1.2;
        word-break: normal;
    }

    .meta {
        gap: 5px;
    }

    .meta span {
        padding: 4px 6px;
    }


    /* ---------------- BOTONES ---------------- */

    .btnrow {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 8px 5px;
    }


    /* ---------------- TRACKS ---------------- */

    .trackcols {
        grid-template-columns: 1fr;
    }

    .tracklist {
        width: 100%;
        table-layout: fixed;
    }

    .tracklist td {
        padding: 5px 4px;
    }

    .tn {
        width: 30px;
    }

    .tm {
        width: 45px;
    }


    /* ---------------- ALBUMS ---------------- */

    .albumgrid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .card {
        padding: 8px;
    }


    /* ---------------- TWO COLUMNS ---------------- */

    .twocol {
        grid-template-columns: 1fr;
    }


    /* ---------------- BIO ---------------- */

    .bioimg {
        max-width: 135px;
    }

}


/* ---------------------------------------------------------
   CELULARES MUY PEQUEÑOS
   --------------------------------------------------------- */

@media screen and (max-width: 380px) {

    #wrapper {
        width: calc(100% - 6px);
        margin-top: 5px;
    }


    /* Header */

    #top {
        height: 98px;
    }

    .brand {
        left: 11px;
        top: 17px;
        font-size: 22px;
        letter-spacing: 3px;
    }

    .subtitle {
        left: 13px;
        top: 58px;
        font-size: 8px;
    }


    /* Menú:
       los 5 botones pasan a una columna
       para que absolutamente ninguno se corte. */

    #nav {
        grid-template-columns: 1fr;
    }

    #nav a,
    #nav a:nth-child(5) {
        grid-column: auto;
        width: 100%;
    }


    /* Feature */

    .feature h1 {
        font-size: 18px;
    }


    /* Botones internos */

    .btnrow {
        grid-template-columns: 1fr;
    }


    /* Bio */

    .bioimg {
        float: none;
        display: block;
        width: 100%;
        height: auto;
        max-width: 220px;
        margin: 0 auto 10px;
    }


    /* Timeline */

    .timeline {
        margin-left: 4px;
        padding-left: 9px;
    }

}