/* 全集列表 — wider premium table layout */

.list-page-main {
    max-width: min(1720px, calc(100vw - 5rem));
}

.list-page-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none;
    box-shadow: 0 1px 0 rgb(15 23 42 / 0.04);
}

.list-toolbar-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgb(15 23 42 / 0.04);
    padding: 0.85rem 1.1rem;
}

.list-table-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgb(15 23 42 / 0.05);
    overflow: hidden;
}

.list-table-card .data-table thead {
    background: rgb(249 250 251 / 0.92);
    border-bottom: 1px solid rgb(243 244 246);
}

.list-table-card .data-table th,
.list-table-card .data-table td {
    padding: 0.9rem 1.1rem;
}

.list-table-card .data-table tbody tr:hover {
    background: rgb(249 250 251 / 0.88);
}

.list-export-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgb(249 250 251 / 0.9);
    box-shadow: inset 0 0 0 1px rgb(243 244 246);
}

.list-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgb(15 23 42 / 0.05);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.list-export-btn:hover {
    background: #f9fafb;
    box-shadow: 0 3px 10px rgb(15 23 42 / 0.07);
    transform: translateY(-1px);
}

.list-export-btn-primary {
    background: #111827;
    color: #fff;
}

.list-export-btn-primary:hover {
    background: #1f2937;
    color: #fff;
}

.list-ep-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 999px;
}

.list-title-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.list-title-text {
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
}

.list-title-text:hover { color: #334155; }

.list-folder-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.list-folder-pill,
.list-unit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Folder Rail（全集列表专属） ── */
.folder-rail {
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(60, 80, 120, 0.06);
}

.folder-rail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.folder-rail-scroll {
    flex: 1;
    min-width: 0;
}

.folder-rail-manage-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    box-shadow: 0 8px 22px rgba(72, 92, 140, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.folder-rail-manage-btn:hover {
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(72, 92, 140, 0.12);
}

html[data-theme="dark"] .folder-rail-manage-btn {
    background: rgb(30 34 42 / 0.85);
    border-color: rgb(255 255 255 / 0.08);
    color: #9cb0c6;
}

.folder-rail-scroll {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.folder-rail-scroll::-webkit-scrollbar {
    height: 3px;
}

.folder-rail-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.folder-tab {
    position: relative;
    flex: 0 0 auto;
    min-width: 168px;
    max-width: 220px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, filter 160ms ease;
}

.folder-tab-lip {
    position: absolute;
    top: 0;
    left: 14px;
    width: 42px;
    height: 10px;
    border-radius: 10px 10px 0 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-bottom: none;
    box-shadow: 0 -4px 12px rgba(72, 92, 140, 0.04);
    z-index: 2;
    pointer-events: none;
}

.folder-tab-body {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    margin-top: 6px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(72, 92, 140, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.folder-tab-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    background: linear-gradient(135deg, rgba(223, 238, 255, 0.7), rgba(232, 240, 255, 0.5));
    flex-shrink: 0;
}

.folder-tab-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 1px;
}

.folder-tab-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-tab-meta {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.folder-count-badge {
    flex-shrink: 0;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.folder-tab:hover .folder-tab-body {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(72, 92, 140, 0.12);
    filter: brightness(1.02);
}

.folder-tab.is-active .folder-tab-lip {
    background: linear-gradient(135deg, rgba(219, 232, 255, 0.98), rgba(232, 240, 255, 0.95));
    border-color: rgba(255, 255, 255, 0.95);
}

.folder-tab.is-active .folder-tab-body {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(210, 228, 255, 0.95), rgba(232, 240, 255, 0.95) 45%, rgba(219, 245, 242, 0.95));
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 42px rgba(95, 120, 180, 0.16);
}

.folder-tab.is-active .folder-tab-name {
    color: #0f172a;
}

.folder-tab.is-active .folder-count-badge {
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(95, 120, 180, 0.1);
}

.list-folder-pill {
    color: #64748b;
    background: rgb(248 250 252);
}

.list-unit-pill {
    color: #475569;
    background: rgb(241 245 249);
}

html[data-theme="dark"] .list-page-header {
    background: rgb(19 22 28 / 0.88);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.05);
}

html[data-theme="dark"] .list-toolbar-card,
html[data-theme="dark"] .list-table-card {
    background: #181c24;
    box-shadow: 0 4px 24px rgb(0 0 0 / 0.28);
}

html[data-theme="dark"] .list-table-card .data-table thead {
    background: rgb(24 28 36 / 0.95);
    border-bottom-color: rgb(255 255 255 / 0.06);
}

html[data-theme="dark"] .list-table-card .data-table tbody tr:hover {
    background: rgb(28 33 44 / 0.55);
}

html[data-theme="dark"] .list-export-group {
    background: rgb(24 28 36 / 0.85);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

html[data-theme="dark"] .list-ep-label {
    background: rgb(36 44 58 / 0.85);
    color: #9cb0c6;
}

html[data-theme="dark"] .list-title-text { color: #e8edf4; }
html[data-theme="dark"] .list-title-text:hover { color: #cbd5e1; }

html[data-theme="dark"] .list-page-header h1 { color: #e8edf4; }
html[data-theme="dark"] .list-page-header .text-gray-400 { color: #8b99ad !important; }
html[data-theme="dark"] .list-page-header .text-gray-500 { color: #9cb0c6 !important; }
html[data-theme="dark"] .list-page-header .hover\:bg-gray-100:hover { background: rgb(255 255 255 / 0.06) !important; }

html[data-theme="dark"] .folder-rail {
    background: rgba(22, 28, 36, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .folder-tab-body {
    background: rgba(28, 34, 44, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .folder-tab-lip {
    background: rgba(36, 44, 58, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .folder-tab.is-active .folder-tab-body {
    background: linear-gradient(135deg, rgba(45, 58, 82, 0.95), rgba(40, 52, 72, 0.92) 50%, rgba(38, 58, 68, 0.9));
}

html[data-theme="dark"] .folder-tab-name { color: #e8edf4; }
html[data-theme="dark"] .folder-tab-meta { color: #8b99ad; }

html[data-theme="dark"] .list-folder-pill {
    background: rgb(30 34 42 / 0.85);
    color: #9cb0c6;
}

html[data-theme="dark"] .list-unit-pill {
    background: rgb(36 44 58 / 0.55);
    color: #b4c0d0;
}

html[data-theme="dark"] .folder-count-badge {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .folder-tab.is-active .folder-count-badge {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .list-folder-select {
    background: rgb(30 34 42 / 0.85);
    border-color: rgb(255 255 255 / 0.1);
    color: #e8edf4;
}

html[data-theme="dark"] .list-tier-select {
    background: rgb(30 34 42 / 0.85);
    border-color: rgb(255 255 255 / 0.1);
    color: #e8edf4;
}

@media print {
    body > *:not(#lp-print-root) { display: none !important; }
    #lp-print-root { display: block !important; }
}
