:root {
    --bg: #0b0f12;
    --card: #0f1619;
    --muted: #9aa6ad;
    --accent: #7bd389;
    --accent-orange: #ff9b4a;
    --accent-orange-2: #ff7a1a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.02);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg), #041016 70%);
    color: #e6f0f2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 28px;
}

header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.search-wrap {
    margin-left: auto;
    min-width: 260px;
}

.search {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-radius: 10px;
    outline: none;
    transition: box-shadow .12s, color .12s;
}

.search:focus {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    color: var(--accent);
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 18px rgba(2, 8, 12, 0.6);
    /* hint to browser for smoother animations */
    will-change: transform, box-shadow;
    /* calm, slightly longer easing for a gentle feel */
    transition: transform .28s cubic-bezier(.16, .8, .24, 1), box-shadow .28s cubic-bezier(.16, .8, .24, 1), border-color .28s;
}

.card:hover {
    /* subtle lift + tiny scale for a calm hover */
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(2, 8, 12, 0.65);
    border-color: rgba(123, 211, 137, 0.10);
}

.card:active {
    /* slight feedback on click/tap */
    transform: translateY(-2px) scale(0.995);
    transition: transform .12s;
}

.card:focus-visible {
    outline: none;
    box-shadow: 0 18px 40px rgba(2, 8, 12, 0.65), 0 0 0 6px rgba(123, 211, 137, 0.06);
    transform: translateY(-6px) scale(1.01);
}

@media (prefers-reduced-motion: reduce) {

    .card,
    .card:hover,
    .card:active,
    .card:focus-visible {
        transition: none !important;
        transform: none !important;
        box-shadow: 0 6px 18px rgba(2, 8, 12, 0.6) !important;
    }
}

.thumb {
    width: 84px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
    flex: 0 0 84px;
    font-size: 12px;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.title {
    color: #eaf6f1;
    font-weight: 600;
}

.path {
    color: var(--muted);
    font-size: 12px;
}

.actions {
    margin-left: auto;
}

/* make the whole card act like a clean link (no blue underline) */
a.card {
    color: inherit;
    /* preserve title color */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

a.play {
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-orange-2));
    color: #221205;
    /* dark text on light orange */
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(255, 120, 40, 0.12);
    transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s;
}

a.card .play:hover,
a.card .play:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 120, 40, 0.16);
}

.empty {
    margin-top: 36px;
    color: var(--muted);
    text-align: center;
}

footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

@media(min-width:900px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }
}