.lol-champions-page {
    max-width: none;
    margin: 0;
    margin-top: calc(-1 * var(--spacing-2xl));
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #e7f1ff;
}

.lol-champions-toolbar {
    display: grid;
    grid-template-columns: auto minmax(280px, 520px) auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 0;
    margin-left: calc(-1 * var(--spacing-2xl));
    margin-right: calc(-1 * var(--spacing-2xl));
    width: calc(100% + (var(--spacing-2xl) + var(--spacing-2xl)));
    border-radius: 0;
    border-left: none;
    border-right: none;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lol-champions-toolbar.match-filter-bar {
    border-radius: 0 !important;
}

.lol-champions-search-top {
    flex: 0 1 auto;
    min-width: 280px;
    max-width: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    padding: 0 14px;
    min-height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 25, 40, 0.6);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lol-champions-search-top:focus-within {
    border-color: rgba(3, 202, 252, 0.45);
    background: rgba(20, 25, 40, 0.85);
}

.lol-champions-search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    opacity: 0.9;
    flex-shrink: 0;
}

.lol-champions-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
}

.lol-champions-search-input::placeholder {
    color: var(--text-muted);
}

.lol-champions-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 45;
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(133, 160, 212, 0.38);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(9, 18, 40, 0.98);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.5);
}

.lol-champions-search-suggestions.is-open {
    display: flex;
}

.lol-champions-search-item {
    width: 100%;
    border: none;
    background: transparent;
    color: #e4efff;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lol-champions-search-item:hover {
    background: rgba(23, 39, 79, 0.78);
}

.lol-champions-search-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lol-champions-search-item .name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lol-champions-search-item .lane {
    font-size: 11px;
    font-weight: 700;
    color: rgba(185, 206, 240, 0.82);
    white-space: nowrap;
}

.lol-champions-search-empty {
    padding: 10px 12px;
    color: rgba(185, 206, 240, 0.82);
    font-size: 12px;
    font-weight: 600;
}

.lol-champions-toggle-group {
    gap: 4px;
    flex-wrap: nowrap;
}

.lol-champions-mode-group {
    justify-self: start;
}

.lol-champions-lane-group {
    justify-self: end;
}

.lol-champions-toggle-btn {
    padding: 8px 14px;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.1;
}

.lol-champions-toggle-btn:disabled,
.lol-champions-toggle-btn[aria-disabled="true"] {
    color: rgba(148, 163, 184, 0.55);
    cursor: not-allowed;
    opacity: 0.75;
}

.lol-champions-content-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

.lol-champions-hero-shell .player-header-stats {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    padding-bottom: 0;
    align-self: end;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.lol-champions-hero-shell .player-detail-header {
    height: 272px;
    background-position: center 25%;
}

.lol-champions-hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 640ms ease;
}

.lol-champions-hero-bg-layer.is-zooming {
    animation: lolChampionsHeroSlowZoom 8s linear forwards;
}

.lol-champions-hero-bg-layer.is-visible {
    opacity: 1;
}

@keyframes lolChampionsHeroSlowZoom {
    0% {
        transform: translate3d(var(--hero-pan-start-x, 0%), 0, 0) scale(1.03);
    }

    100% {
        transform: translate3d(var(--hero-pan-end-x, 0%), 0, 0) scale(1);
    }
}

.lol-champions-hero-shell .player-detail-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 74px;
    z-index: 2;
    align-items: flex-end;
    box-sizing: border-box;
    overflow: hidden;
}

.lol-champions-hero-shell .player-identity {
    margin-bottom: 0;
    align-self: flex-end;
}

.lol-champions-header-right {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: end;
    align-items: stretch;
    gap: 10px;
    align-self: stretch;
    flex: 1 1 auto;
    margin-left: 22px;
    min-width: 0;
    width: auto;
    max-width: min(62%, 700px);
}

