/* Provider selector panel — intentionally scoped to avoid affecting game card components. */
.provider-panel {
  --pp-gold: #d7b26a;
  --pp-gold-bright: #ecce85;
  --pp-gold-deep: #8d6c3c;
  --pp-panel: #0d1628;
  --pp-panel-deep: #080f1b;
  --pp-inner: #060b15;
  --pp-border: rgba(215, 178, 106, 0.72);
  --pp-text: #e0e5ee;
  --pp-muted: #848d9f;
  --pp-chip-border: rgba(229, 210, 167, 0.14);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  color: var(--pp-text);
  background: linear-gradient(145deg, #101b30 0%, var(--pp-panel) 58%, #0a1221 100%);
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(251, 227, 164, 0.05), 0 7px 22px rgba(0, 0, 0, 0.2);
}

.provider-panel *,
.provider-panel *::before,
.provider-panel *::after {
  box-sizing: border-box;
}

.provider-panel button,
.provider-panel input {
  font: inherit;
}

.provider-panel button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.pp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-bottom: 12px;
}

.pp-categories {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
}

.pp-categories::-webkit-scrollbar {
  display: none;
}

.pp-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 9px;
  color: #9aa4b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.pp-category svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pp-category span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.1;
}

.pp-category:hover {
  color: #f0dfb5;
  background: rgba(215, 178, 106, 0.08);
}

.pp-category.active,
.pp-category[aria-selected="true"] {
  color: #0c1526;
  background: linear-gradient(180deg, var(--pp-gold-bright), var(--pp-gold));
  border-color: #efd895;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.27), 0 2px 7px rgba(0, 0, 0, 0.23);
}

.pp-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.pp-filters,
.pp-search {
  display: inline-flex;
  align-items: center;
  height: 34px;
  color: #aebad1;
  background: #080f1b;
  border: 1px solid rgba(215, 178, 106, 0.33);
  border-radius: 7px;
}

