/* LyricsSangrah Top Songs — Frontend */

.ls-top-widget {
    font-family: 'Inter', sans-serif;
    color: #1C1408;
    margin-bottom: 24px;
}

/* Header */
.ls-top-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid #E2D5BC;
    background: #F5F0E8;
    border-radius: 14px 14px 0 0;
}
.ls-top-icon { font-size: 20px; flex-shrink: 0; }
.ls-top-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #1C1408;
    margin: 0;
    padding: 0;
    border: none;
}

/* ── LIST STYLE ── */
.ls-top-list {
    border: 1px solid #E2D5BC;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 8px rgba(160,112,26,.07);
}
.ls-top-song-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ls-top-song-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid #E2D5BC;
    transition: background .18s;
}
.ls-top-song-row:last-child { border-bottom: none; }
.ls-top-song-row:hover { background: #F5F0E8; }
.ls-top-song-row--top { background: #FEFBF4; }

.ls-top-rank {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #A0701A;
    opacity: .3;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity .2s;
}
.ls-top-rank--top { opacity: .9; }
.ls-top-song-row:hover .ls-top-rank { opacity: .8; }

.ls-top-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #F5F0E8;
    border: 1px solid #E2D5BC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.ls-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-top-info { flex: 1; min-width: 0; }
.ls-top-song-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1C1408;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color .18s;
}
.ls-top-song-name:hover { color: #A0701A; }
.ls-top-meta {
    display: block;
    font-size: 11px;
    color: #9A7C50;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-top-btn {
    font-size: 11px;
    font-weight: 500;
    color: #A0701A;
    border: 1px solid #C9A86A;
    padding: 4px 11px;
    border-radius: 7px;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ls-top-btn:hover { background: #A0701A; color: #fff; border-color: #A0701A; }

/* ── GRID STYLE ── */
.ls-top-grid-wrap {
    border: 1px solid #E2D5BC;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 8px rgba(160,112,26,.07);
}
.ls-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}
.ls-top-grid-card {
    display: block;
    text-decoration: none;
    border: 1px solid #E2D5BC;
    border-radius: 10px;
    overflow: hidden;
    transition: all .2s;
    background: #FAFAF8;
}
.ls-top-grid-card:hover {
    border-color: #C9933A;
    box-shadow: 0 3px 12px rgba(160,112,26,.12);
    transform: translateY(-2px);
}
.ls-top-grid-thumb {
    position: relative;
    aspect-ratio: 1;
    background: #F5F0E8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}
.ls-top-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ls-top-grid-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #A0701A;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}
.ls-top-grid-info { padding: 9px 10px; }
.ls-top-grid-name {
    font-size: 12px;
    font-weight: 500;
    color: #1C1408;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ls-top-grid-movie {
    font-size: 10px;
    color: #9A7C50;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── COMPACT STYLE ── */
.ls-top-compact {
    border: 1px solid #E2D5BC;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 8px rgba(160,112,26,.07);
}
.ls-top-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ls-top-compact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-bottom: 1px solid #E2D5BC;
    transition: background .15s;
}
.ls-top-compact-row:last-child { border-bottom: none; }
.ls-top-compact-row:hover { background: #F5F0E8; }
.ls-top-compact-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #A0701A;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    opacity: .5;
}
.ls-top-compact-info { flex: 1; min-width: 0; }
.ls-top-compact-info a {
    font-size: 13px;
    font-weight: 500;
    color: #1C1408;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s;
}
.ls-top-compact-info a:hover { color: #A0701A; }
.ls-top-compact-info small {
    font-size: 10px;
    color: #9A7C50;
    display: block;
    margin-top: 2px;
}

/* Responsive */
@media(max-width:480px) {
    .ls-top-song-row { padding: 9px 12px; gap: 8px; }
    .ls-top-rank { display: none; }
    .ls-top-thumb { width: 38px; height: 38px; }
    .ls-top-song-name { font-size: 13px; }
    .ls-top-btn { display: none; }
    .ls-top-grid { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 8px; padding: 10px; }
}
