/* AlmancaDiyarda Learning Player 2026 · Master UI V5 · A1-002 visual reference */
.ad26-player{
  --ad-navy:#17365d;--ad-navy2:#0e2747;--ad-bordo:#a80f32;--ad-yellow:#ffd166;--ad-teal:#0c8c7a;
  --ad-ink:#10223d;--ad-muted:#66758b;--ad-line:#e5e9ef;--ad-soft:#f4f7fa;--ad-paper:#fff;--ad-cream:#fbf8f2;
  max-width:1120px!important;margin:18px auto 34px!important;color:var(--ad-ink)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.ad26-player *{box-sizing:border-box}
.ad26-player .ad26-shell{background:linear-gradient(180deg,#fff 0%,#fcfbf8 100%)!important;border:1px solid #e7e1d8!important;border-radius:28px!important;overflow:hidden!important;box-shadow:0 20px 60px rgba(16,34,61,.08)!important}
.ad26-player.ad26-shell{background:linear-gradient(180deg,#fff 0%,#fcfbf8 100%)!important;border:1px solid #e7e1d8!important;border-radius:28px!important;overflow:hidden!important;box-shadow:0 20px 60px rgba(16,34,61,.08)!important}

/* HERO */
.ad26-player .ad26-hero{position:relative!important;overflow:hidden!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(135deg,var(--ad-navy2),var(--ad-navy))!important;color:#fff!important;padding:0!important}
.ad26-player .ad26-hero:after{content:"";position:absolute;right:-85px;top:-100px;width:270px;height:270px;border-radius:50%;border:48px solid rgba(255,255,255,.06);pointer-events:none}
.ad26-player .ad26-hero-top{position:relative;z-index:2;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start!important;gap:16px!important;padding:30px 32px 10px!important}
.ad26-player .ad26-title{min-width:0!important;display:block!important}
.ad26-player .ad26-kicker{display:block!important;margin:0 0 7px!important;padding:0!important;background:none!important;color:#ffd9e3!important;font-size:12px!important;line-height:1.2!important;font-weight:950!important;letter-spacing:.09em!important;text-transform:uppercase!important}
.ad26-player .ad26-heading{margin:0!important;max-width:850px!important;color:#fff!important;font-size:clamp(28px,4.4vw,46px)!important;line-height:1.05!important;letter-spacing:-.035em!important;font-weight:950!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.ad26-player .ad26-back{grid-row:1 / span 2!important;width:44px!important;height:44px!important;min-width:44px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:14px!important;background:rgba(255,255,255,.1)!important;color:#fff!important;text-decoration:none!important;font-size:20px!important;font-weight:900!important;box-shadow:none!important}
.ad26-player .ad26-actions{grid-column:2!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin:8px 0 0!important;justify-content:flex-start!important;position:relative!important;z-index:3!important}
.ad26-player .ad26-media-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:46px!important;padding:0 16px!important;border-radius:14px!important;text-decoration:none!important;font-size:14px!important;font-weight:900!important;box-shadow:0 8px 22px rgba(0,0,0,.14)!important;transition:.15s ease!important}
.ad26-player .ad26-media-btn.ad26-video{background:#fff!important;border:1px solid rgba(255,255,255,.8)!important;color:var(--ad-navy2)!important}
.ad26-player .ad26-media-btn.ad26-pdf{background:var(--ad-yellow)!important;border:1px solid var(--ad-yellow)!important;color:#312500!important}
.ad26-player .ad26-media-btn:hover{transform:translateY(-1px)!important}

/* compact progress meta inside hero */
.ad26-player .ad26-meta{position:relative;z-index:2!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:8px 32px 24px 92px!important;color:#dce6f2!important;background:transparent!important;border:0!important}
.ad26-player .ad26-meta strong,.ad26-player .ad26-meta span{color:#dce6f2!important;font-size:12px!important;font-weight:900!important;letter-spacing:.03em!important}
.ad26-player .ad26-meta>i,.ad26-player .ad26-meta .adlp-progress-track,.ad26-player .ad26-meta .a5-bar,.ad26-player .ad26-meta .a6-bar,.ad26-player .ad26-meta .a1-bar{display:none!important}

/* hide old labeled tabs, replace with A1-002 segments */
.ad26-player .ad26-tabs-source{display:none!important}
.ad26-player .ad26-segments{display:flex!important;gap:6px!important;padding:16px 24px!important;background:#fff!important;border-bottom:1px solid var(--ad-line)!important;position:relative!important;z-index:4!important}
.ad26-player .ad26-segments i{display:block!important;height:5px!important;flex:1!important;border-radius:999px!important;background:#e6ebf1!important;transition:.2s!important}
.ad26-player .ad26-segments i.on{background:var(--ad-bordo)!important}

/* BODY / STAGE */
.ad26-player .ad26-body{margin:0!important;min-height:550px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,#fff 0%,#fcfbf8 100%)!important;padding:0!important;overflow:visible!important}
.ad26-player :is(.adlp-panel,.lp-panel,.adlp3-panel,.adlp4-panel,.a5-panel,.a6-panel,.a1-panel){padding:clamp(24px,4vw,38px)!important}
.ad26-player :is(.adlp-focus,.lp-focus,.adlp3-focus,.adlp4-focus){max-width:930px!important;margin:0 auto!important}

/* Step headings */
.ad26-player :is(.adlp-tag,.lp-tag,.adlp3-tag,.adlp4-tag,.a5-eyebrow,.a6-eyebrow,.a1-eyebrow){display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 11px!important;border-radius:999px!important;background:#f8e7ec!important;color:var(--ad-bordo)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.065em!important;text-transform:uppercase!important;margin-bottom:12px!important}
.ad26-player :is(.adlp-focus h3,.lp-focus h3,.adlp3-focus h3,.adlp4-focus h3,.a5-panel h3,.a6-panel h3,.a1-panel h3){margin:0 0 10px!important;color:var(--ad-ink)!important;font-size:clamp(28px,4vw,42px)!important;line-height:1.08!important;letter-spacing:-.04em!important}
.ad26-player :is(.adlp-lead,.lp-lead,.adlp3-lead,.adlp4-lead,.a5-intro,.a6-intro,.a1-intro){max-width:850px!important;margin:0 0 22px!important;color:var(--ad-muted)!important;font-size:17px!important;line-height:1.58!important}

/* Cards */
.ad26-player :is(.adlp-drill,.adlp-note,.adlp-dialogue,.adlp-phrase,.lp-recall,.lp-grid2 article,.lp-grid3 article,.lp-note,.lp-practice article,.adlp3-recall-grid article,.adlp3-situations article,.adlp3-practice article,.adlp4-recall,.adlp4-practice article,.a5-card,.a5-practice-item,.a6-card,.a6-practice-item,.a1-card,.a1-practice-item){border:1px solid var(--ad-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 25px rgba(16,34,61,.04)!important}
.ad26-player :is(.a5-panel,.a6-panel,.a1-panel){background:transparent!important}
.ad26-player :is(.a5-card,.a6-card,.a1-card,.a5-practice-item,.a6-practice-item,.a1-practice-item){padding:18px!important}

/* Tasks / highlighted focus */
.ad26-player :is(.adlp-task,.lp-task,.adlp3-task,.adlp4-task,.a5-ready,.a6-ready,.a1-ready){background:linear-gradient(135deg,#f5f9fd,#fff)!important;border:1px solid #c9d8e8!important;color:var(--ad-ink)!important;border-radius:20px!important;padding:20px!important;box-shadow:none!important}
.ad26-player :is(.adlp-task span,.lp-task span,.adlp3-task span,.adlp4-task span){color:var(--ad-bordo)!important;font-weight:900!important}
.ad26-player :is(.adlp-task strong,.lp-task strong,.adlp3-task strong,.adlp4-task strong){color:var(--ad-navy)!important}
.ad26-player :is(.adlp-task p,.lp-task p,.adlp3-task p,.adlp4-task p){color:var(--ad-muted)!important}

/* Choice surfaces */
.ad26-player :is(.adlp-choice button,.adlp-qopts button,.lp-options button,.adlp3-options button,.adlp4-options button,.a5-choice,.a5-qopt,.a6-choice,.a6-qopt,.a1-choice,.a1-qopt){min-height:48px!important;border:1px solid #dfe5ec!important;border-radius:14px!important;background:#fff!important;color:var(--ad-ink)!important;font-weight:800!important;box-shadow:none!important}
.ad26-player :is(.adlp-choice button,.adlp-qopts button,.lp-options button,.adlp3-options button,.adlp4-options button,.a5-choice,.a5-qopt,.a6-choice,.a6-qopt,.a1-choice,.a1-qopt):hover{border-color:#aebaca!important;transform:none!important}
.ad26-player :is(.is-correct,.correct){border-color:#7bc9b7!important;background:#edf9f6!important;color:#075f51!important}
.ad26-player :is(.is-wrong,.wrong){border-color:#e1a0b0!important;background:#fff0f3!important;color:#8f1632!important}

/* Primary / secondary actions */
.ad26-player :is(.adlp-primary,.lp-primary,.adlp3-primary,.adlp4-primary,.a5-action:not(.secondary),.a6-action:not(.secondary),.a1-action:not(.secondary)){min-height:48px!important;border:0!important;border-radius:14px!important;background:var(--ad-navy)!important;color:#fff!important;font-weight:900!important;padding:0 18px!important;box-shadow:none!important}
.ad26-player :is(.adlp-secondary,.lp-secondary,.adlp3-secondary,.adlp4-secondary,.a5-action.secondary,.a6-action.secondary,.a1-action.secondary){min-height:46px!important;border:1px solid var(--ad-line)!important;border-radius:14px!important;background:#edf1f5!important;color:#26384e!important;font-weight:850!important;padding:0 16px!important;box-shadow:none!important}
.ad26-player :is(button,a):disabled{opacity:.42!important}

/* Footer navigation = A1-002 */
.ad26-player .ad26-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:18px 24px 24px!important;border:0!important;border-top:1px solid var(--ad-line)!important;border-radius:0!important;background:rgba(255,255,255,.96)!important;box-shadow:none!important;position:relative!important}
.ad26-player .ad26-nav>span{color:var(--ad-muted)!important;font-size:13px!important;font-weight:900!important}
.ad26-player .ad26-nav button{min-height:48px!important;border:0!important;border-radius:14px!important;font-weight:900!important;padding:0 18px!important;box-shadow:none!important}
.ad26-player .ad26-nav button:first-child{background:#edf1f5!important;color:#26384e!important;justify-self:auto!important}
.ad26-player .ad26-nav button:last-child{background:var(--ad-navy)!important;color:#fff!important;justify-self:auto!important}

/* keep lesson-next cards outside player untouched */
@media(max-width:800px){
  .ad26-player .ad26-hero-top{grid-template-columns:auto minmax(0,1fr)!important;padding:24px 18px 8px!important;gap:11px!important}
  .ad26-player .ad26-back{width:40px!important;height:40px!important;min-width:40px!important}
  .ad26-player .ad26-heading{font-size:clamp(25px,8vw,36px)!important}
  .ad26-player .ad26-actions{grid-column:1 / -1!important;margin-left:0!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .ad26-player .ad26-media-btn{width:100%!important;padding:0 10px!important;font-size:13px!important}
  .ad26-player .ad26-meta{padding:7px 18px 20px 69px!important}
  .ad26-player .ad26-segments{padding:13px 15px!important}
  .ad26-player :is(.adlp-panel,.lp-panel,.adlp3-panel,.adlp4-panel,.a5-panel,.a6-panel,.a1-panel){padding:22px 18px!important}
  .ad26-player .ad26-nav{position:sticky!important;bottom:0!important;z-index:20!important;padding:12px 14px!important}
  .ad26-player .ad26-nav>span{display:none!important}
  .ad26-player .ad26-nav button{flex:1!important}
}

/* =========================================================
   MASTER UI V5.1 · A1-001 HERO ALIGNMENT
   A1-002 remains the reference. This block fixes only the
   historical A1-001 header specificity/layout mismatch.
   ========================================================= */

#adLearningPlayerA1001.ad26-player .a1-head.ad26-hero{
  position:relative!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#0e2747,#17365d)!important;
  color:#fff!important;
  box-shadow:none!important;
}

#adLearningPlayerA1001.ad26-player .a1-head.ad26-hero::after{
  content:""!important;
  position:absolute!important;
  right:-85px!important;
  top:-105px!important;
  width:280px!important;
  height:280px!important;
  border-radius:50%!important;
  border:48px solid rgba(255,255,255,.06)!important;
  pointer-events:none!important;
}

#adLearningPlayerA1001.ad26-player .a1-top.ad26-hero-top{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:16px!important;
  padding:30px 32px 8px!important;
}

#adLearningPlayerA1001.ad26-player .a1-title.ad26-title{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  min-width:0!important;
}

#adLearningPlayerA1001.ad26-player .a1-back.ad26-back{
  grid-row:1 / span 2!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}

#adLearningPlayerA1001.ad26-player .a1-kicker.ad26-kicker{
  margin:1px 0 8px!important;
  padding:0!important;
  background:none!important;
  color:#ffd9e3!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}

#adLearningPlayerA1001.ad26-player .a1-title h2.ad26-heading{
  margin:0!important;
  max-width:790px!important;
  color:#fff!important;
  font-size:clamp(30px,4.6vw,48px)!important;
  line-height:1.04!important;
  letter-spacing:-.04em!important;
  font-weight:950!important;
}

#adLearningPlayerA1001.ad26-player .a1-resources.ad26-actions{
  grid-column:3!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  margin:0!important;
  min-width:190px!important;
  position:relative!important;
  z-index:3!important;
}

#adLearningPlayerA1001.ad26-player .a1-resources .ad26-media-btn{
  width:100%!important;
  min-height:48px!important;
  padding:0 15px!important;
  border-radius:14px!important;
  font-size:14px!important;
}

#adLearningPlayerA1001.ad26-player .a1-resources .ad26-media-btn.ad26-video{
  background:#fff!important;
  border-color:#fff!important;
  color:#0e2747!important;
}

#adLearningPlayerA1001.ad26-player .a1-resources .ad26-media-btn.ad26-pdf{
  background:#ffd166!important;
  border-color:#ffd166!important;
  color:#312500!important;
}

#adLearningPlayerA1001.ad26-player .a1-progressline.ad26-meta{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  padding:10px 32px 24px 92px!important;
  color:#dce6f2!important;
  background:transparent!important;
  border:0!important;
}

#adLearningPlayerA1001.ad26-player .a1-progressline.ad26-meta .a1-count{
  color:#dce6f2!important;
  background:none!important;
  font-size:12px!important;
  font-weight:900!important;
}

#adLearningPlayerA1001.ad26-player .a1-progressline.ad26-meta .a1-bar{
  display:none!important;
}

@media(max-width:800px){
  #adLearningPlayerA1001.ad26-player .a1-top.ad26-hero-top{
    grid-template-columns:auto minmax(0,1fr)!important;
    padding:24px 18px 8px!important;
    gap:11px!important;
  }
  #adLearningPlayerA1001.ad26-player .a1-title.ad26-title{
    grid-column:1 / -1!important;
  }
  #adLearningPlayerA1001.ad26-player .a1-title h2.ad26-heading{
    font-size:clamp(27px,8vw,38px)!important;
  }
  #adLearningPlayerA1001.ad26-player .a1-resources.ad26-actions{
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    min-width:0!important;
    margin-top:10px!important;
  }
  #adLearningPlayerA1001.ad26-player .a1-progressline.ad26-meta{
    padding:8px 18px 20px!important;
  }
}
