:root {
    --cor-principal: rgba(60, 2, 126, 0.37);
    --cor-segundaria: rgba(220, 192, 228, 0.74);
    --cor-terciaria: #562596;
    --cor-quarta: #725c99;
    --cor-quinta: rgb(231, 172, 255);
}

html, body {
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0d0118 0%, #2a0550 35%, #4a0e8a 65%, #6b1fa8 85%, #8b35c0 100%);
}

h1 {
    letter-spacing: 10px;
    font-size: 90px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 100;
}

h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th,
td {
    border: 2px solid rgba(209, 225, 233, 0.34);
    padding: 15px;
    text-align: center;
}

th {
    background-color: rgba(67, 19, 143, 0.41);
}

section {
    position: relative;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(to bottom, var(--cor-principal), var(--cor-segundaria));
    border: 2px solid #562596;
    max-width: 92%;
    margin: 30px;
    box-sizing: border-box;
}

.tabela-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

section,
ul {
    list-style: none;
}

section,
li {
    margin-bottom: 10px;
}

audio {
    width: 340px;
    height: 54px;
}

audio::-webkit-media-controls-enclosure {
    background-color: var(--cor-quarta);
    box-shadow: inset 0 1px 2px -1px var(--cor-quinta);
    border-radius: 1rem;
    height: fit-content;
}

audio::-webkit-media-controls-panel {
    padding: 0.5rem;
    height: fit-content;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    box-shadow: inset 0 1px 2px -1px var(--cor-quinta), 0 0.3rem 0.3rem rgba(47, 14, 85, 0.3);
    border-radius: 0.5rem;
    margin-inline-end: 0.5rem;
}

audio::-webkit-media-controls-play-button {
    background-color: var(--cor-quinta);
}

audio::-webkit-media-controls-mute-button {
    background-color: var(--cor-quinta);
}

audio::-webkit-media-controls-timeline {
    background-color: var(--cor-principal);
    border-radius: 0.5rem;
    margin-inline-start: 1rem;
}

audio::-webkit-media-controls-volume-slider {
    background-color: var(--cor-principal);
    border-radius: 0.5rem;
    padding-inline: 0.5rem;
    margin-inline-start: 0.5rem;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

td {
    font-size: 20px;
    padding-left: 20px;
    color: #fcfcfc;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
    line-height: 1.6;
}

summary {
    font-size: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
    background-color: var(--cor-principal);
    padding: 15px 20px;
    border-radius: 10px;
    transition: 0.3s;
    display: inline-block;
    width: 500px;
    margin-left: 30px;
}

summary:hover {
    background-color: var(--cor-terciaria);
    transform: scale(1.05);
}

.tdbord {
    border: none;
    padding: 15px;
    text-align: center;
}

.espc {
    line-height: 65px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    section {
        max-width: 98%;
        margin: 10px auto;
        padding: 10px;
    }

    /* Esconde o cabeçalho — labels vêm do data-label */
    thead tr:last-child {
        display: none;
    }

    /* Cada linha vira um card */
    tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid rgba(209, 225, 233, 0.34);
        border-radius: 8px;
        overflow: hidden;
    }

    /* Cada célula ocupa linha inteira */
    td {
        display: block;
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
        line-height: 1.5;
        text-align: left;
        border: none;
        border-bottom: 1px solid rgba(209, 225, 233, 0.2);
    }

    td:last-child {
        border-bottom: none;
    }

    /* Rótulo antes do conteúdo via data-label */
    td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: var(--cor-quinta);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    audio {
        width: 100%;
        min-width: 0;
    }

    .tdbord {
        display: none;
    }

    .espc {
        line-height: 2;
    }

    summary {
        width: 90%;
        margin-left: 5%;
        font-size: 15px;
    }

    body {
        background: linear-gradient(135deg, #0d0118 0%, #2a0550 40%, #4a0e8a 100%);
    }
}


/* ===== MEDIA QUERY TABLET (601px – 1024px) ===== */
@media (min-width: 601px) and (max-width: 1024px) {
    section {
        max-width: 90%;
        margin: 20px auto;
        padding: 18px;
    }

    audio {
        width: 260px;
    }

    table {
        font-size: 15px;
    }

    th, td {
        padding: 10px 12px;
    }

    summary {
        width: 380px;
        font-size: 17px;
    }

    h1 {
        font-size: 60px;
    }
}

/* ===== DESKTOP (>= 1025px) — fundo com personagem + quadro à direita ===== */
@media (min-width: 1025px) {
    body {
        background: linear-gradient(135deg, #0d0118 0%, #2a0550 35%, #4a0e8a 65%, #6b1fa8 85%, #8b35c0 100%);
        background-image: url('https://i.pinimg.com/1200x/15/99/12/1599124c1b2b5ba9583f7b153206f619.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        
    }

    section {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== TABLET GRANDE / LANDSCAPE (1025px – 1280px) ===== */
@media (min-width: 1025px) and (max-width: 1280px) {
    section { max-width: 85%; margin-top: 20px !important; margin-bottom: 20px !important; }
    audio { width: 300px; }
    h1 { font-size: 70px; }
    summary { width: 450px; }
}

/* ===== DESKTOP PEQUENO (1281px – 1440px) ===== */
@media (min-width: 1281px) and (max-width: 1440px) {
    section { max-width: 90%; }
    audio { width: 320px; }
    h1 { font-size: 80px; }
}

/* ===== DESKTOP GRANDE / TV (> 1440px) ===== */
@media (min-width: 1441px) {
    section { max-width: 92%; margin-top: 30px !important; margin-bottom: 30px !important; }
    audio { width: 360px; }
    h1 { font-size: 90px; }
    summary { width: 560px; font-size: 22px; }
    td { font-size: 22px; }
}
