/**
 * TFISOFT CMS FREE 
 * www.tfisoft.com.br
 * @version 1.0.0
 * @author Moreira / DevKinG 
 * @copyright (c) 2026 TFISFOT, All Rights Reserved
 *
 */
:root {
    --feature-panel: #15141d;
    --feature-accent: #d9b177;
    --feature-text: #f4eee8;
    --feature-line: #8d765c;
    --feature-muted: #adbbc5;
}

.feature-champions,
.feature-news {
    min-width: 0;
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid var(--feature-line);
    border-radius: 14px;
    background: var(--feature-panel);
    color: var(--feature-text);
}
.feature-section-title h2 {
    font:
        700 23px/1.3 Georgia,
        serif;
    color: var(--feature-text);
    margin: 0 0 10px;
}
.feature-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--feature-accent);
    vertical-align: middle;
}
.feature-champions > p,
.feature-news > p {
    color: var(--feature-muted);
    font-size: 13px;
}
.feature-ranking-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}
.feature-ranking-controls [role="tablist"] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.feature-ranking-controls button {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--feature-line);
    border-radius: 7px;
    background: transparent;
    color: var(--feature-text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.feature-ranking-controls button svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.feature-ranking-controls button[aria-selected="true"] {
    color: var(--feature-panel);
    background: var(--feature-accent);
    border-color: var(--feature-accent);
    font-weight: bold;
}
.feature-ranking-panel[hidden] {
    display: none !important;
}
.feature-ranking-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.feature-ranking-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--feature-line);
    border-radius: 10px;
    background: var(--feature-panel);
}
.feature-ranking-card:first-child {
    border-color: var(--feature-accent);
    box-shadow: 0 0 15px
        color-mix(in srgb, var(--feature-accent) 18%, transparent);
}
.feature-ranking-portrait {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: #0004;
}
body .feature-champions .feature-ranking-portrait img {
    position: absolute !important;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: 50% 20%;
    border: 0 !important;
    border-radius: 0 !important;
}
.feature-ranking-portrait .feature-player-photo {
    z-index: 1;
}
.feature-medal {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--feature-accent);
    border-radius: 50%;
    color: var(--feature-text);
    background: var(--feature-panel);
    font-weight: bold;
}
.feature-ranking-card h3 {
    font:
        700 15px/1.3 Georgia,
        serif;
    margin: 10px 4px 6px;
    overflow-wrap: anywhere;
}
.feature-ranking-card h3 a {
    color: var(--feature-text) !important;
}
.feature-ranking-score {
    padding: 0 5px 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    color: var(--feature-muted);
    font-size: 11px;
}
.feature-ranking-score svg {
    display: none;
}
.feature-ranking-score strong {
    color: var(--feature-accent);
}
.feature-home-bottom {
    display: block;
}
.feature-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.feature-news-card {
    min-width: 0;
    border: 1px solid var(--feature-line);
    border-radius: 10px;
    overflow: hidden;
}
.feature-news-cover {
    display: block;
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #0003;
}
.feature-news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-news-cover > span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: var(--feature-panel);
    color: var(--feature-accent);
    border-radius: 4px;
    font-size: 11px;
}
.feature-news-body {
    padding: 16px;
}
.feature-news-body h3 {
    margin: 0 0 10px;
    font-size: 19px;
}
.feature-news-body h3 a {
    color: var(--feature-text) !important;
}
.feature-news-body p,
.feature-news-body small {
    color: var(--feature-muted);
    font-size: 12px;
}
.feature-news-body > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.feature-news-body a {
    color: var(--feature-accent);
    font-size: 12px;
}
.cr-banners {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--feature-panel);
    border: 1px solid var(--feature-line);
    border-radius: 12px;
    margin-bottom: 22px;
}
.cr-banner-slide[hidden] {
    display: none !important;
}
.cr-banner-slide > a {
    display: block;
}
.cr-banner-slide img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
}
.cr-banner-controls {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.cr-banner-controls button {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--feature-line);
    background: var(--feature-panel);
    color: var(--feature-text);
    border-radius: 5px;
}
.tfi-menu-icon {
    color: var(--feature-accent, var(--tfi-accent, #0866dc));
    background: var(--feature-panel, var(--tfi-surface, #eef5ff));
    border: 1px solid var(--feature-line, var(--tfi-border, #bfd5f1));
    border-radius: 7px;
}
.tfi-menu-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.cp-profile {
    min-width: 0;
}
body .cp-profile .cp-portrait .cp-avatar-images img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
@media (max-width: 600px) {
    .feature-champions,
    .feature-news {
        padding: 12px;
    }
    .feature-ranking-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-ranking-portrait {
        height: 145px;
    }
    .feature-news-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .feature-ranking-controls button {
        min-height: 44px;
    }
}

body.tfi-arena .cp-profile {
    --cp-red: #d9b177;
    --cp-glow: #d9b177;
    --cp-silver: #c1ced3;
    --cp-gold: #d9b177;
    --cp-line: #8d765c;
    --cp-panel: #15141d;
    --cp-text: #f4eee8;
    --cp-muted: #adbbc5;
}
body :is(.tfi-player-panel, .tfi-pass, .tfi-vip-cash) {
    --pass-bg: #15141d;
    --pass-card: #15141d;
    --pass-ink: #f4eee8;
    --pass-muted: #adbbc5;
    --pass-accent: #80601f;
    --pass-line: #8d765c;
}

.feature-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.feature-banner-dots button {
    width: 16px;
    height: 16px;
    border: 1px solid var(--feature-accent);
    border-radius: 50%;
    background: var(--feature-panel);
    padding: 0;
}
.feature-banner-dots button[aria-current="true"] {
    background: var(--feature-accent);
}

body.tfi-arena .cp-profile .cp-cover > img,
body.tfi-arena .cp-profile .cp-avatar-images img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
body.tfi-arena .cp-profile .cp-guild-crest > img {
    object-fit: contain !important;
    image-rendering: pixelated;
}
