:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 22, 34, 0.78);
    --bg-card-2: rgba(9, 13, 23, 0.88);
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.62);
    --line: rgba(255, 255, 255, 0.12);
    --accent: #ff355e;
    --accent-soft: rgba(255, 53, 94, 0.18);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1180px;
    --transition: 0.25s ease;
  }
  champion-hero-container-aram{
    padding-top: 1px!important;
  }
  .section-bg::before {

    content: "";
    position: absolute;

    right: 0%;
    left: 8px;
    background-size: contain;
    /* opacity: 0.2; */
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 350px;
  }
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
.box-show-icon-skill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0px;
}

.box-show-icon-skill img {
  width: 37px;
  height: 37px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-show-icon-skill img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    background-color: #141519!important;
    font-family: 'Quicksand';
    color: var(--text-main);
}
  
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button,
  input,
  select {
    font: inherit;
  }
  #champion-runes-title {
    font-family: 'Quicksand';
    text-transform: uppercase;
  }
  .container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    max-width: 1200px;
  }
  .build-overview-container .section-bg::before{
    height: 820px;
    top: -50px;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
  }
  
  .champion-hero {
    position: relative;
    overflow: hidden;

  }
  
  .champion-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .champion-hero__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 128px 1fr;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 50px;
  }

  .champion-hero-container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 1px;
    padding-bottom: 20px;
  }

  .build-overview-container .build-overview__inner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .build-overview-container .build-overview__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:#191D20;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.build-overview__inner::after {
  content: "";
  position: absolute;
  inset: 0;
background: #19120D;
  z-index: -2;
}

/* Lớp làm tối sâu hơn + hơi xanh */
.champion-hero-container::after,
.build-overview-container::after {
  content: "";
  position: absolute;
  inset: 0;

  backdrop-filter: blur(2px);
  z-index: -1;
}