.lol-champions-social-monitor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(10, 20, 44, 0.5);
    border: 1px solid rgba(129, 163, 230, 0.16);
    color: rgba(212, 226, 248, 0.9);
    font-size: 12px;
    line-height: 1.3;
    width: fit-content;
    max-width: min(100%, 420px);
    text-align: left;
    transition: opacity 220ms ease, transform 220ms ease;
    grid-row: 1;
    align-self: center;
    justify-self: end;
}

.lol-champions-social-monitor.is-switch-out {
    opacity: 0;
    transform: translateY(-6px);
}

.lol-champions-social-monitor.is-switch-in {
    opacity: 1;
    transform: translateY(0);
}

.lol-champions-social-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(180, 202, 242, 0.5);
    background: rgba(8, 14, 34, 0.9);
    display: grid;
    place-items: center;
}

.lol-champions-social-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lol-champions-social-avatar-fallback {
    color: #d6e6ff;
    font-weight: 800;
    font-size: 12px;
}

.lol-champions-social-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lol-champions-social-name {
    color: #e6f1ff;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lol-champions-social-message {
    color: rgba(170, 194, 229, 0.9);
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lol-champions-lane-btn {
    width: 38px;
    min-width: 38px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lol-champions-lane-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.95;
    filter: brightness(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.lol-champions-lane-btn.active .lol-champions-lane-icon {
    filter: brightness(1.25) drop-shadow(0 0 4px rgba(32, 201, 255, 0.45));
}

.lol-champions-hero-description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    min-height: 66px;
    padding: 12px 18px 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    border-top: 1px solid rgba(129, 163, 230, 0.16);
    background: rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-shadow: 0 2px 6px rgba(2, 6, 23, 0.45);
}

.lol-champions-hero-description-text {
    display: block;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    word-break: normal;
    overflow-wrap: anywhere;
}

.lol-champions-hero-shell .header-stat.lol-champions-header-stat {
    min-width: clamp(70px, 6vw, 84px);
}

.lol-champions-hero-shell .player-header-stats .header-stat:first-child {
    min-width: clamp(64px, 5vw, 84px);
    position: relative;
    margin-right: 8px;
    padding-right: 14px;
}

.lol-champions-hero-shell .player-header-stats .header-stat:first-child .header-value {
    font-size: 30px;
    line-height: 1;
    margin-top: 2px;
}

.lol-champions-hero-shell .player-header-stats .header-stat:first-child::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom,
            rgba(148, 163, 184, 0.15),
            rgba(148, 163, 184, 0.45),
            rgba(148, 163, 184, 0.15));
    border-radius: 999px;
}

.lol-champions-stat-bar {
    width: 72px;
    height: 3px;
    margin-top: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}

.lol-champions-stat-bar>span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    transition: width 260ms ease;
}

.lol-champions-stat-bar.is-win>span {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.88), rgba(34, 197, 94, 0.96));
}

.lol-champions-stat-bar.is-pick>span {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.82), rgba(248, 250, 252, 0.97));
}

.lol-champions-stat-bar.is-ban>span {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(255, 57, 57, 0.98));
}

.lol-champions-stat-bar.is-occurrence-green>span {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.98));
}

.lol-champions-stat-bar.is-occurrence-yellow>span {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.98));
}

.lol-champions-stat-bar.is-occurrence-red>span {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.9), rgba(255, 57, 57, 0.98));
}

.lol-champions-hero-shell.is-aram .player-header-stats .header-stat:first-child {
    margin-right: 0;
    padding-right: 0;
}

.lol-champions-hero-shell.is-aram .player-header-stats .header-stat:first-child::after {
    display: none;
}

.lol-champions-hero-card {
    position: relative;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center 16%;
    background-repeat: no-repeat;
}

.lol-champions-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(9, 16, 34, 0.94) 8%, rgba(11, 20, 44, 0.72) 46%, rgba(6, 14, 31, 0.92) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.82));
    z-index: 1;
}

