main {
    width: 100%;
    max-width: 800px;
    margin: 5rem auto;
}

.borda {
    padding: 5px;
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--destaque-dois);
    box-shadow: 1px 1px 10px var(--secundario);
}

.gostos {
    width: 500px;
    margin: auto;
    border: thin var(--destaque-dois) solid;
}

.gostos table {
    width: 100%;
    border-collapse: collapse;
}

.gostos th {
    padding: 8px;
    width: 120px;
    font-weight: normal;
    border-bottom: thin var(--destaque-dois) solid;
}

.gostos td {
    padding: 8px;
    vertical-align: top;
    border-left: thin var(--destaque-dois) solid;
    border-bottom: thin var(--destaque-dois) solid;
}

.gostos tr:last-child th,
.gostos tr:last-child td {
    border-bottom: none;
}

.album-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album {
    display: flex;
    align-items: center;
    gap: 10px;
}

.album img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid black;
}

.album-info {
    line-height: 1.2;
}

.album-title {
    display: block;
}

.album-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.70rem;
    color: gray;
}

.film-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.film {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.film img {
    width: 36px;
    height: 54px;
    object-fit: cover;
    border: 1px solid black;
}

.film-info {
    line-height: 1.25;
}

.film-title {
    display: block;
}

.film-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.70rem;
    color: gray;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book img {
    width: 28px;
    height: 42px;
    object-fit: cover;
    border: 1px solid black;
}

.book-info {
    line-height: 1.25;
}

.book-title {
    display: block;
}

.book-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.70rem;
    color: gray;
}

.infobox {
    width: 300px;
    border: thin var(--destaque-dois) solid;
}

.infobox-title {
    background: white;
    text-align: center;
    padding: 6px;
}

.infobox-image {
    text-align: center;
    padding: 10px;
}

.infobox-image img {
    width: 180px;
    border: 1px solid black;
    image-rendering: pixelated;
}

.caption {
    margin-top: 4px;
}

.infobox-subtitle {
    background: white;
    text-align: center;
    padding: 5px;
    margin-bottom: 10px;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th {
    text-align: left;
    vertical-align: top;
    padding: 6px;
    width: 40%;
}

.infobox td {
    padding: 6px;
    vertical-align: top;
}

.scrollbar {
    max-height: 180px;
    overflow-y: auto;
}

.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 10px;
}

.scrollbar::-webkit-scrollbar-track {
    background: white;
    border: 1px solid var(--destaque-dois);
}

.scrollbar::-webkit-scrollbar-thumb {
    background: transparent;
    border: 1px solid #858585;
}

@media (max-width: 768px) {
    main {
        margin: 2rem 1rem;
    }

    .borda {
        flex-direction: column;
        align-items: center;
    }

    .infobox,
    .gostos {
        width: 100%;
        max-width: 100%;
    }

    .infobox-image img {
        width: 140px;
    }

    .scrollbar {
        max-height: none;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .gostos th {
        width: 90px;
    }

    .album img {
        width: 40px;
        height: 40px;
    }

    .film img {
        width: 32px;
        height: 48px;
    }

    .book img {
        width: 24px;
        height: 36px;
    }
}