/* Giữ nội dung nằm trên overlay */
.champion-hero__header > * {
  position: relative;
  z-index: 1;
}
  
  .champion-hero__thumb-wrap {
    position: relative;
    width: 100px;
  }
  
  .champion-hero__tier {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 30px;
    padding: 0 16px;
    border: 2px solid var(--accent);
    border-radius: 5px;
    background: #101522;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--shadow);
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    color: #FFF;
    text-align: center;
  }
  
  .champion-hero__thumb {
    border: 3px solid var(--accent);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  
  .champion-hero__content {
    max-width: 820px;
  }
  
  .champion-hero__eyebrow {
    color: #FFF;
    font-family: "Quicksand";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 0px;
    margin-top: 0px;
  }
  .champion-hero__eyebrow strong {
    color: #FFF;
    font-family: "Noto Sans Georgian";
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
  }
  
  .champion-hero__title {
    display: flex;
    flex-wrap: wrap;
    color: #FFF;
    text-align: justify;
    font-family: "Quicksand";
    font-size: 15.411px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
  
  .champion-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-soft);
  }
  
  .champion-hero__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .champion-hero__skills img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }
  
  .champion-hero__desc {
    margin: 0;
    max-width: 500px;
    color: #FFF;
    text-align: justify;
    font-family: "Quicksand";
    font-size: 15.411px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 500px;
  }
  
  .champion-tabs {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }
  
  .champion-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .champion-tabs__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color var(--transition);
  }
  
  .champion-tabs__link:hover,
  .champion-tabs__link:focus-visible,
  .champion-tabs__link.is-active {
    color: #fff;
  }
  a.champion-tabs__link.is-active {
    color: #EF233C;
  }
  
  .champion-tabs__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
  }
  
  .champion-toolbar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
  }
  
  .champion-toolbar__roles {
display: grid;
  gap: 0px;
  align-content: space-between;
  justify-content: space-around;
  grid-auto-flow: column dense;
  }
  
  .role-btn {
width: 40px;
  height: 35px;
  border: 0px solid #7f7f7f;
  border-radius: 0;
  background: #191D20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  }
  
  .role-btn:hover,
  .role-btn:focus-visible {

    border-color: rgba(255,255,255,0.24);
  }
  
  .role-btn.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
  }
  
  .champion-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  
  .select-wrap,
  .search-wrap {
    position: relative;
  }
  
  .select-wrap select,
  .search-wrap input {
    border: 0px solid var(--line);
    border-radius: 4px;
    background: #191D20;
    color: #fff;
    outline: none;
    min-width: 88px;
    padding: 0 10px;
    appearance: none;
    cursor: pointer;
    height: 36px;
    font-size: 14px;
  }
  
  .select-wrap select {
    min-width: 128px;
    padding: 0 40px 0 16px;
    appearance: none;
    cursor: pointer;
  }
  
  .select-wrap::after {
    content: "▾";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
    font-size: 0.95rem;
  }
  
  .search-wrap {
    flex: 1;
    min-width: 220px;
  }
  
  .search-wrap input {
    width: 100%;
    padding: 0 54px 0 16px;
  }
  
  .search-wrap input::placeholder {
    color: var(--text-muted);
  }
  
  .search-wrap button {
    position: absolute;
    top: 53%;
    right: 8px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
  }
  
  .search-wrap button:hover,
  .search-wrap button:focus-visible {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }
  
  .champion-toolbar__profile {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
  }
  
  .champion-toolbar__profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (min-width: 1200px) { 
    .search-wrap button {
      top: 53%;
      left: 200px
    }
    .search-wrap input {
      width: auto;
    }
    h1 {
        font-size: 25px;
    }
  }
  @media (max-width: 991px) {
    .champion-hero {
      padding-top: 36px;
    }
  
    .champion-hero__header {
      grid-template-columns: 1fr;
      gap: 22px;
    }
  
    .champion-hero__thumb-wrap {
      width: 140px;
    }
  
    .champion-toolbar {
      grid-template-columns: 1fr;
      align-items: stretch;
    }
  
    .champion-toolbar__filters {
      flex-wrap: wrap;
    }
  
    .champion-toolbar__profile {
      width: 48px;
      height: 48px;
    }
  }
  
  @media (max-width: 640px) {
    .container {
      width: min(100% - 24px, var(--container));
    }
  
    .champion-hero {
      min-height: auto;
          top: -35px;
    }
  
    .champion-hero__title {
      gap: 8px;
    }
  
    .champion-hero__subtitle {
      display: block;
      width: 100%;
    }
  
    .champion-tabs__list {
      gap: 6px 18px;
    }
  
    .champion-tabs__link {
      min-height: 48px;
      font-size: 0.97rem;
    }
  
    .role-btn,
    .select-wrap select,
    .search-wrap input {
      height: 36px;
    }
  
    .role-btn {
      width: 70px;
    }
  
    .champion-toolbar__filters {
      gap: 10px;
    }
  
    .select-wrap,
    .search-wrap {
      width: 100%;
    }
  
    .select-wrap select {
      width: 100%;
    }
  }
  .champion-stats {
    position: relative;
    padding-bottom: 20px;
    z-index: 2;
    background: #141519;
  }
  
  .champion-stats__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #191D20;
    overflow: hidden;
  }
  
  .stat-card {
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .stat-card:last-child {
    border-right: 0;
  }
  
  .stat-card__label {
    margin: 0 0 10px;
    color: #FFF;
    text-align: justify;
    font-family: "Quicksand";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
  }
  
  .stat-card__value {
    margin: 0;
    color: #FFF;
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
  }
  
  .stat-card__value:not(.stat-card__value--tier) {
    font-size: clamp(1.5rem, 2vw, 1rem);
  }
  
  .stat-card__value--tier {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tier-badge {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    width: 38px;
    height: 40px;
    padding-top: 4px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    background: #ff2a3d;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
    box-shadow: 0 10px 18px rgba(255, 42, 61, 0.18);
  }
  
  @media (max-width: 991px) {
    .champion-stats__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .stat-card:nth-child(3n) {
      border-right: 0;
    }
  
    .stat-card:nth-child(-n + 3) {
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
  }
  
  @media (max-width: 640px) {
#championFilterForm {
    display: grid;
    /* Chia làm 2 cột có chiều rộng bằng nhau */
    grid-template-columns: repeat(2, 1fr);
    /* Khoảng cách giữa các ô */
    gap: 10px;
    width: 100%;
  }
    #championFilterForm .search-wrap {
      grid-column: span 2;
    }
  
    /* Các ô select-wrap mặc định sẽ tự nhảy vào mỗi cột (mỗi hàng 2 ô) */
    #championFilterForm .select-wrap {
      width: 100%;
    }
    .stat-card {
      min-height: 94px;
      padding: 16px 10px;
    }
  
    .stat-card:nth-child(3n) {
      border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
  
    .stat-card:nth-child(2n) {
      border-right: 0;
    }
  
    .stat-card:nth-child(-n + 3) {
      border-bottom: 0;
    }
  
    .stat-card:not(:nth-last-child(-n + 2)) {
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
  
    .stat-card__label {
      font-size: 0.95rem;
      margin-bottom: 8px;
    }
  
    .stat-card__value:not(.stat-card__value--tier) {
      font-size: 1.75rem;
    }
  }
  .build-overview {
    position: relative;
    padding-bottom: 40px;
    z-index: 2;
  }
  
  .build-overview__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.65fr 0.8fr;
    gap: 28px;
    padding: 28px 28px 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    overflow: visible;
    z-index: 999;
  }
  
  .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .panel-title,
  .side-block__title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: #FFF;
    font-family: "Quicksand";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }
  
  .panel-title::after,
  .side-block__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.72);
  }
  
  .panel-subtitle {
    margin: 0;
    font-family: 'Quicksand';
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    max-width: 180px;
  }
  
  .rune-builds {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .rune-build-card {
    min-width: 135px;
        padding: 5px 5px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(38, 42, 56, 0.9);
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
  }
  
  .rune-build-card__icons {
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 42px;
  }
  
  .rune-build-card__icons img:first-child {
    width: 42px;
    height: 42px;
  }
  
  .rune-build-card.is-active {
    background: #11363a !important;
  }
  .rune-build-card__icons img:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
  }
  
  .rune-build-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .rune-build-card__rate {
    font-family: 'Quicksand';
    display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 27px;
        border: 1px solid #ff2e4f;
        border-radius: 4px;
        color: white;
        font-weight: 800;
        font-size: 0.9rem;
  }
  
  .rune-build-card__games {
    font-family: 'Quicksand';
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
  }
  
  .runes-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  
  .rune-tree {
    position: relative;
    font-family: 'Quicksand';
  }
  /* Nhắm thẳng vào div chứa hàng ngọc của bảng đầu tiên */
  .rune-tree .rune-row {
      display: flex !important;
      grid-template-columns: none !important;
      /* Buộc phải tắt grid */
      justify-content: center !important;
      gap: 0px !important;
      /* Khoảng cách giữa các viên ngọc, tăng lên để không bị co cụm */
      width: 100% !important;
  }