.lol-champions-hero-glass {
    position: relative;
    z-index: 2;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background:
        linear-gradient(140deg,
            rgba(226, 232, 240, 0.06) 0%,
            rgba(226, 232, 240, 0.03) 37%,
            rgba(226, 232, 240, 0.14) 100%);
    backdrop-filter: blur(11px) saturate(112%);
    -webkit-backdrop-filter: blur(11px) saturate(112%);
}

.lol-champions-hero-main {
    display: flex;
    gap: 12px;
    min-width: 0;
    align-items: flex-end;
}

.lol-champions-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.35);
}

.lol-champions-hero-text h2 {
    margin: 0;
    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 0.98;
    color: #f7fbff;
    text-shadow: 0 3px 10px rgba(2, 6, 23, 0.5);
}

.lol-champions-hero-title {
    margin-top: 4px;
    font-size: clamp(18px, 1.8vw, 24px);
    color: rgba(226, 232, 240, 0.94);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.45);
}

.lol-champions-hero-sub {
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(203, 220, 245, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lol-champions-hero-sub .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(245, 246, 248, 0.85);
}

.lol-champions-hero-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(149, 175, 222, 0.28);
    padding-left: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lol-champions-tier-box {
    text-align: center;
    min-width: 68px;
}

.lol-champions-tier-box .value {
    font-size: 48px;
    line-height: 0.8;
    font-weight: 900;
    color: #fbfcff;
}

.lol-champions-tier-box .label {
    margin-top: 4px;
    color: rgba(191, 211, 246, 0.9);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.lol-champions-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lol-champions-metric-circle {
    --metric-p: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--metric-color, #fff) calc(var(--metric-p) * 1%), rgba(77, 93, 126, 0.6) 0);
}

.lol-champions-metric-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(26, 36, 66, 0.95);
    border-radius: 50%;
}

.lol-champions-metric-circle span {
    position: relative;
    z-index: 1;
    color: #f4f8ff;
    font-size: 14px;
    font-weight: 900;
}

.lol-champions-metric-circle.is-win {
    --metric-color: #22c55e;
}

.lol-champions-metric-circle.is-pick {
    --metric-color: #f8fafc;
}

.lol-champions-metric-circle.is-ban {
    --metric-color: #ef4444;
}

.lol-champions-metric-label {
    color: #d4e2f9;
    font-size: 12px;
    font-weight: 700;
}

.lol-champions-section {
    border: 1px solid rgba(129, 163, 230, 0.2);
    background: #121829;
    border-radius: 12px;
    padding: 14px;
}

.lol-champions-section-title {
    color: #f2f7ff;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 10px;
}

.lol-champions-build-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.lol-champions-build-column {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 12px;
    border-right: 1px solid rgba(143, 173, 224, 0.18);
    background: transparent;
}

.lol-champions-build-column:last-child {
    border-right: none;
}

.lol-champions-build-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.lol-champions-build-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(124, 157, 211, 0.22);
    width: 100%;
}

.lol-champions-build-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: var(--font-family);
    line-height: 1.2;
    padding: 6px 11px 8px;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    position: relative;
}

.lol-champions-build-tab:hover {
    color: var(--text-primary);
}

.lol-champions-build-tab.active {
    color: #20c9ff;
    border-bottom-color: #20c9ff;
}

.lol-champions-build-tab-avatar {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(199, 224, 255, 0.55);
    flex-shrink: 0;
}

.lol-champions-build-title {
    color: #c7dcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lol-champions-build-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.lol-champions-build-column.has-secondary .lol-champions-build-list {
    justify-content: flex-start;
    flex: 0 0 auto;
}

.lol-champions-build-subsection {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(137, 165, 214, 0.2);
}

.lol-champions-build-subtitle {
    color: #c7dcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.lol-champions-build-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(137, 165, 214, 0.14);
    min-height: 54px;
}

.lol-champions-build-option.is-empty {
    color: #95add0;
    font-size: 13px;
    font-weight: 700;
    justify-content: flex-start;
}

.lol-champions-build-option.is-plus-divider .lol-champions-build-meta {
    border-left: 1px solid rgba(138, 169, 222, 0.28);
    padding-left: 10px;
    margin-left: 2px;
    align-self: stretch;
    justify-content: center;
}

