
:root{
    color-scheme:dark;
    --bg:#0f1519;
    --panel:#151d22;
    --line:#2b3941;
    --text:#edf4f6;
    --muted:#9aabb4;
}

*{
    box-sizing:border-box;
}

[hidden]{
    display:none !important;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:"Microsoft JhengHei",sans-serif;
}

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

.seo-shell{
    width:min(1100px,calc(100% - 32px));
    margin:auto;
    padding:24px 0 50px;
}

.seo-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid var(--line);
    padding-bottom:18px;
}

.seo-brand{
    display:flex;
    flex-direction:column;
}

.seo-brand span{
    color:var(--muted);
    font-size:12px;
}

.seo-nav{
    display:flex;
    gap:18px;
    color:var(--muted);
}

.seo-hero{
    padding:40px 0 25px;
}

.seo-hero h1{
    margin:0 0 10px;
}

.seo-hero p{
    color:var(--muted);
}

.song-tools{
    display:grid;
    grid-template-columns:minmax(300px,1fr) 220px 220px auto;
    gap:14px;
    align-items:center;
    margin:18px 0 24px;
}

.song-search,
.song-select{
    width:100%;
    height:56px;
    min-height:56px;
    max-height:56px;
    padding:0 16px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--panel);
    color:var(--text);
    font:inherit;
}

.song-search{
    max-width:none;
}

.song-select{
    cursor:pointer;
}

.song-count{
    white-space:nowrap;
    color:var(--muted);
    text-align:right;
}

@media(max-width:1000px){

    .song-tools{
        grid-template-columns:1fr 1fr;
    }

    .song-search{
        grid-column:1 / -1;
    }

    .song-count{
        text-align:left;
    }
}

@media(max-width:650px){

    .song-tools{
        grid-template-columns:1fr;
    }

    .song-search{
        grid-column:auto;
    }
}

.song-count{
    color:var(--muted);
}

.song-table{
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
}

.song-entry{
    display:grid;
    grid-template-columns:2fr 1fr auto auto;
    gap:16px;
    padding:14px 18px;
    border-bottom:1px solid var(--line);
}

.song-entry:last-child{
    border-bottom:none;
}

.song-entry:hover{
    background:#1b252c;
}

.song-title{
    font-weight:bold;
}

.song-artist,
.song-times{
    color:var(--muted);
}

.empty-state{
    padding:40px;
    text-align:center;
    color:var(--muted);
}

.detail-card{
    border:1px solid var(--line);
    background:var(--panel);
    border-radius:14px;
    padding:20px;
}

.song-meta{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.history-list{
    display:grid;
    gap:10px;
    margin-top:15px;
}

.history-row{
    display:grid;
    grid-template-columns:110px 1fr auto;
    gap:15px;
    padding:12px 15px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--panel);
}

.history-date{
    color:var(--muted);
}

.history-link{
    padding:5px 10px;
    background:#d6eef2;
    color:#102027;
    border-radius:8px;
    font-weight:bold;
}

.seo-footer{
    margin-top:40px;
    padding-top:25px;
    border-top:1px solid var(--line);
    color:var(--muted);
    text-align:center;
    font-size:13px;
}

@media(max-width:700px){

    .seo-topbar,
    .song-tools{
        flex-direction:column;
        align-items:flex-start;
    }

    .song-entry{
        grid-template-columns:1fr auto;
    }

    .song-artist,
    .song-times{
        grid-column:1;
    }

    .history-row{
        grid-template-columns:1fr;
    }
}