.rune-tree:first-of-type>.rune-options{
    gap: 55px;
}
  /* Căn chỉnh lại các item bên trong để chúng không bị dính vào nhau */
  .rune-tree:first-of-type .rune-row>div {
display: flex !important;
    justify-content: center !important;
    width: auto;
    margin: 10px;
  }
  
  .rune-tree__header {
    min-height: 55px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    margin-bottom: 18px;
    background: rgba(41, 45, 56, 0.95);
    border-radius: 6px;
    position: relative;
  }
  
  .rune-tree__header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 6px 0 0 6px;
  }
  
  .rune-tree__header--gold::before {
    background: linear-gradient(180deg, #ffb341, #ff9f1a);
  }
  
  .rune-tree__header--green::before {
    background: linear-gradient(180deg, #41ff70, #1fff55);
  }
  
  .rune-tree__header h3 {
    margin: 0;
    color: #FFF;
    text-align: center;
    font-family: "Quicksand";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  
  .rune-tree__body {
    padding-right: 6px;
  }
  
  .rune-row,
.shards__row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    column-gap: 28px;
}

.rune-row__dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: #fff;
    display: block;
    opacity: 0.95;
}
@media (min-width: 1200px) {
  .rune-tree:first-of-type .rune-row:not(.rune-row--keystone) .rune-options {
      display: flex !important;
      justify-content: center !important;
      gap: 75px !important;
      /* Độ giãn 100px theo ý bạn */
      grid-template-columns: none !important;
      /* Tắt grid để flex hoạt động */
      width: 100% !important;
  }
}
  .rune-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
  }
  
  .rune-row__dot {
    width: 0px;
    height: 0px;
    border-radius: 50%;

    display: block;
  }
  
  .rune-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
  }
  .rune-row--keystone .rune-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rune-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1) brightness(0.85);
    opacity: 0.72;
    transition: 0.2s ease;
  }
  
  .rune-icon.is-selected {
    filter: none;
    opacity: 1;
    transform: scale(1.02);
  }
  
  .rune-row--keystone .rune-icon {
    width: 56px;
    height: 56px;
  }
  
  .rune-divider {
    height: 2px;
    background: rgba(255,255,255,0.65);
    margin: 14px 0 24px 0;
  }
  
  .shards {
    margin-top: 4px;
  }
  
  .shards__row {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 5px;
    align-items: center;
    margin-bottom: 22px;
  }
  
  .shards__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: center;
  }
  
  .shard-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.72;
    filter: grayscale(1) brightness(0.9);
  }
  
  .shard-icon.is-selected {
    opacity: 1;
    filter: none;
  }
  
  .build-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  
  .side-block {
    position: relative;
  }
  
  .spell-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .spell-card {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 82px 1fr;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: rgba(42, 46, 58, 0.92);
    border-radius: 4px;
    max-width: 330px;
  }
  
  .spell-card__icons {
    display: flex;
    gap: 6px;
  }
  
  .spell-card__icons img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
  }
  
  .spell-card__rate {
    display: inline-flex;
    font-family: "Quicksand";
    align-items: center;
    justify-content: center;
    height: 27px;
    border: 1px solid #ff2e4f;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
  }
  
  .spell-card__games {
    font-size: 0.95rem;
    font-family: "Quicksand";
    font-weight: 600;
    color: rgba(255,255,255,0.82);
  }
  
  .item-group {
    margin-bottom: 22px;
  }
  
  .item-group:last-child {
    margin-bottom: 0;
  }
  
  .item-group__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
  }
  
  .item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .item-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.92);
    background: #111;
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
    filter: brightness(0.7);
  }
  
  .item-icon.is-active {
    border-color: #ffd15c;
  }
  
  .panel-avatar {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(70, 76, 92, 0.95);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  
  .panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .panel-avatar--left {
    left: calc(100% - 34px);
    bottom: 10px;
  }
  
  .panel-avatar--right {
    right: -6px;
    top: 74px;
  }
  
  @media (max-width: 1200px) {
    .build-overview__inner {
      grid-template-columns: 1fr;
    }
  
    .panel-avatar--left,
    .panel-avatar--right {
      display: none;
    }
  
    .spell-card {
      max-width: 100%;
    }
  }
  
  @media (max-width: 991px) {
    .panel-heading {
      flex-direction: column;
    }
  
    .rune-builds {
      justify-content: flex-start;
      display: grid;
        grid-auto-flow: column;
        scale: 0.9;
    }
  
    .runes-layout {
      grid-template-columns: 1fr;
      scale: 0.9;
      margin-top: -20px;
    }
    .build-side {
      margin-top: -40px;
    }
    .panel-title::after,
    .side-block__title::after {
      width: 180px;
    }
  }
  
  @media (max-width: 640px) {
    .build-overview__inner {
      padding: 18px 16px;
      gap: 20px;
    }
  
    .rune-build-card {
      min-width: 48%;
    }
  
    .rune-tree__header {
      min-height: 62px;
      padding: 0 14px;
    }
  
    .rune-tree__header h3 {
      font-size: 1rem;
    }
  
    .rune-row,
    .shards__row {
      gap: 0px;
      grid-template-columns: 40px 1fr;
    }
  
    .rune-options {
      gap: 55px;
    }
  
    .rune-icon {
      width: 52px;
      height: 52px;
    }
  
    .rune-row--keystone .rune-icon {
      width: 56px;
      height: 56px;
    }
  
    .shards__options {
      gap: 55px;
    }
  
    .spell-card__rate {
      min-width: 76px;
    }
  
    .item-icon {
      width: 52px;
      height: 52px;
    }
  }

  .similar-matchups-box {
    background: #141519;
    font-family: 'Quicksand';
  }
  
  .similar-matchups-box__inner {
    /* padding: 38px 34px 42px; */
    /* background: #191D20; */
    margin-bottom: 200px;
    /* box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); */
  }
  
  .similar-matchups-box__header {
    margin-bottom: 25px;
  }
  
  .similar-matchups-box__title {
    position: relative;
    margin: 0;
    padding-bottom: 16px;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
  }
  
  .similar-matchups-box__title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.82);
  }
  
  .similar-matchups-box__list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 21px;
  }
  
  .similar-matchups-box__card {
    padding: 10px 8px 0 8px;
    background: rgb(45 45 45 / 96%);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .similar-matchups-box__card:hover,
  .similar-matchups-box__card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
  }
  
  .similar-matchups-box__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff2848;
    display: block;
    margin-bottom: 14px;
  }
  
  .similar-matchups-box__name {
    display: block;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
  }
  
  .similar-matchups-box__divider {
    width: 78%;
    height: 2px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.35);
  }
  
  .similar-matchups-box__win-rate {
    display: block;
    margin-bottom: 6px;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ff294a;
  }
  
  .similar-matchups-box__games {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
  }
  
  @media (max-width: 1400px) {
    .similar-matchups-box__list {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 1200px) {
    .similar-matchups-box__list {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .similar-matchups-box__inner {
      padding: 24px 18px 28px;
    }
      .panel-heading {
    margin-bottom: 0;
  }
    .section-bg::before {
              background-size: cover;
      height: 440px !important;
      top:62px;
    }
    .similar-matchups-box__header {
      margin-bottom: 28px;
    }
  
    .similar-matchups-box__list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
  
    .similar-matchups-box__card {
      padding: 20px 12px 18px;
    }
  
    .similar-matchups-box__avatar {
      width: 88px;
      height: 88px;
    }
  }

  .skill-order-box {
    padding-top: 0px;
    background: #141519;
    font-family: 'Quicksand';
    padding-bottom: 40px;
  }
  
  .skill-order-box__inner {
    padding: 38px 30px 40px;
    background: #191D20;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  }
  
  .skill-order-box__header {
    margin-bottom: 34px;
  }
  
  .skill-order-box__title {
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    text-transform: uppercase;
    color: #f5f7fb;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }
  
  .skill-order-box__title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255,255,255,0.78);
  }
  
  .skill-order-box__content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 38px;
    align-items: start;
  }
  
  .skill-order-box__left {
    padding-top: 0px;
  }
  
  .skill-order-box__subheading {
    margin: 0 0 16px;
    color: #f4f6fa;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
  }
  
  .skill-order-box__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
  }
  
  .skill-order-box__rate {
    display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 30px;
        padding: 0 10px;
        border-radius: 9px;
        border: 1px solid #ff2548;
        color: #ff2548;
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
        background: rgba(18, 22, 31, 0.35);
  }
  
  .skill-order-box__games {
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
  }
    .role-btn:first-child {
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }
  
    /* Bo góc bên phải cho nút cuối cùng */
    .role-btn:last-child {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  .skill-order-box__sequence {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 55px;
  }
  
  .skill-order-box__sequence-item {
    position: relative;
    flex: 0 0 auto;
  }
  
  .skill-order-box__sequence-item img {
    width: 33px;
    height: 33px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
  }
  
  .skill-order-box__sequence-key {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #FFF;
    font-size: 13.937px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }
  
  .skill-order-box__arrow {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-2px);
  }
  
  /* right */
  .skill-order-box__right {
    padding-top: 0px;
  }
  
  .skill-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .skill-grid__row {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 10px;
    align-items: center;
  }
  
  .skill-grid__skill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px 0 0;
    border-radius: 4px;
    background: rgba(42, 47, 58, 0.85);
    overflow: hidden;
    width: 188px;
    height: 32px;
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal
  }
  
  .skill-grid__icon {
    object-fit: cover;
    display: block;
    width: 31.737px;
    height: 31.737px;
  }
  
  .skill-grid__name {
    color: #FFF;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: lowercase;
  }
  .skill-grid__name::first-letter {
    text-transform: uppercase;
  }
  
  .skill-grid__levels {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 5px;
    align-items: center;
    margin-left: -110px;
  }
  
  .skill-grid__cell {
    aspect-ratio: 1 / 1;
    /* min-height: 52px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(6, 10, 16, 0.92);
    color: transparent;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    color: #84C441;
    text-align: center;
    font-family: "Quicksand";
    font-size: 13.841px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }
  
  .skill-grid__cell.is-active {
    background: rgba(43, 48, 59, 0.96);
  }
  
  /* màu số theo từng hàng */
  .skill-grid__row.is-q .skill-grid__cell.is-active {
    color: #8fd34d;
  }
  
  .skill-grid__row.is-w .skill-grid__cell.is-active {
    color: #5f8fff;
  }
  
  .skill-grid__row.is-e .skill-grid__cell.is-active {
    color: #ffa26c;
  }
  
  .skill-grid__row.is-r .skill-grid__cell.is-active {
    color: #ff3154;
  }
  
  /* responsive */

  
  @media (max-width: 1200px) {
    .skill-order-box__content {
      grid-template-columns: 1fr;
      gap: 28px;
    }
  
    .skill-order-box__left,
    .skill-order-box__right {
      padding-top: 0;
    }
  }
  
  @media (max-width: 768px) {
    .skill-order-box {
      overflow: hidden;
    }
    .champion-hero-container {
      padding-bottom: 0;
    }
    .skill-order-box .container {
      width: 100%;
      max-width: 100%;
      padding-left: 12px;
      padding-right: 12px;
      box-sizing: border-box;
    }
  
    .skill-order-box__inner {
      padding: 18px 12px 20px;
      overflow: hidden;
    }
  
    .skill-order-box__content {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
  
    .skill-order-box__left,
    .skill-order-box__right {
      width: 100%;
      min-width: 0;
      padding-top: 0;
    }
  
    .skill-order-box__stats {
      gap: 10px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }
  
    .skill-order-box__sequence {
      gap: 8px;
      flex-wrap: wrap;
    }
  
    .skill-order-box__sequence-item img {
      width: 40px;
      height: 40px;
    }
  
    .skill-order-box__sequence-key {
      font-size: 12px;
    }
  
    .skill-order-box__arrow {
      font-size: 18px;
    }
  
    .skill-grid {
      width: 100%;
      max-width: 100%;
      /* overflow-x: auto; */
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 6px;
    }
  
    .skill-grid__row {
      display: grid;
      grid-template-columns: 32px max-content;
      gap: 8px;
      align-items: center;
      min-width: max-content;
    }
  
    .skill-grid__skill {
        width: 32px;
        min-width: 0;
        height: 32px;
        padding-right: 0px;
        gap: 0px;
        font-size: 12px;
    }
  
    .skill-grid__icon {
      width: 32px;
      height: 32px;
    }
  
    .skill-grid__name {
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    .skill-grid__levels {
      margin-left: 0 !important;
      display: grid;
      grid-template-columns: repeat(18, 26px);
      gap: 4px;
      width: max-content;
      min-width: max-content;
    }
  
    .skill-grid__cell {
      width: 26px;
      height: 26px;
      min-height: 26px;
      font-size: 11px;
      border-radius: 4px;
      flex: 0 0 26px;
    }
  }


  .item-tooltip-wrap,
.rune-tooltip-wrap,
.spell-tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.item-tooltip,
.rune-tooltip,
.spell-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  width: 360px;
  max-width: min(360px, 92vw);
  background: #191D20;
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 5px;
  padding: 16px;
  color: #e8edf7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 9999999;
}

.item-tooltip-wrap:hover .item-tooltip,
.rune-tooltip-wrap:hover .rune-tooltip,
.spell-tooltip-wrap:hover .spell-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.item-tooltip::after,
.rune-tooltip::after,
.spell-tooltip::after {
  /* content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 10px 9px 0 9px;
  border-style: solid;
  border-color: #050b16 transparent transparent transparent; */
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tooltip-header img {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.tooltip-title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.tooltip-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(232, 237, 247, 0.88);
  margin: 0;
}

.tooltip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tooltip-stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #f3f6ff;
}

.item-icon,
.rune-icon,
.shard-icon,
.spell-icon {
  cursor: pointer;
}
@media (max-width: 768px) {
  .item-tooltip-wrap,
  .rune-tooltip-wrap,
  .spell-tooltip-wrap {
    position: static;
  }

  .item-tooltip,
  .rune-tooltip,
  .spell-tooltip {
    position: absolute;
    left: 0%;
    right: 0%;
    bottom: 50%;
    width: 300px;
    max-width: none;
    transform: translateY(0);
    z-index: 99999999;
  }

  .item-tooltip::after,
  .rune-tooltip::after,
  .spell-tooltip::after {
    display: none;
  }

  .item-tooltip-wrap.is-open .item-tooltip,
  .rune-tooltip-wrap.is-open .rune-tooltip,
  .spell-tooltip-wrap.is-open .spell-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .tooltip-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .tooltip-header img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .tooltip-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .tooltip-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .tooltip-stats {
    gap: 6px;
    margin-top: 10px;
  }

  .tooltip-stat {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  body.tooltip-mobile-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
  }
}
/* ===== Breadcrumb ===== */
.breadcrumb-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 24px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px 24px;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  background: rgba(10, 16, 32, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.breadcrumb__link {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb__link:hover {
  color: #5b9cf6;
}

.breadcrumb__item--active span {
  color: #5b9cf6;
  font-weight: 700;
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
    padding: 8px 16px;
  }

  .breadcrumb__item + .breadcrumb__item::before {
    margin: 0 7px;
  }
}

/* ===== Direct Answer Box ===== */
.direct-answer-box {
  margin-top: 16px;
  padding: 15px 18px;
  border-left: 4px solid #16a34a;
  background: rgba(240, 253, 244, 0.07);
  border-radius: 0 10px 10px 0;
  max-width: 540px;
}

.direct-answer-box--top  { border-left-color: #f59e0b; background: rgba(251,191,36,0.07); }
.direct-answer-box--good { border-left-color: #16a34a; background: rgba(240,253,244,0.07); }
.direct-answer-box--mid  { border-left-color: #5b9cf6; background: rgba(91,156,246,0.07); }
.direct-answer-box--low  { border-left-color: #ef4444; background: rgba(239,68,68,0.07); }

.dab__headline {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
}

.dab__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: disc;
}

.dab__list li {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.dab__list li strong {
  color: #fff;
  font-weight: 700;
}

.dab__list li::marker {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .direct-answer-box {
    max-width: 100%;
    padding: 12px 14px;
  }
}
