/* ============================================
   SETS VIEW  (.sv-)
   ============================================ */

.sv-filter-bar {
    margin-bottom: 20px;
}

.sv-total {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* ── Sections (Sets / Mini Sets) ── */
.sv-section + .sv-section {
    margin-top: 36px;
}

.sv-subsection-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: 0.6;
    margin: 24px 0 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sv-subsection-header:first-of-type {
    margin-top: 0;
}

.sv-subsection-toggle {
    font-size: 11px;
    transition: transform 0.15s ease;
    display: inline-block;
}

.sv-subsection-header.collapsed .sv-subsection-toggle {
    transform: rotate(-90deg);
}

.sv-subsection-header.collapsed + .sv-grid {
    display: none;
}

.sv-section-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 14px;
}

.sv-section-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ── Set tile grid ── */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.sv-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.12s;
    display: flex;
    flex-direction: column;
}
.sv-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.sv-tile-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}

.sv-tile-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: var(--surface2);
    flex-shrink: 0;
}
.sv-tile-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.sv-tile-cover--box {
    height: auto;
}
.sv-tile-cover--box .sv-tile-cover-img {
    height: auto;
    object-fit: unset;
    object-position: unset;
}
.sv-tile-name-strip {
    background: rgba(0, 0, 0, 0.82);
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    min-height: calc(14px * 1.3 * 2 + 7px * 2); /* always two lines tall */
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.sv-tile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.sv-tile-body {
    padding: 8px 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sv-tile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.sv-tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}
.sv-tile-code {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: .04em;
}
.sv-tile-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Set detail ── */
.sv-detail-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sv-detail-header .page-title {
    margin: 0;
}
.sv-detail-code {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: .04em;
}

.sv-card-total {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

