.ttp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Phá giới hạn width của theme WordPress */
.ttp-wrap,
.ttp-wrap ~ *,
body .ttp-wrap {
    max-width: none !important;
}

/* Filter */
.ttp-filterbar { display:flex; align-items:center; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.ttp-type-btns { display:flex; gap:6px; }
.ttp-tbtn { padding:5px 16px; border-radius:20px; border:1px solid #555; background:#1a1d27; color:#ddd; font-size:12px; font-weight:600; cursor:pointer; transition:all .15s; }
.ttp-tbtn.active { background:#c89b3c; border-color:#c89b3c; color:#fff; }
.ttp-search { padding:7px 14px; border-radius:20px; border:1px solid #444; background:#1a1d27; color:#eee; font-size:13px; outline:none; width:200px; }
.ttp-search:focus { border-color:#c89b3c; }
.ttp-search::placeholder { color:#888; }

/* Section */
.ttp-section { margin-bottom:28px; }
.ttp-section.ttp-hidden { display:none; }
.ttp-section-title { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:#f0ead8; margin-bottom:12px; }
.ttp-dot { width:10px; height:10px; border-radius:50%; }
.ttp-dot-origin { background:#c89b3c; }
.ttp-dot-class  { background:#64b5f6; }
.ttp-cnt { font-size:12px; color:#aaa; font-weight:400; }

/* Grid 3 cột */
.ttp-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }

/* Card */
.ttp-card {
    background: #1a1d27;
    border: 1px solid color-mix(in srgb, var(--tc,#444) 35%, #1a1d27);
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow .15s;
}
.ttp-card:hover {
    box-shadow: 0 4px 20px color-mix(in srgb, var(--tc,#444) 20%, transparent);
}
.ttp-card.ttp-hidden { display:none; }

/* Header */
.ttp-card-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.ttp-icon-wrap { width:44px; height:44px; border-radius:9px; background:#252838; border:2px solid color-mix(in srgb, var(--tc,#444) 60%, transparent); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.ttp-icon-wrap img { width:32px; height:32px; object-fit:contain; }
.ttp-icon-wrap span { font-size:14px; font-weight:700; color:var(--tc,#888); }
.ttp-name { font-size:16px; font-weight:700; color:#ffffff; }
.ttp-meta { font-size:11px; color:#aaa; margin-top:2px; }

/* Tier badges */
.ttp-tier-row { display:flex; gap:5px; margin-bottom:10px; }
.ttp-tbadge {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:24px;
    padding:3px 10px;
    border-radius:6px;
    font-size:12px;
    font-weight:800;
    line-height:1;
    letter-spacing:.01em;
    background:linear-gradient(180deg, var(--tier-bg,#18283a) 0%, var(--tier-bg2,#111d2c) 100%);
    color:var(--tier-text,#ddd);
    border:1px solid color-mix(in srgb, var(--tier-border,#777) 82%, #000);
    box-shadow:0 0 0 1px rgba(255,255,255,.04) inset, 0 0 12px var(--tier-glow,rgba(255,255,255,.10));
    text-shadow:0 1px 2px rgba(0,0,0,.65);
    overflow:hidden;
}
.ttp-tbadge:before {
    content:"";
    position:absolute;
    left:0; top:0; bottom:0;
    width:4px;
    background:var(--tier-icon,var(--tier-border,#777));
    box-shadow:0 0 10px var(--tier-glow,rgba(255,255,255,.12));
}
.ttp-tbadge:after {
    content:"";
    position:absolute;
    inset:1px 1px auto 5px;
    height:45%;
    border-radius:5px;
    background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
    pointer-events:none;
}

/* Mô tả */
.ttp-desc-block { margin-bottom:14px; }
.ttp-desc-main { font-size:12px; color:#ccc; line-height:1.75; margin:0 0 8px; }
.ttp-tier-desc { font-size:12px; color:#bbb; line-height:1.7; margin:4px 0; }
.ttp-tier-label { font-size:12px; margin-right:4px; }

/* Champions row */
.ttp-champs-row { display:flex; gap:8px; flex-wrap:wrap; padding-top:12px; border-top:1px solid #222; }
.ttp-champ { display:flex; flex-direction:column; align-items:center; gap:4px; }
.ttp-champ-img { width:46px; height:46px; border-radius:8px; border:2px solid #333; background:#252838; overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; }
.ttp-champ-img img { width:100%; height:100%; object-fit:cover; display:block; }
.ttp-champ-fb { display:none; font-size:9px; color:#888; width:100%; height:100%; align-items:center; justify-content:center; }
.ttp-champ-name { font-size:9px; color:#bbb; text-align:center; max-width:46px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media(max-width:1000px) { .ttp-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px)  { .ttp-grid { grid-template-columns:1fr; } .ttp-search { width:140px; } }


/* Trait tier colors generated from CDragon style - TFTAcademy-like */
.ttp-tier-row .ttp-tbadge { text-align:center; }
.ttp-tier-label { text-shadow:0 0 8px color-mix(in srgb, currentColor 45%, transparent); }
.ttp-style-prismatic {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
        linear-gradient(135deg, #233d73 0%, #2b1f55 44%, #123f58 100%) !important;
}
.ttp-style-chromatic {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
        linear-gradient(135deg, #123855 0%, #12425c 50%, #172b4b 100%) !important;
}


/* v2.2.2 tweaks: gần TFTAcademy hơn */
.ttp-card{background:#07113a;border-color:#365dff;box-shadow:0 0 0 1px rgba(59,91,255,.14) inset;}
.ttp-icon-wrap{background:#111a49;border-color:#6f6fff;}
.ttp-style-bronze{background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), linear-gradient(135deg, #473028 0%, #34251d 100%) !important;}
.ttp-style-silver{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), linear-gradient(135deg, #465061 0%, #2a3240 100%) !important;}
.ttp-style-gold{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), linear-gradient(135deg, #5b4610 0%, #3f310f 100%) !important;}
.ttp-style-special{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), linear-gradient(135deg, #47337a 0%, #2f2350 100%) !important;}
.ttp-style-prismatic{background:linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0)), linear-gradient(135deg, #8be9ff 0%, #fff2a1 34%, #d8b4fe 66%, #7dd3fc 100%) !important;border-color:#d8eafe !important;color:#ffffff !important;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 0 14px rgba(183,230,255,.30);}

/* v2.2.3: hòa nền plugin với background web doihinhtft */
.ttp-wrap{
    color:#d8deea;
}
.ttp-section-title{
    color:#e8edf8;
}
.ttp-card{
    background:linear-gradient(180deg, rgba(15,18,31,.88) 0%, rgba(10,13,24,.82) 100%) !important;
    border:1px solid rgba(108,91,255,.48) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.025) inset,
        0 10px 28px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(2px);
}
.ttp-card:hover{
    border-color:rgba(151,125,255,.72) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.035) inset,
        0 0 18px rgba(105,91,255,.18),
        0 12px 30px rgba(0,0,0,.22) !important;
}
.ttp-icon-wrap{
    background:rgba(20,23,39,.92) !important;
    border-color:rgba(125,105,255,.62) !important;
    box-shadow:0 0 12px rgba(104,89,255,.12) inset;
}
.ttp-name{color:#f2f5ff;}
.ttp-meta{color:#9da6ba;}
.ttp-desc-main,
.ttp-tier-desc{color:#c5ccd9;}
.ttp-tier-label{filter:none;text-shadow:none;}
.ttp-champs-row{border-top-color:rgba(255,255,255,.06);}
.ttp-champ-name{color:#b7becc;}
.ttp-filterbar{
    background:rgba(7,10,19,.18);
    border-radius:16px;
}
.ttp-search,
.ttp-tbtn{
    background:rgba(18,21,34,.86);
    border-color:rgba(255,255,255,.13);
}
.ttp-tbtn.active{
    background:#d0a63a;
    border-color:#d0a63a;
    color:#0d1020;
}

/* Giảm độ chói của mấy màu mốc để không lạc nền */
.ttp-tbadge{
    box-shadow:0 0 0 1px rgba(255,255,255,.035) inset, 0 0 8px var(--tier-glow,rgba(255,255,255,.08)) !important;
}
.ttp-style-prismatic{
    box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 0 12px rgba(183,230,255,.24) !important;
}


/* v2.2.5: màu mốc theo Riot effect.style trực tiếp */
.ttp-style-bronze{background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), linear-gradient(135deg, #3b271d 0%, #2b1d16 100%) !important;border-color:#b06b3b !important;color:#f0b487 !important;}
.ttp-style-silver{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), linear-gradient(135deg, #343b45 0%, #252b33 100%) !important;border-color:#b8c0c8 !important;color:#f2f5f8 !important;}
.ttp-style-gold{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), linear-gradient(135deg, #4a3515 0%, #33250f 100%) !important;border-color:#ffb53d !important;color:#ffe0a3 !important;}
.ttp-style-prismatic{background:linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0)), linear-gradient(135deg, #8be9ff 0%, #fff2a1 34%, #d8b4fe 66%, #7dd3fc 100%) !important;border-color:#d8eafe !important;color:#ffffff !important;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 0 14px rgba(183,230,255,.30) !important;}
.ttp-style-inactive{background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)), linear-gradient(135deg, #22262e 0%, #1a1e25 100%) !important;border-color:#5a5a5a !important;color:#a9a9a9 !important;}
.ttp-style-unique{background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), linear-gradient(135deg, #2b2345 0%, #211a38 100%) !important;border-color:#b07cff !important;color:#ead9ff !important;}

/* v2.2.6: chỉ sửa CSS badge mốc giống TFTAcademy, không đổi công thức style */
.ttp-tier-row{
    align-items:center;
    gap:9px !important;
    margin:8px 0 14px !important;
}

.ttp-tbadge{
    width:34px !important;
    min-width:34px !important;
    height:36px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    clip-path:polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1 !important;
    color:#060812 !important;
    text-shadow:none !important;
    overflow:visible !important;
    box-shadow:none !important;
    filter:drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

/* bỏ hiệu ứng rectangle/strip cũ */
.ttp-tbadge:before,
.ttp-tbadge:after{
    display:none !important;
    content:none !important;
}

/* Màu hex theo tier, kiểu phẳng giống TFTAcademy */
.ttp-tbadge.ttp-style-bronze{
    background:#e3a582 !important;
    color:#141018 !important;
}

.ttp-tbadge.ttp-style-silver{
    background:#d9dde4 !important;
    color:#0d1220 !important;
}

.ttp-tbadge.ttp-style-gold{
    background:#f2b705 !important;
    color:#0d1220 !important;
}

.ttp-tbadge.ttp-style-inactive{
    background:#5a5a5a !important;
    color:#111 !important;
}

.ttp-tbadge.ttp-style-prismatic,
.ttp-tbadge.ttp-style-chromatic{
    background:conic-gradient(
        from 180deg,
        #b5fbd1 0deg,
        #aea7f8 25.6deg,
        #b9e3bc 63deg,
        #f6fdaf 87.2deg,
        #c7fbf7 105.21deg,
        #a0f6fe 139.56deg,
        #f5ccff 169.3deg,
        #f899f3 201.86deg,
        #bfc6a0 244.3deg,
        #fe93f2 287.41deg,
        #f3f1c7 334.3deg,
        #b5fbd1 360deg
    ) !important;
    color:#2b2154 !important;
    filter:drop-shadow(0 0 8px rgba(205,232,255,.68)) drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

.ttp-tbadge.ttp-style-gold{
    filter:drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

.ttp-tbadge.ttp-style-bronze,
.ttp-tbadge.ttp-style-silver,
.ttp-tbadge.ttp-style-inactive{
    filter:drop-shadow(0 1px 1px rgba(0,0,0,.5));
}


/* v2.2.7: đưa lục giác xuống từng dòng mô tả mốc giống TFTAcademy */
.ttp-tier-row{
    display:none !important;
}
.ttp-desc-block{
    margin-top:8px;
}
.ttp-tier-desc-hex{
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr);
    align-items:center;
    column-gap:14px;
    margin:14px 0 !important;
    line-height:1.45 !important;
}
.ttp-tier-desc-hex .ttp-tier-label.ttp-tbadge{
    width:34px !important;
    min-width:34px !important;
    height:36px !important;
    margin:0 !important;
    align-self:center;
    justify-self:center;
    font-size:13px !important;
}
.ttp-tier-desc-text{
    display:block;
    color:#f1f4ff;
    font-size:13px;
    font-weight:600;
    line-height:1.45;
}
.ttp-desc-main{
    margin-bottom:16px !important;
    color:#f1f4ff !important;
    font-size:13px !important;
    line-height:1.45 !important;
    font-weight:600;
}
@media(max-width:640px){
    .ttp-tier-desc-hex{
        grid-template-columns:36px minmax(0,1fr);
        column-gap:10px;
    }
    .ttp-tier-desc-text,
    .ttp-desc-main{
        font-size:12px !important;
    }
}


/* v2.2.8: chỉnh lục giác pointy-top giống TFTAcademy, không đổi công thức */
.ttp-tbadge{
    width:38px !important;
    min-width:38px !important;
    height:42px !important;
    clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    font-size:14px !important;
    font-weight:800 !important;
    letter-spacing:0 !important;
}
.ttp-tier-desc-hex{
    grid-template-columns:42px minmax(0,1fr) !important;
    column-gap:16px !important;
    align-items:center !important;
}
.ttp-tier-desc-hex .ttp-tier-label.ttp-tbadge{
    width:38px !important;
    min-width:38px !important;
    height:42px !important;
    clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}
@media(max-width:640px){
    .ttp-tbadge,
    .ttp-tier-desc-hex .ttp-tier-label.ttp-tbadge{
        width:34px !important;
        min-width:34px !important;
        height:38px !important;
    }
    .ttp-tier-desc-hex{
        grid-template-columns:38px minmax(0,1fr) !important;
        column-gap:12px !important;
    }
}

/* ── Revival traits archive ─────────────────────────────────────────── */
.ttp-revival-wrap { width: 100%; }
.ttp-revival-wrap a, .ttp-revival-wrap a:hover { text-decoration: none !important; }
.ttp-revival-hero {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 18px;
    align-items: center;
    margin: 0 0 18px;
    padding: 24px 28px;
    border-radius: 20px;
    border: 1px solid rgba(217,177,95,.25);
    background: linear-gradient(135deg, rgba(18,28,49,.96), rgba(8,13,24,.94));
    box-shadow: 0 12px 36px rgba(0,0,0,.28);
}
.ttp-revival-eyebrow {
    color: #d9b15f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .22em;
    margin-bottom: 10px;
}
.ttp-revival-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    color: #f8fafc;
    letter-spacing: -1px;
}
.ttp-revival-hero p { margin: 0; color: #9aa8bd; line-height: 1.7; font-size: 15px; }
.ttp-revival-stat {
    text-align: center;
    border-radius: 16px;
    padding: 18px 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #f8fafc;
}
.ttp-revival-stat strong { display: block; font-size: 38px; line-height: 1; margin-bottom: 8px; }
.ttp-revival-stat span { font-weight: 700; font-size: 13px; color: #d5dceb; }
.ttp-empty-revival {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 16px;
    border: 1px solid rgba(245,197,66,.32);
    background: rgba(245,197,66,.08);
    color: #e8dcb5;
}
@media (max-width: 720px) {
    .ttp-revival-hero { grid-template-columns: 1fr; padding: 20px; }
    .ttp-revival-stat { max-width: 160px; }
}


/* Revival champion: tooltip do plugin tooltip-v2 xử lý */
.ttp-revival-champ{ cursor: help; }


/* v2.4.2: chống theme/plugin khác làm mất số mốc trong lục giác */
.ttp-wrap .ttp-tbadge{
    position:relative !important;
    font-family:Arial,Helvetica,sans-serif !important;
    text-indent:0 !important;
    text-transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
}
.ttp-wrap .ttp-tbadge > .ttp-tier-number{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    z-index:20 !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:14px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    text-indent:0 !important;
    text-transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:none !important;
}
@media(max-width:640px){
    .ttp-wrap .ttp-tbadge > .ttp-tier-number{font-size:13px !important;}
}

/* ── v2.5.0: card có link + trang chi tiết Tộc/Hệ Mùa 18 ─────────────── */
.ttp-card-clickable{cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ttp-card-clickable:hover{transform:translateY(-2px)}
.ttp-card-clickable:focus-visible{outline:2px solid var(--tc,#d9b15f);outline-offset:3px}
.ttp-name-link{color:inherit!important;text-decoration:none!important}
.ttp-name-link:hover{color:#fff!important}

.ttp-detail-page{
    width:100%;
    padding:26px 18px 52px;
    color:#e8edf7;
    background:
        radial-gradient(circle at 12% 0%,color-mix(in srgb,var(--ttp-detail-color,#d9b15f) 16%,transparent),transparent 34%),
        linear-gradient(180deg,rgba(5,8,17,.38),rgba(5,8,17,.08));
}
.ttp-detail-shell{width:min(1280px,100%);margin:0 auto}
.ttp-detail-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;color:#8f9bb0;font-size:13px}
.ttp-detail-breadcrumb a{color:#b8c2d5;text-decoration:none!important}
.ttp-detail-breadcrumb a:hover{color:#fff}
.ttp-detail-breadcrumb strong{color:#f4f7ff;font-weight:700}
.ttp-detail-hero{
    position:relative;
    display:grid;
    grid-template-columns:116px minmax(0,1fr);
    gap:24px;
    align-items:center;
    margin-bottom:20px;
    padding:28px;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--ttp-detail-color,#d9b15f) 36%,rgba(255,255,255,.08));
    border-radius:22px;
    background:linear-gradient(135deg,rgba(18,23,39,.97),rgba(7,11,22,.96));
    box-shadow:0 18px 48px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.025);
}
.ttp-detail-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:330px;height:330px;border-radius:50%;background:var(--ttp-detail-color,#d9b15f);opacity:.08;filter:blur(8px);pointer-events:none}
.ttp-detail-hero-icon{position:relative;z-index:1;width:108px;height:108px;display:flex;align-items:center;justify-content:center;border-radius:22px;border:1px solid color-mix(in srgb,var(--ttp-detail-color,#d9b15f) 60%,#fff 8%);background:rgba(12,16,29,.9);box-shadow:0 0 30px color-mix(in srgb,var(--ttp-detail-color,#d9b15f) 20%,transparent) inset}
.ttp-detail-hero-icon img{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 5px 12px rgba(0,0,0,.45))}
.ttp-detail-hero-icon span{font-size:28px;font-weight:900;color:#fff}
.ttp-detail-hero-copy{position:relative;z-index:1}
.ttp-detail-eyebrow{margin-bottom:8px;color:var(--ttp-detail-color,#d9b15f);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.ttp-detail-hero h1{margin:0 0 10px;color:#fff;font-size:clamp(28px,4.5vw,48px);line-height:1.12;letter-spacing:-.025em}
.ttp-detail-hero p{margin:0;max-width:900px;color:#c4ccda;font-size:15px;line-height:1.75}
.ttp-detail-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.ttp-detail-meta span{padding:7px 10px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.045);color:#dce3ef;font-size:12px;font-weight:700}
.ttp-detail-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:18px;margin-bottom:18px}
.ttp-detail-panel{border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg,rgba(15,19,32,.94),rgba(8,12,22,.92));box-shadow:0 14px 34px rgba(0,0,0,.2);padding:20px}
.ttp-detail-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.ttp-detail-panel-head h2{margin:0;color:#f4f7ff;font-size:20px;line-height:1.3}
.ttp-detail-panel-head>span{color:#9aa6ba;font-size:12px;font-weight:700}
.ttp-detail-description{margin-bottom:16px;padding:14px 16px;border-left:3px solid var(--ttp-detail-color,#d9b15f);border-radius:10px;background:rgba(255,255,255,.035);color:#d5dce8;font-size:14px;line-height:1.7}
.ttp-detail-tiers{display:grid;gap:10px}
.ttp-detail-tier-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.065);border-radius:13px;background:rgba(255,255,255,.025)}
.ttp-detail-tier-row .ttp-tbadge{margin:0!important}
.ttp-detail-tier-row strong{display:block;color:#f4f7ff;font-size:13px;margin-bottom:4px}
.ttp-detail-tier-row p{margin:0;color:#bcc6d6;font-size:13px;line-height:1.55}
.ttp-detail-champions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ttp-detail-champion{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025);text-decoration:none!important;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.ttp-detail-champion:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--ttp-detail-color,#d9b15f) 46%,rgba(255,255,255,.1));background:rgba(255,255,255,.045)}
.ttp-detail-champion-img{display:block;width:58px;height:58px;border:2px solid #555;border-radius:11px;overflow:hidden;background:#171c2c}
.ttp-detail-champion-img img{display:block;width:100%;height:100%;object-fit:cover}
.ttp-detail-champion strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eef2f9;font-size:11px}
.ttp-detail-champion small{color:#8f9bae;font-size:10px}
.ttp-detail-empty{padding:18px;border:1px dashed rgba(255,255,255,.13);border-radius:12px;color:#9aa6b8;text-align:center}
.ttp-detail-page .tup-panel--comps{margin-top:0}
.ttp-detail-page .tup-panel{border-radius:18px!important;background:linear-gradient(180deg,rgba(15,19,32,.94),rgba(8,12,22,.92))!important}
.ttp-detail-comps-fallback{margin-top:0}
.ttp-detail-comp-list{display:grid;gap:10px}
.ttp-detail-comp-card{display:grid;grid-template-columns:42px minmax(150px,1fr) minmax(220px,auto) auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025)}
.ttp-detail-comp-tier{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#d9b15f;color:#111;font-weight:900}
.ttp-detail-comp-units{display:flex;gap:5px;flex-wrap:wrap}
.ttp-detail-comp-units img{width:34px;height:34px;object-fit:cover;border-radius:7px;border:1px solid rgba(255,255,255,.16)}
.ttp-detail-comp-action{padding:7px 10px;border-radius:8px;background:rgba(217,177,95,.15);color:#e8cb8b!important;text-decoration:none!important;font-size:12px;font-weight:800}

@media(max-width:980px){
    .ttp-detail-grid{grid-template-columns:1fr}
    .ttp-detail-champions{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:720px){
    .ttp-detail-page{padding:18px 10px 38px}
    .ttp-detail-hero{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:18px;border-radius:16px}
    .ttp-detail-hero-icon{width:72px;height:72px;border-radius:15px}
    .ttp-detail-hero-icon img{width:52px;height:52px}
    .ttp-detail-hero h1{font-size:27px}
    .ttp-detail-hero p{font-size:13px;line-height:1.6}
    .ttp-detail-panel{padding:15px;border-radius:15px}
    .ttp-detail-champions{grid-template-columns:repeat(4,minmax(0,1fr))}
    .ttp-detail-comp-card{grid-template-columns:38px minmax(0,1fr)}
    .ttp-detail-comp-units,.ttp-detail-comp-action{grid-column:1/-1}
}
@media(max-width:460px){
    .ttp-detail-hero{grid-template-columns:1fr}
    .ttp-detail-hero-icon{width:68px;height:68px}
    .ttp-detail-champions{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ===== v2.5.2 - Trang chi tiết Tộc/Hệ dùng card Comp Manager đầy đủ ===== */
.ttp-detail-comps-tcm{
    overflow:visible;
}
.ttp-detail-comps-tcm .ttp-trait-tcm-wrap{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    background:transparent;
}
.ttp-detail-comps-tcm .ttp-trait-tcm-list{
    width:100%;
}
.ttp-detail-comps-tcm .tcm-card:last-child{
    margin-bottom:0;
}
/* Card Comp Manager đã có border/background riêng, tránh panel lồng làm chật trên mobile. */
@media(max-width:720px){
    .ttp-detail-comps-tcm{
        padding:12px;
    }
    .ttp-detail-comps-tcm .ttp-detail-panel-head{
        padding:2px 2px 10px;
        margin-bottom:0;
    }
}