.lol-champions-build-list .lol-champions-build-option:last-child {
    border-bottom: none;
}

.lol-champions-build-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.lol-champions-build-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lol-champions-build-plus-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: rgba(138, 169, 222, 0.28);
    margin: 6px 0 2px;
    border-radius: 999px;
}

.lol-champions-build-plus-divider>span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(141, 174, 229, 0.42);
    background: rgba(10, 22, 52, 0.96);
    color: #b9d6ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
}

.lol-champions-build-item-row.is-empty {
    opacity: 0.75;
}

.lol-champions-build-item-name {
    color: #e8f2ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lol-champions-item-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.lol-champions-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.lol-champions-build-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 88px;
}

.lol-champions-build-stats {
    margin-top: 0;
    color: #f7fbff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.lol-champions-build-matches {
    color: #a7c2ea;
    font-size: 11px;
    margin-top: 0;
    font-weight: 600;
    white-space: nowrap;
}

.lol-champions-build-empty-icon {
    color: #8ba2c8;
}

.lol-champions-runes-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 0;
    align-items: stretch;
}

.lol-champions-runes-main {
    min-width: 0;
    padding-right: 14px;
}

.lol-champions-runes-sidebar {
    min-height: 236px;
    border-left: 1px solid rgba(137, 165, 214, 0.22);
    padding: 0 0 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header "Opinie" — styl jak build-tabs z dividerem */
.lol-champions-opinions-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(124, 157, 211, 0.22);
    width: 100%;
    padding-bottom: 0;
}

.lol-champions-opinions-header-label {
    color: #20c9ff;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: var(--font-family);
    line-height: 1.2;
    padding: 6px 11px 8px;
    border-bottom: 2px solid #20c9ff;
    margin-bottom: -1px;
    pointer-events: none;
    user-select: none;
}

/* Wrapper centering blocks vertically in remaining space */
.lol-champions-opinion-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

/* Opinion block — bez boxu */
.lol-champions-opinion-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

