/* public/css/theme-default.css */
:root {
    --bg-page: #0c1222;
    --bg-card: #111827;
    --bg-card-soft: #0f172a;
    --border-subtle: #1f2937;
    --accent: #e91e63;
    --accent-soft: rgba(233, 30, 99, 0.18);
    --accent-soft-strong: rgba(233, 30, 99, 0.4);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-strong: #f9fafb;
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
    --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.4);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top left, #111827 0, #020617 55%);
    color: var(--text-main);
}

.st-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.st-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.st-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #ad1457);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 30px;
    box-shadow: var(--shadow-subtle);
}

.st-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-strong);
}

.st-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.st-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.st-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--accent-soft);
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent);
}

.st-card {
    background: radial-gradient(circle at top left, #111827 0, #020617 70%);
    border-radius: 24px;
    padding: 20px 18px 22px;
    border: 1px solid rgba(31, 41, 55, 0.85);
    box-shadow: var(--shadow-soft);
}

.st-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.st-toolbar-left,
.st-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.st-toolbar-left {
    flex: 1;
}

.st-pill {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.st-pill:hover {
    border-color: var(--accent-soft);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.95);
}

.st-pill--active {
    border-color: var(--accent-soft-strong);
    background: var(--accent-soft);
    color: var(--text-strong);
    box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.4);
}

.st-pill--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.st-search {
    position: relative;
    min-width: 220px;
    flex: 1;
}

.st-search input {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.st-search input::placeholder {
    color: #6b7280;
}

.st-search input:focus {
    border-color: var(--accent-soft-strong);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background: rgba(15, 23, 42, 1);
}

.st-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6b7280;
}

.st-table-wrap {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.85);
    background: rgba(15, 23, 42, 0.92);
}

.st-table {
    width: 100%;
    border-collapse: collapse;
}

.st-table thead tr {
    background: linear-gradient(90deg, #020617 0, #111827 60%);
}

.st-table th,
.st-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.st-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.st-table tbody tr:last-child td {
    border-bottom: none;
}

.st-table tbody tr {
    transition: background 0.16s ease, transform 0.08s ease;
}

.st-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.96);
    transform: translateY(-1px);
}

.st-song-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.st-cover {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: #0b1120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 16px;
    color: #6b7280;
}

.st-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-song-texts {
    min-width: 0;
}

.st-song-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-song-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
}

.st-date {
    font-size: 12px;
    color: #9ca3af;
}

.st-empty {
    padding: 32px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.st-footer-note {
    margin-top: 16px;
    font-size: 11px;
    color: #6b7280;
    text-align: right;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
}

.st-btn:hover {
    border-color: var(--accent-soft-strong);
    color: var(--text-strong);
}

.st-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 12px 10px;
    justify-content: center;
}

.st-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.st-modal {
    background: radial-gradient(circle at top left, #111827 0, #020617 70%);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 28px;
}

.st-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(31, 41, 55, 0.9);
    color: var(--text-muted);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.16s ease;
}

.st-modal-close:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft-strong);
    color: var(--text-strong);
}

.st-modal-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.st-modal-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.st-modal-cover {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #6b7280;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.st-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-modal-artist-img-wrap {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.st-modal-artist-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-modal-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.3;
}

.st-modal-artist {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
}

.st-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.st-meta-item {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    color: var(--text-muted);
    white-space: nowrap;
}

.st-modal-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.st-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft-strong);
    background: var(--accent-soft);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    width: fit-content;
}

.st-preview-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.st-preview-bar {
    width: 100%;
    height: 4px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 999px;
    overflow: hidden;
}

.st-preview-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.2s linear;
}

.st-preview-time {
    font-size: 11px;
    color: var(--text-muted);
}

.st-modal-deezer {
    margin-top: 4px;
}

.st-song-row {
    cursor: pointer;
}

@media (max-width: 720px) {
    .st-container {
        padding: 16px 12px 28px;
    }

    .st-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .st-header-meta {
        justify-content: flex-start;
    }

    .st-table th:nth-child(3),
    .st-table td:nth-child(3) {
        text-align: right;
    }
}

@media (max-width: 560px) {
    .st-modal-inner {
        flex-direction: column;
        align-items: center;
    }

    .st-modal-left {
        flex-direction: row;
        align-items: flex-start;
    }

    .st-modal-cover {
        width: 120px;
        height: 120px;
    }

    .st-modal-artist-img-wrap {
        width: 120px;
        height: 80px;
    }

    .st-modal-right {
        width: 100%;
    }

    .st-modal-title {
        font-size: 18px;
    }
}
