.wosh-hero-archive {
    padding: 2rem;
    max-width: 1300px;
    margin: auto;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.hero-card {
    display: flex;
    flex-direction: column;
    background: #1b1b1b;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #f0f0f0;
}

.hero-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

.hero-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-card-info {
    padding: 1rem;
    text-align: center;
}

.hero-card-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffdd66;
}

.hero-card-meta {
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-class,
.meta-subclass,
.meta-rarity,
.meta-generation {
    background: #2a2a2a;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* rarity coloring */
.rarity-ssr-legendary .hero-card-name { color: #ffd700; }
.rarity-sr-epic .hero-card-name { color: #c79eff; }
.rarity-r-rare .hero-card-name { color: #66ccff; }

/* MINI CARD (grid mode, circular) */
.hero-card.mini-card {
    align-items: center;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #1b1b1b;
}

.hero-card.mini-card .hero-card-thumb img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    background: #000;
}

.hero-card.mini-card .hero-card-body {
    padding-top: 0.8rem;
}

.hero-card.mini-card .hero-card-name {
    font-size: 1rem;
    margin: 0.4rem 0;
}

.hero-card.mini-card .hero-card-meta {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}
.hero-card-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-meta img {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin: 0 2px;
    filter: drop-shadow(0 0 2px #000);
}
