body {
    margin: 0;
    font-family: Inter, Arial;
    background: #0b0f19;
    color: #fff;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    height: 60px;
    display: grid;
    grid-template-columns: 220px 1fr 60px;
    align-items: center;

    padding: 0 20px;

    background: rgba(14, 20, 34, 0.85);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-weight: bold;
}

.search {
    display: flex;
    justify-content: center;
}

.search input {
    width: 60%;
    padding: 10px 14px;

    border-radius: 10px;
    border: none;

    background: #151b2c;
    color: white;
}

.theme-btn {
    width: 40px;
    height: 40px;

    border-radius: 10px;
    border: none;

    background: rgba(255,255,255,0.05);
    color: #ccc;
}

/* =========================
   LAYOUT
========================= */

.shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: calc(100vh - 100px);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    background: #0e1422;
    padding: 15px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar a {
    padding: 10px;
    border-radius: 10px;
    color: #aaa;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1b2336;
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
}

.back-btn {
    display: block;
    padding: 10px;
    background: #1b2336;
    border-radius: 10px;
    text-align: center;
    color: white;
    text-decoration: none;
}

/* =========================
   HERO HEADER
========================= */

.content {
    padding: 15px;
}

.hero-header {
    display: flex;
    gap: 16px;

    background: #151b2c;
    padding: 16px;
    border-radius: 14px;
}

.hero-img {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================
   BADGES (AUTO SIZE FIX)
========================= */

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.role {
    background: #6c5ce7;
}

.diff {
    background: #1b2336;
}

/* =========================
   SECTION
========================= */

.section {
    background: #141b2d;
    padding: 16px;
    border-radius: 14px;
    margin-top: 12px;
}

/* =========================
   ABILITIES (НОРМ ОКНА)
========================= */

.ability-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ability-card {
    display: flex;
    gap: 10px;

    background: #151b2c;
    padding: 12px;

    border-radius: 12px;

    width: 320px;   /* фикс окно */
}

/* ICON (КВАДРАТ) */
.ability-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 10px;
    overflow: hidden;

    background: #0e1422;
}

.ability-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b2336, #0e1422);
}

/* TEXT */
.ability-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ability-key {
    width: fit-content;
    padding: 4px 8px;

    font-size: 11px;
    border-radius: 6px;

    background: #6c5ce7;
}

.ability-name {
    font-weight: 600;
}

.ability-desc {
    font-size: 12px;
    color: #aaa;
}

/* =========================
   TEAM SKILLS (С ИКОНКОЙ)
========================= */

.team-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-card {
    display: flex;
    gap: 10px;

    background: #151b2c;
    padding: 12px;

    border-radius: 12px;

    width: 320px;
}

.team-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 10px;
    overflow: hidden;

    background: #0e1422;
}

.team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-weight: 600;
}

.team-desc {
    font-size: 12px;
    color: #aaa;
}

/* =========================
   FOOTER
========================= */

.footer {
    height: 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    background: #0e1422;
    border-top: 1px solid rgba(255,255,255,0.05);

    font-size: 12px;
    color: #aaa;
}