/* assets/music.css
   Bible Notebah Music Gallery
   Upload to: bible.notebah.com/galery/music/assets/music.css
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.16), transparent 30%),
        linear-gradient(135deg, #080c16 0%, #111827 45%, #1f2937 100%);
    color: #f9fafb;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.music-app {
    width: 100%;
    min-height: 100vh;
    padding: 18px;
}

.music-hero {
    width: 100%;
    border-radius: 28px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.eyebrow {
    margin: 0 0 8px;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.music-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 920px;
    margin: 16px 0 0;
    color: rgba(249, 250, 251, 0.82);
    font-size: clamp(0.98rem, 2.3vw, 1.18rem);
    line-height: 1.65;
}

.music-tools {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.lang-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}

.lang-tabs a {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(249, 250, 251, 0.84);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-tabs a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.lang-tabs a.active {
    color: #111827;
    background: #facc15;
    border-color: rgba(250, 204, 21, 0.9);
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #f9fafb;
    background: transparent;
    padding: 10px 8px;
}

.search-box input::placeholder {
    color: rgba(249, 250, 251, 0.55);
}

.search-box button,
.clear-search {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.search-box button {
    color: #111827;
    background: #facc15;
}

.clear-search {
    color: rgba(249, 250, 251, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

.music-list {
    display: grid;
    gap: 14px;
}

.music-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.music-card:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.36);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.music-card.is-selected {
    outline: 3px solid rgba(250, 204, 21, 0.92);
    box-shadow: 0 0 0 7px rgba(250, 204, 21, 0.18), 0 24px 70px rgba(0, 0, 0, 0.32);
}

.cover {
    width: 116px;
    height: 116px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #111827;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 22%),
        linear-gradient(135deg, #facc15, #f97316);
    font-size: 3rem;
    font-weight: 900;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.track-body {
    min-width: 0;
}

.track-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.track-top h2 {
    margin: 0;
    font-size: clamp(1.05rem, 3vw, 1.42rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.credit {
    margin: 6px 0 0;
    color: #facc15;
    font-size: 0.9rem;
    font-weight: 700;
}

.duration {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(249, 250, 251, 0.88);
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.82rem;
    font-weight: 800;
}

.description {
    margin: 10px 0 12px;
    color: rgba(249, 250, 251, 0.75);
    line-height: 1.55;
}

audio {
    width: 100%;
    display: block;
    accent-color: #facc15;
}

.empty {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 280px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 24px;
    color: #111827;
    background: #facc15;
    font-size: 2.2rem;
    font-weight: 900;
}

.empty h2 {
    margin: 0 0 8px;
}

.empty p {
    margin: 5px 0;
    color: rgba(249, 250, 251, 0.78);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 10px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 8px 11px;
    border-radius: 14px;
    color: rgba(249, 250, 251, 0.86);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.pagination .active {
    color: #111827;
    background: #facc15;
}

.pagination .disabled {
    opacity: 0.35;
}

.footer {
    margin: 26px 0 6px;
    text-align: center;
    color: rgba(249, 250, 251, 0.62);
    font-size: 0.92rem;
}

.mini-player {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 20;
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(250, 204, 21, 0.28);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.mini-player strong,
.mini-player span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player span {
    margin-top: 2px;
    color: rgba(249, 250, 251, 0.62);
    font-size: 0.82rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .music-app {
        padding: 10px;
    }

    .music-hero {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .search-box {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .clear-search {
        grid-column: 1 / -1;
        text-align: center;
    }

    .music-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding: 11px;
        border-radius: 22px;
    }

    .cover {
        width: 82px;
        height: 82px;
        border-radius: 18px;
        font-size: 2.2rem;
    }

    .track-top {
        display: grid;
        gap: 6px;
    }

    .duration {
        justify-self: start;
        padding: 5px 8px;
    }

    .description {
        font-size: 0.92rem;
    }

    audio {
        height: 42px;
    }
}

@media (max-width: 380px) {
    .music-card {
        grid-template-columns: 1fr;
    }

    .cover {
        width: 100%;
        height: 190px;
    }
}
