:root {
    color-scheme: dark;
    font-family: "Inter", system-ui, sans-serif;
    background: #111019;
    color: #f4f0fa;
}
main {
    max-width: 58rem;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 3rem);
}
h1 { margin-top: 0; }
a { color: #d5b6ff; overflow-wrap: anywhere; }
.controls { display: grid; gap: .65rem; }
button, select {
    background: #262039;
    border: 1px solid #786397;
    border-radius: .5rem;
    padding: .7rem 1rem;
    font: inherit;
    color: inherit;
    max-width: 100%;
}
button { justify-self: start; cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
[data-scroll-status] { color: #c9bed8; }
[data-scroll-items] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.result {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #44375a;
    border-radius: .65rem;
    background: #211a30;
}
.card-cover {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(130deg, #35274e, #62418b 65%, #30234b);
}
.card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-play {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #151020db;
    color: #fff;
}
.card-body { flex: 1; padding: 1rem 1rem .75rem; }
.card-body h2 { margin: 0 0 .5rem; font-size: 1.06rem; overflow-wrap: anywhere; }
.card-actions, .share-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.card-actions { padding: 0 1rem 1rem; }
.card-actions button { flex: 1; }
dialog {
    max-width: min(28rem, calc(100vw - 4rem));
    border: 1px solid #786397;
    border-radius: .7rem;
    background: #211a30;
    color: inherit;
    padding: 1.25rem;
}
dialog::backdrop { background: #0e0918c7; }
.dialog-close { float: right; }
dialog h2 { margin: .4rem 0 1rem; font-size: 1.25rem; }
dialog input {
    box-sizing: border-box;
    margin-top: .75rem;
    width: 100%;
    padding: .55rem;
    color: inherit;
    background: #151020;
    border: 1px solid #786397;
    border-radius: .35rem;
}
.share-options a {
    padding: .7rem 1rem;
    border: 1px solid #786397;
    border-radius: .5rem;
}
.contact-options { display: grid; gap: .55rem; }
.contact-options p { margin: 0; }

.card-source { margin: 0 0 .35rem; color: #c9bed8; font-size: .82rem; }