.pp-filters {
  gap: 6px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.pp-filters svg,
.pp-search svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.pp-filters:hover {
  color: var(--pp-gold-bright);
  border-color: var(--pp-gold);
  background: #0d1629;
}

.pp-search {
  width: clamp(104px, 10vw, 150px);
  gap: 6px;
  padding: 0 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pp-search:focus-within {
  border-color: var(--pp-gold);
  box-shadow: 0 0 0 2px rgba(215, 178, 106, 0.18);
}

.pp-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #e0e5ee;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  line-height: 1;
}

.pp-search input::placeholder {
  color: #697386;
  opacity: 1;
}

.pp-provider-area {
  position: relative;
  min-height: 80px;
  padding: 12px 34px 12px 12px;
  background: var(--pp-inner);
  border: 1px solid rgba(234, 208, 145, 0.14);
  border-radius: 7px;
}

.pp-provider-area[hidden] {
  display: none;
}

.pp-provider-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 260px);
  height: 32px;
  margin-bottom: 10px;
  padding: 0 9px;
  color: #aebad1;
  background: #080f1b;
  border: 1px solid rgba(215, 178, 106, 0.33);
  border-radius: 7px;
}
.pp-provider-search:focus-within { border-color: var(--pp-gold); box-shadow: 0 0 0 2px rgba(215, 178, 106, 0.18); }
.pp-provider-search svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; }
.pp-provider-search input { width: 100%; min-width: 0; color: #e0e5ee; background: transparent; border: 0; outline: 0; font-size: 11px; }
.pp-provider-search input::placeholder { color: #697386; }
.pp-provider-empty { color: #aebad1; font-size: 11px; padding-top: 8px; }
.pp-provider-empty[hidden], .pp-provider[hidden] { display: none; }

.pp-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 6px;
  width: 100%;
}

.pp-provider {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  height: 28px;
  max-width: 150px;
  padding: 4px 8px;
  color: #afb7c7;
  background: linear-gradient(180deg, #111c31, #0c1425);
  border: 1px solid var(--pp-chip-border);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.pp-provider img,
.pp-provider svg {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.pp-provider svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pp-provider span {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-provider:hover {
  color: #f1dfb6;
  border-color: rgba(215, 178, 106, 0.62);
  background: #13203a;
}

.pp-provider.active,
.pp-provider[aria-pressed="true"] {
  color: #0d1932;
  background: linear-gradient(180deg, #ecce85, #c9a056);
  border-color: #ecd295;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.pp-collapse {
  position: absolute;
  top: 10px;
  right: 8px;
  display: inline-grid;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #d6bb7e;
  background: #0d1629;
  border: 1px solid rgba(215, 178, 106, 0.42);
  border-radius: 50%;
  place-items: center;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 180ms ease;
}

.pp-collapse svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pp-collapse[aria-expanded="false"] svg,
.pp-collapse[aria-pressed="true"] svg {
  transform: rotate(180deg);
}

.pp-collapse:hover {
  color: #0d1932;
  background: var(--pp-gold);
  border-color: var(--pp-gold-bright);
}

.pp-results {
  padding: 8px 1px 0;
  color: #6b7487;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: right;
}

.provider-panel button:focus-visible,
.provider-panel input:focus-visible {
  outline: 2px solid var(--pp-gold-bright);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .provider-panel { padding: 8px; }
  .pp-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    margin-bottom: 5px;
  }

  .pp-categories {
    flex-basis: 100%;
    order: 1;
  }

  .pp-tools {
    order: 2;
    width: 100%;
  }

  .pp-category { min-height: 32px; padding-block: 3px; }
  .pp-category svg { width: 16px; height: 16px; }
  .pp-filters, .pp-search { height: 30px; }
  .pp-results { padding-top: 5px; }

  .pp-search {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 560px) {
  .provider-panel {
    padding: 5px;
    border-radius: 12px;
  }

  .pp-toolbar {
    gap: 5px;
    margin-bottom: 5px;
  }

  .pp-category {
    min-height: 32px;
    padding-inline: 8px;
  }

  .pp-category svg {
    width: 16px;
    height: 16px;
  }

  .pp-category span {
    font-size: 8px;
  }

  .pp-provider-area {
    min-height: 0;
    padding: 10px 31px 10px 10px;
  }

  .pp-providers {
    gap: 6px 5px;
  }

  .pp-provider {
    height: 27px;
    max-width: 137px;
    padding-inline: 7px;
  }
}

@media (max-width: 390px) {
  .pp-filters {
    padding-inline: 8px;
  }

  .pp-provider {
    max-width: 126px;
  }
}

/* Referans şerit: ikon üstte, küçük başlık altta. */
.provider-panel { margin:18px 0 24px; }
.provider-panel .pp-category { flex-direction:column; gap:6px; min-width:65px; min-height:52px; padding:6px 9px; }
.provider-panel .pp-empty { grid-column:1/-1; padding:35px 20px; border:1px solid #20396b; border-radius:10px; color:#8894ac; text-align:center; }
.pp-empty { grid-column:1/-1; padding:35px 20px; border:1px solid #20396b; border-radius:10px; color:#8894ac; text-align:center; }
@media(max-width:560px) { .provider-panel .pp-category { min-width:64px; min-height:45px; } }
.kgame[data-game-key] { position: relative; }
.kgame .pp-favorite { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d6bc814d; border-radius: 9px; background: #061222d9; color: #f2e4bc; box-shadow: 0 3px 10px #0007; cursor: pointer; }
.kgame .pp-favorite svg { width: 19px; height: 19px; }
.kgame .pp-favorite[aria-pressed="true"] { background: #b89a51; color: #081321; border-color: #e4cc88; }
.kgame .pp-favorite:hover,.kgame .pp-favorite:focus-visible { border-color: var(--primary-light); outline: 2px solid var(--primary-light); outline-offset: 2px; }
