/* CASINO-AGG P30 / premium UI polish. Additive, scoped; site CSS left intact. */

/* Studio catalog: a dedicated, aligned clear control instead of the native browser X. */
.provider-search-wrap { position: relative; width: 100%; }
.provider-search-wrap .search-input { display: block; padding-inline-end: 58px; }
.provider-search-clear { position: absolute; top: 50%; inset-inline-end: 11px; transform: translateY(-50%); display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 9px; background: rgba(154,185,255,.095); color: #9ab9ff; transition: background-color .16s ease, color .16s ease; }
.provider-search-clear:hover { background: rgba(154,185,255,.2); color: #fff; }
.provider-search-clear:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.provider-search-clear[hidden] { display: none; }
.provider-search-clear .ui-icon { display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask: url('/assets/icons/close.svg') center / contain no-repeat; mask: url('/assets/icons/close.svg') center / contain no-repeat; }

/* Languages: compact international selector, with scrolling only when the viewport needs it. */
.language-dropdown { position: relative; z-index: 55; }
.language-trigger { min-height: 43px; gap: 8px; padding: 8px 11px; background: rgba(154,185,255,.065); color: #dce8fc; border-radius: 9px; transition: background-color .15s ease, color .15s ease; }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { color: #fff; background: rgba(154,185,255,.135); }
.language-trigger-flag { display: block; flex: 0 0 21px; width: 21px; font-size: 18px; line-height: 1; text-align: center; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
/* International (EN/AR) language mark: neutral site-colored SVG instead of cyan system emoji. */
.language-globe { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.language-trigger-flag .language-globe { margin-inline: auto; color: #aabedb; }
.language-item-flag .language-globe { margin-inline: auto; color: #98adca; }
.language-trigger:hover .language-globe, .language-trigger[aria-expanded="true"] .language-globe { color: #cedcf2; }
.language-list .language-item:hover .language-globe, .language-list .language-item:focus-visible .language-globe, .language-list .language-item[aria-current="page"] .language-globe { color: #bcd0ec; }
.language-trigger-code { display: block; white-space: nowrap; letter-spacing: .045em; font-weight: 760; }
.language-trigger .language-chevron { width: 13px; height: 13px; margin-inline-start: 2px; }
.language-options { box-sizing: border-box; position: absolute; z-index: 60; top: calc(100% + 12px); inset-inline-end: 0; width: 328px; min-width: 0; max-height: min(660px, calc(100dvh - 112px)); padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; border: 0; border-radius: 13px; background: #162840; box-shadow: 0 24px 62px rgba(0, 5, 15, .42); color: #edf3ff; }
.language-options[hidden] { display: none; }
.language-panel-head { display: flex; align-items: center; justify-content: flex-start; min-height: 24px; padding: 2px 5px 0; }
.language-panel-title { color: #f3f6ff; font-weight: 740; font-size: 13px; }
.language-list { display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #617a9c transparent; padding-inline-end: 3px; }
.language-list::-webkit-scrollbar { width: 5px; }
.language-list::-webkit-scrollbar-thumb { background: #617a9c; border-radius: 10px; }
.language-list .language-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; column-gap: 11px; min-height: 42px; flex: 0 0 auto; padding: 9px 10px; border: 0; border-radius: 8px; color: #bdcce4; text-decoration: none; font-size: 13px; line-height: 1.3; transition: background-color .15s ease, color .15s ease; }
.language-list .language-item:hover, .language-list .language-item:focus-visible { background: #203653; color: #fff; }
.language-list .language-item[aria-current="page"] { background: #233c60; color: #fff; }
.language-item-flag { width: 25px; font-size: 19px; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; line-height: 1; text-align: center; direction: ltr; }
.language-item-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.language-item-code { color: #849ec4; font-size: 10px; font-weight: 780; letter-spacing: .03em; white-space: nowrap; }
.language-item[aria-current="page"] .language-item-code { color: #aecaff; }

/* Editorial SVG system: source artwork reused and original technical symbols in the same visual language. */
.editorial-symbol { display: block; flex: 0 0 auto; width: 148px; height: 94px; max-width: 100%; object-fit: contain; object-position: left center; margin: 0 0 24px; }
.content-card-icon .editorial-symbol { width: 156px; height: 104px; margin: 0 0 20px; }
.feature .editorial-symbol.feature-illustration { width: 165px; height: 106px; margin: 0 0 20px; }
.knowledge-topic .editorial-symbol.knowledge-topic-illustration { width: 140px; height: 88px; margin: 0; }
.composition-card .editorial-symbol.composition-illustration { position: relative; z-index: 1; width: 98px; height: 56px; margin: 0 0 7px; object-fit: contain; object-position: left center; }
.composition-card-sports .editorial-symbol.composition-illustration { width: 75px; height: 44px; }

@media (max-width: 950px) {
  .language-options { position: fixed; top: 87px; inset-inline-end: 18px; inset-inline-start: auto; width: min(342px, calc(100vw - 36px)); max-height: calc(100dvh - 102px); }
}
@media (max-width: 700px) {
  .language-options { top: 81px; max-height: calc(100dvh - 95px); }
  .content-card-icon .editorial-symbol { width: 143px; height: 94px; margin-bottom: 18px; }
  .feature .editorial-symbol.feature-illustration { height: 92px; }
}
@media (max-width: 450px) {
  .language-trigger { padding-inline: 8px; gap: 6px; }
  .language-trigger-flag { display: none; }
  .composition-card .editorial-symbol.composition-illustration { width: 76px; height: 40px; }
  .composition-card-sports .editorial-symbol.composition-illustration { width: 64px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-trigger, .language-list .language-item, .provider-search-clear { transition: none; }
}

/* CASINO-AGG P35-R2 / native-feeling filters and interactive cards. */
.content-provider-directory { scroll-margin-top: 92px; }
.agg-p35-controls { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(235px,.85fr); gap: 17px; align-items: end; max-width: 850px; }
.agg-p35-search-control, .agg-p35-filter-control { min-width: 0; display: grid; gap: 13px; }
.agg-p35-filter-control { position: relative; }
.agg-p35-filter-control label { color: var(--muted); font-size: 13px; }
.agg-p35-filter-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 55px; gap: 12px; padding: 12px 18px; border: 0; border-radius: 9px; background: #162840; color: #e7f0ff; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: start; cursor: pointer; }
.agg-p35-filter-trigger:hover, .agg-p35-filter-trigger[aria-expanded="true"] { background: #233c60; color: #fff; }
.agg-p35-filter-trigger .ui-icon { width: 15px; height: 15px; flex: 0 0 auto; color: #a7bbd8; transition: transform .18s ease; }
.agg-p35-filter-trigger[aria-expanded="true"] .ui-icon { transform: rotate(180deg); }
.agg-p35-filter-options { position: absolute; z-index: 48; top: calc(100% + 9px); inset-inline: 0; display: grid; gap: 3px; padding: 9px; border-radius: 12px; background: #162840; box-shadow: 0 22px 54px rgba(0,5,16,.44); }
.agg-p35-filter-options[hidden] { display: none; }
.agg-p35-filter-option { display: block; width: 100%; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 8px; background: transparent; color: #c0d0e6; font-family: inherit; font-size: 13px; line-height: 1.4; text-align: start; cursor: pointer; }
.agg-p35-filter-option:hover, .agg-p35-filter-option:focus-visible { color: white; background: #203653; }
.agg-p35-filter-option.is-active { color: white; background: #233c60; }
/* P35-R3: return to P34 card proportions; only a discreet top-corner arrow signals navigation. */
.agg-filter-category-grid { align-items: stretch; }
.agg-filter-category-card { position: relative; display: block; color: inherit; text-decoration: none; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.agg-filter-category-card:hover, .agg-filter-category-card:focus-visible { background: #1a2c49; box-shadow: 0 12px 26px rgba(2,11,28,.2); }
/* P42: no persistent border on a previously selected large category card. */
.agg-filter-category-card .agg-filter-card-arrow { position: absolute; inset-inline-end: clamp(27px, 3vw, 42px); top: clamp(28px, 3vw, 42px); display: block; width: 17px; height: 17px; margin: 0; color: #aec4e5; opacity: .8; transition: color .2s ease, opacity .2s ease, transform .2s ease; }
.agg-filter-category-card:hover .agg-filter-card-arrow, .agg-filter-category-card:focus-visible .agg-filter-card-arrow { color: #f3f7ff; opacity: 1; transform: translate(2px, -2px); }
@media (max-width: 450px) { .agg-filter-category-card .agg-filter-card-arrow { top: 27px; inset-inline-end: 27px; } }
.hero-zone .composition-card-link { cursor: pointer; color: #fff; text-decoration: none; transition: box-shadow .24s ease, filter .24s ease; }
.hero-zone .composition-card-link:hover, .hero-zone .composition-card-link:focus-visible { box-shadow: 0 25px 50px rgba(0,0,0,.32); filter: brightness(1.075); z-index: 8; }
.hero-zone .composition-card-link .composition-card-arrow { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 3; width: 16px; height: 16px; opacity: .72; color: #dce8ff; transition: opacity .2s ease, transform .2s ease; }
.hero-zone .composition-card-link:hover .composition-card-arrow, .hero-zone .composition-card-link:focus-visible .composition-card-arrow { opacity: 1; transform: translate(2px,-2px); }
.hero-zone .composition-card-link strong { max-width: calc(100% - 18px); }
.agg-filter-category-card:focus-visible, .agg-p35-filter-trigger:focus-visible, .agg-p35-filter-option:focus-visible, .hero-zone .composition-card-link:focus-visible { outline: 2px solid #a9c6ff; outline-offset: 3px; }
@media (max-width:780px) { .agg-p35-controls { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
 .agg-p35-filter-trigger .ui-icon, .agg-filter-category-card, .agg-filter-card-arrow, .hero-zone .composition-card-link, .hero-zone .composition-card-link .composition-card-arrow { transition: none; }
}

/* P42 fragment anchors: retain native hash scrolling when JavaScript is unavailable. */
.agg-p42-category-anchor { display: block; height: 0; scroll-margin-top: 92px; }