/* Left: tytuł + gwiazdka+średnia w jednej linii */
.lol-champions-opinion-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.lol-champions-opinion-title {
    color: #f2f7ff;
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lol-champions-opinion-score-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lol-champions-opinion-big-star {
    font-size: 22px;
    line-height: 1;
    color: #c8a840;
    user-select: none;
}

.lol-champions-opinion-average {
    font-size: 18px;
    font-weight: 900;
    color: #f4f8ff;
    letter-spacing: -0.01em;
    line-height: 1;
}

.lol-champions-opinion-votes {
    font-size: 11px;
    font-weight: 500;
    color: #7a96be;
}

/* Right: segmented pill bar — fixed width so both bars are equal */
.lol-champions-opinion-right {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The pill bar: all 5 segments in one rounded container */
.lol-champions-opinion-stars {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(122, 157, 218, 0.3);
    background: rgba(7, 15, 38, 0.7);
    height: 36px;
}

/* Each segment */
.lol-champions-opinion-star {
    flex: 1 1 0;
    border: none;
    border-right: 1px solid rgba(122, 157, 218, 0.22);
    background: transparent;
    color: #8ab0d8;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 140ms ease, color 140ms ease;
    position: relative;
    padding: 0;
}

.lol-champions-opinion-star:last-child {
    border-right: none;
}

.lol-champions-opinion-star:hover:not(:disabled) {
    background: rgba(32, 150, 230, 0.22);
    color: #e8f6ff;
}

.lol-champions-opinion-star.is-selected {
    background: rgba(15, 146, 221, 0.32);
    color: #f0faff;
    box-shadow: inset 0 0 12px rgba(36, 195, 255, 0.12);
}

.lol-champions-opinion-star.is-filled {
    background: rgba(15, 100, 180, 0.22);
    color: #d0ebff;
}

.lol-champions-opinion-star:disabled {
    opacity: 0.52;
    cursor: default;
}

.lol-champions-opinion-footer {
    color: #a6c1e8;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 2px 0;
}

.lol-champions-opinion-footer.is-muted {
    color: #7e97ba;
}

.lol-champions-runes-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.lol-champions-rune-tree {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 14px 0 0;
    min-height: 228px;
    display: flex;
    flex-direction: column;
}

.lol-champions-rune-tree.is-secondary-tree {
    border-left: 1px solid rgba(137, 165, 214, 0.28);
    padding: 0 0 0 14px;
    margin-left: 4px;
}

.lol-champions-rune-tree-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.lol-champions-rune-tree-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lol-champions-rune-tree-title {
    color: #eaf3ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.lol-champions-rune-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.lol-champions-rune-tree.is-secondary-tree .lol-champions-rune-slots {
    padding-top: 0;
}

.lol-champions-rune-slot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 6px;
}

.lol-champions-rune-slot.is-keystone-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.lol-champions-rune-node {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(140, 170, 219, 0.26);
    background: rgba(7, 16, 39, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    opacity: 0.42;
    filter: grayscale(0.45);
    transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.lol-champions-rune-node img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lol-champions-rune-node.is-selected {
    opacity: 1;
    filter: none;
    border-color: rgba(42, 203, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(42, 203, 255, 0.28), 0 0 10px rgba(42, 203, 255, 0.2);
    transform: translateY(-1px);
}

.lol-champions-rune-node.is-keystone {
    width: 48px;
    height: 48px;
}

.lol-champions-rune-node.is-keystone img {
    width: 34px;
    height: 34px;
}

.lol-champions-rune-keystone-divider {
    height: 1px;
    background: rgba(137, 165, 214, 0.28);
    border-radius: 999px;
    margin: 2px 0 6px;
}

.lol-champions-rune-tree-empty,
.lol-champions-rune-shards-empty {
    color: rgba(161, 182, 216, 0.86);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.lol-champions-rune-shards-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(36px, 1fr));
    gap: 6px;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    width: 100%;
}

.lol-champions-rune-footer {
    margin-top: 10px;
}

.lol-champions-rune-secondary-divider {
    height: 1px;
    background: rgba(137, 165, 214, 0.28);
    border-radius: 999px;
    margin: 0 0 10px;
}

.lol-champions-rune-secondary-shards {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.lol-champions-rune-shard-node {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(140, 170, 219, 0.26);
    background: rgba(7, 16, 39, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    opacity: 0.9;
}

.lol-champions-rune-shard-node img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lol-champions-rune-shard-node.is-selected {
    opacity: 1;
    border-color: rgba(42, 203, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(42, 203, 255, 0.28), 0 0 10px rgba(42, 203, 255, 0.2);
}

.lol-champions-counters-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.lol-champions-counters-main {
    min-width: 0;
    padding-right: 14px;
    display: block;
}

.lol-champions-counters-sidebar {
    min-height: 206px;
    border-left: 1px solid rgba(137, 165, 214, 0.22);
    padding-left: 14px;
    display: block;
}

.lol-champions-counters-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lol-champions-counters-column {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 12px;
}

.lol-champions-counters-column:first-child {
    padding-left: 0;
}

.lol-champions-counters-column:last-child {
    padding-right: 0;
}

.lol-champions-counters-column + .lol-champions-counters-column {
    border-left: 1px solid rgba(137, 165, 214, 0.24);
}

.lol-champions-counters-column .lol-champions-opinions-header {
    margin-bottom: 8px;
}

.lol-champions-counters-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(124, 157, 211, 0.22);
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.lol-champions-counters-header-label {
    color: #20c9ff;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: var(--font-family);
    line-height: 1.2;
    padding: 6px 11px 8px;
    border-bottom: 2px solid #20c9ff;
    margin-bottom: -1px;
    pointer-events: none;
    user-select: none;
}

.lol-champions-counters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-height: 208px;
    align-content: center;
    justify-items: center;
}

.lol-champions-counters-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.lol-champions-counter-card {
    border: 1px solid rgba(132, 164, 221, 0.2);
    border-radius: 10px;
    background: #121829;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 118px;
    width: 100%;
    max-width: 132px;
    justify-self: center;
}

.lol-champions-counters-sidebar .lol-champions-counter-card {
    max-width: none;
    width: 100%;
}

.lol-champions-spells-card {
    max-width: 168px;
    min-height: 140px;
}

.lol-champions-spells-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lol-champions-spell-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(205, 224, 255, 0.24);
    background: rgba(5, 11, 29, 0.9);
    display: grid;
    place-items: center;
}

.lol-champions-spell-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lol-champions-spell-fallback {
    color: #dfefff;
    font-size: 12px;
    font-weight: 900;
}

.lol-champions-counter-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(205, 224, 255, 0.24);
    background: rgba(5, 11, 29, 0.9);
    display: grid;
    place-items: center;
}

.lol-champions-counter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lol-champions-counter-avatar span {
    color: #dfefff;
    font-size: 12px;
    font-weight: 900;
}

.lol-champions-counter-name {
    color: #f4f8ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lol-champions-counter-winrate {
    color: #ff6d6d;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

.lol-champions-counters-column.is-easiest .lol-champions-counter-winrate {
    color: #20c9ff;
}

.lol-champions-counter-winrate.is-warning {
    color: #f5c451;
}

.lol-champions-counter-winrate.is-bad {
    color: #ff5656;
}

.lol-champions-counter-winrate.is-critical {
    color: #b93a3a;
}

.lol-champions-counter-matches {
    color: #9cb7df;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.lol-champions-counters-empty {
    color: rgba(161, 182, 216, 0.86);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.lol-champions-skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 10px;
}

.lol-champions-skin-card {
    position: relative;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(132, 164, 221, 0.18);
    background: #121829;
    min-height: 212px;
}

.lol-champions-skin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lol-champions-skin-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(7, 13, 32, 0.02) 0%, rgba(8, 14, 34, 0.92) 42%, rgba(6, 10, 22, 0.98) 100%);
    padding: 10px;
    transition: opacity 180ms ease, transform 180ms ease;
}

.lol-champions-skin-name {
    color: #f8fbff;
    font-size: 16px;
    font-weight: 800;
}

.lol-champions-skin-status {
    margin-top: 7px;
}

.lol-champions-skin-hover-actions {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    background:
        radial-gradient(ellipse at center, rgba(6, 12, 30, 0.16) 0%, rgba(6, 12, 30, 0.54) 72%, rgba(4, 8, 20, 0.76) 100%),
        linear-gradient(180deg, rgba(4, 8, 20, 0.22) 0%, rgba(4, 8, 20, 0.64) 100%);
}

.lol-champions-skin-hover-actions.is-empty {
    display: none;
}

.lol-champions-skin-hover-action {
    border: 1px solid rgba(68, 142, 255, 0.65);
    background: rgba(20, 43, 86, 0.92);
    color: #ffffff;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    line-height: 1.2;
    border-radius: 9px;
    padding: 9px 14px;
    min-width: 168px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.lol-champions-skin-hover-action:hover:not(:disabled) {
    border-color: rgba(73, 212, 255, 0.78);
    background: rgba(18, 52, 103, 0.95);
}

.lol-champions-skin-hover-action:disabled {
    opacity: 0.75;
    cursor: default;
}

.lol-champions-skin-hover-action.is-wishlist {
    background: rgba(20, 53, 102, 0.92);
    border-color: rgba(102, 168, 255, 0.52);
}

.lol-champions-skin-hover-action.is-wishlist.is-remove {
    background: rgba(80, 35, 46, 0.92);
    border-color: rgba(255, 143, 143, 0.56);
}

.lol-champions-skin-hover-action.is-added {
    background: rgba(33, 69, 122, 0.94);
}

.lol-champions-skin-card.has-hover-actions:hover .lol-champions-skin-hover-actions,
.lol-champions-skin-card.has-hover-actions:focus-within .lol-champions-skin-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.lol-champions-skin-card.has-hover-actions:hover .lol-champions-skin-overlay,
.lol-champions-skin-card.has-hover-actions:focus-within .lol-champions-skin-overlay {
    opacity: 0;
    transform: translateY(8px);
}

.lol-champions-skin-price {
    color: #ecf3ff;
    font-size: 15px;
    font-weight: 800;
}

.lol-champions-skin-price.is-owned {
    color: #22c55e;
}

.lol-champions-skin-price.is-mythic {
    color: #a855f7;
}

.lol-champions-skin-price.is-unavailable {
    color: #93a9c9;
}

.lol-champions-skin-price.is-sale .old {
    text-decoration: line-through;
    color: rgba(230, 236, 247, 0.65);
    margin-right: 6px;
}

.lol-champions-skin-price.is-sale .new {
    color: #dff6ff;
    margin-right: 6px;
}

.lol-champions-skin-price.is-sale .chip {
    border-radius: 999px;
    padding: 2px 7px;
    background: rgba(5, 197, 115, 0.22);
    color: #27d082;
    font-size: 11px;
    font-weight: 900;
}

.lol-champions-loading,
.lol-champions-empty,
.lol-champions-error {
    border-radius: 12px;
    border: 1px solid rgba(129, 163, 230, 0.22);
    padding: 16px;
    color: #e5f0ff;
    background: #121829;
    font-weight: 700;
}

.lol-champions-error {
    color: #fecaca;
}

@media (max-width: 1500px) {
    .lol-champions-build-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .lol-champions-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
    }

    .lol-champions-mode-group,
    .lol-champions-lane-group {
        justify-self: stretch;
    }

    .lol-champions-search-top {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    .lol-champions-page {
        margin-top: calc(-1 * var(--spacing-lg));
    }

    .lol-champions-hero-shell .player-detail-header {
        height: 320px;
    }

    .lol-champions-hero-shell .player-detail-content {
        bottom: 96px;
        padding: 20px 22px;
    }

    .lol-champions-header-right {
        max-width: min(72%, 520px);
        margin-left: 16px;
    }

    .lol-champions-hero-description {
        min-height: 84px;
        padding: 10px 14px 12px;
        font-size: 12px;
    }

    .lol-champions-build-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lol-champions-runes-layout {
        grid-template-columns: 1fr;
    }

    .lol-champions-runes-main {
        padding-right: 0;
    }

    .lol-champions-runes-sidebar {
        display: none;
    }

    .lol-champions-counters-layout {
        grid-template-columns: 1fr;
    }

    .lol-champions-counters-column {
        padding: 0;
        border-left: none !important;
    }

    .lol-champions-counters-main {
        padding-right: 0;
    }

    .lol-champions-counters-sidebar {
        display: none;
        padding-left: 0;
    }

    .lol-champions-runes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .lol-champions-toolbar {
        margin-left: calc(-1 * var(--spacing-lg));
        margin-right: calc(-1 * var(--spacing-lg));
        width: calc(100% + (var(--spacing-lg) + var(--spacing-lg)));
        top: calc(56px + env(safe-area-inset-top));
    }

    .lol-champions-toggle-group {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .lol-champions-lane-btn {
        width: 36px;
        min-width: 36px;
    }

    .lol-champions-toggle-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .lol-champions-build-grid {
        grid-template-columns: 1fr;
    }

    .lol-champions-runes-grid {
        grid-template-columns: 1fr;
    }

    .lol-champions-counters-split {
        grid-template-columns: 1fr;
    }

    .lol-champions-rune-tree.is-secondary-tree .lol-champions-rune-slots {
        padding-top: 0;
    }

    .lol-champions-rune-tree.is-secondary-tree {
        border-left: none;
        border-top: 1px solid rgba(137, 165, 214, 0.24);
        margin-left: 0;
        margin-top: 10px;
        padding: 10px 0 0 0;
    }

    .lol-champions-rune-tree {
        min-height: 200px;
    }
}
