/* Direction follows the site language (html dir). Do not force RTL here:
   English keeps the picks column on the right; Arabic flips it to the left. */
.av-home--youth{
  background:#fff;
  color:#1b2430;
}

.av-home-container{
  width:min(1200px, calc(100% - 32px));
  margin-inline:auto;
}

.av-home a{ text-decoration:none; }

.av-stage{ padding:18px 0 10px; }

.av-stage__wrap{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}

.av-rail{
  background:#fff;
  border:1px solid #e8eef6;
  border-radius:22px;
  padding:14px;
  box-shadow:0 10px 28px rgba(21,32,51,.06);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.av-rail__head{
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
  color:#2563eb;
}

.av-mini{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:14px;
  color:inherit;
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.av-mini:hover{
  background:#eff6ff;
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(37,99,235,.12);
}

.av-mini__media,
.av-rank__thumb,
.av-cover__art,
.av-story__media{
  overflow:hidden;
  background:#eef2f8;
}

.av-mini__media{
  width:56px;
  height:56px;
  border-radius:12px;
  flex:0 0 56px;
}

.av-mini__media img,
.av-rank__thumb img,
.av-cover__art img,
.av-story__media img,
.av-showcase__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.av-mini__body strong{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
  font-size:13px;
  line-height:1.4;
}

.av-mini__body small{
  display:block;
  color:#6b778c;
  font-size:11px;
  margin-top:2px;
}

/* Rank line is a mobile-only label. Desktop rail stays title + size. */
.av-mini__rank{
  display:none;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
}

.av-showcase{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:340px;
  border-radius:26px;
  overflow:hidden;
  background:#101828;
  box-shadow:0 16px 40px rgba(21,32,51,.12);
}

.av-showcase__slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease;
}

.av-showcase__slide.is-active{
  opacity:1;
  visibility:visible;
  position:relative;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:340px;
}

.av-showcase__link{
  position:relative;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  width:100%;
  min-height:340px;
  height:100%;
  color:#fff;
}

.av-showcase__img{ position:absolute; inset:0; }

.av-showcase__copy{
  position:relative;
  z-index:2;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:flex-end;
  box-sizing:border-box;
  width:100%;
  min-height:100%;
  height:100%;
  padding:28px 28px 54px;
  background:linear-gradient(180deg, rgba(10,14,24,0) 18%, rgba(10,14,24,.84) 100%);
}

.av-showcase__badge{
  width:max-content;
  padding:5px 10px;
  border-radius:999px;
  background:#2563eb;
  font-size:11px;
  font-weight:800;
}

.av-showcase__title{
  margin:10px 0 8px;
  font-size:clamp(22px, 3.4vw, 40px);
  line-height:1.25;
}

.av-showcase__copy p{
  margin:0 0 14px;
  max-width:520px;
  color:rgba(255,255,255,.82);
  font-size:14px;
}

.av-showcase__cta{
  width:max-content;
  padding:10px 16px;
  border-radius:12px;
  background:linear-gradient(90deg,#2563eb,#3b82f6);
  font-weight:800;
  color:#fff;
}

.av-showcase__nav{
  position:absolute;
  z-index:3;
  left:16px;
  bottom:16px;
  display:flex;
  align-items:center;
  gap:8px;
}

.av-showcase__nav button{
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.16);
  color:#fff;
  cursor:pointer;
}

.av-showcase__progress{
  width:72px;
  height:4px;
  border-radius:99px;
  background:rgba(255,255,255,.25);
  overflow:hidden;
}

.av-showcase__progress:before{
  content:"";
  display:block;
  height:100%;
  width:var(--av-progress, 0%);
  background:#60a5fa;
}

.av-showcase__dots{
  position:absolute;
  z-index:3;
  right:16px;
  bottom:18px;
  display:flex;
  gap:6px;
}

.av-showcase__dots button{
  width:8px;
  height:8px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}

.av-showcase__dots button.is-active{ background:#60a5fa; }

.av-quick{ padding:12px 0 6px; }

.av-quick__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}

.av-quick__item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e8eef6;
  color:inherit;
  box-shadow:0 8px 20px rgba(21,32,51,.04);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.av-quick__item:hover{
  border-color:#2563eb;
  background:#eff6ff;
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(37,99,235,.14);
}

.av-quick__item small{ color:#6b778c; font-size:12px; }

.av-sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.av-sec-head span{
  display:block;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
}

.av-sec-head h2{ margin:4px 0 0; font-size:24px; }
.av-sec-head a{ color:#2563eb; font-weight:800; }

.av-newsband{ padding:18px 0 10px; background:#fff; }

.av-newsband__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  align-items:stretch;
}

.av-newsband__cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  grid-auto-rows:1fr;
  gap:14px;
}

.av-story{
  background:#fff;
  border:1px solid #edf1f6;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(21,32,51,.06);
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.av-story:hover{
  transform:translateY(-4px);
  border-color:#93c5fd;
  box-shadow:0 16px 32px rgba(37,99,235,.16);
}

.av-story__media{ display:block; aspect-ratio:16/9; }
.av-story__body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.av-story__date{ display:block; color:#8b97a8; font-size:12px; margin-bottom:8px; }
.av-story__title{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
}
.av-story__title a{ color:#152033; }
.av-story:hover .av-story__title a{ color:#1d4ed8; }
.av-story__excerpt{
  margin:0 0 14px;
  color:#6b778c;
  font-size:13px;
  line-height:1.75;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1;
}
.av-story__more{ color:#2563eb; font-size:13px; font-weight:800; margin-top:auto; }

.av-news-slide{
  background:#fff;
  border:1px solid #edf1f6;
  border-radius:22px;
  padding:16px 14px;
  box-shadow:0 10px 28px rgba(21,32,51,.05);
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:100%;
}

.av-news-slide__head{
  color:#2563eb;
  font-size:15px;
  font-weight:800;
  margin-bottom:12px;
}

.av-rank-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.av-rank{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:6px;
  border-radius:14px;
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.av-rank:hover{
  background:#eff6ff;
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(37,99,235,.12);
}

.av-rank__thumb{
  width:64px;
  height:64px;
  border-radius:16px;
}

.av-rank__title{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}
.av-rank__title a{ color:#1b2430; }
.av-rank:hover .av-rank__title a{ color:#1d4ed8; }

.av-rank__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border:1px solid #bfdbfe;
  border-radius:999px;
  background:#fff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:700;
  transition:background .2s ease, color .2s ease;
}

.av-rank:hover .av-rank__btn{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.av-shelf{ padding:22px 0; background:#fff; }

.av-cover-grid{
  display:grid;
  gap:16px 12px;
}

.av-cover-grid--games{
  grid-template-columns:repeat(6, minmax(0,1fr));
}

.av-cover-grid--apps{
  grid-template-columns:repeat(6, minmax(0,1fr));
}

.av-cover{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:inherit;
}

.av-cover__art{
  display:block;
  aspect-ratio:1/1;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(21,32,51,.06);
  overflow:hidden;
  outline:2px solid transparent;
  outline-offset:0;
  transition:transform .22s ease, box-shadow .22s ease, outline-color .22s ease;
}

.av-cover__art img{
  transition:transform .28s ease;
}

.av-cover:hover .av-cover__art{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(37,99,235,.22);
  outline-color:#93c5fd;
}

.av-cover:hover .av-cover__art img{
  transform:scale(1.06);
}

/* Homepage shelf CTA. The label comes from Homepage Control. */
.av-cover__cta{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  box-sizing:border-box;
  width:100%;
  min-height:36px;
  margin-top:2px;
  padding:0 12px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-align:center;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.av-cover:hover .av-cover__cta{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(37,99,235,.28);
}

.av-home-ad{ padding:8px 0 2px; }

@media (max-width:1100px){
  .av-stage__wrap,
  .av-newsband__grid{ grid-template-columns:1fr; }
  .av-showcase{ order:-1; }
  .av-cover-grid--games{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .av-cover-grid--apps{ grid-template-columns:repeat(4, minmax(0,1fr)); }
}

@media (max-width:900px){
  .av-quick__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .av-newsband__cards{ grid-template-columns:1fr; }
}

@media (max-width:767px){
  .av-sec-head{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-bottom:14px;
  }
  .av-sec-head h2{
    font-size:20px;
    line-height:1.3;
  }
  .av-sec-head a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    min-height:34px;
    padding:0 14px;
    border:1px solid #d6e4f5;
    border-radius:999px;
    background:#f7faff;
    font-size:13px;
    font-weight:800;
  }

  .av-home-container{ width:min(100% - 20px, 100%); }

  .av-stage__wrap{ grid-template-columns:1fr; }
  .av-showcase{ order:-1; }

  .av-rail{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
    align-items:stretch;
  }

  .av-rail__head{ grid-column:1 / -1; }

  .av-mini{
    align-items:start;
    height:100%;
  }

  .av-mini__body strong{
    min-height:2.8em;
    -webkit-line-clamp:2;
  }

  .av-mini__rank{
    display:block;
  }

  .av-cover-grid--games,
  .av-cover-grid--apps{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px 10px;
  }

  .av-showcase,
  .av-showcase__slide.is-active,
  .av-showcase__link,
  .av-showcase__copy{ min-height:240px; }

  .av-showcase__title{ font-size:22px; }
}
