/* TMT-Media production stylesheet — Stage 28.0 */

/* Source owner: tmt-clean-dual-player.css */
/* Dual-player card uses the approved shared card contract. */
html[data-tmt-theme] body.tmt-static-site #tmt-dual-player .container > .card {
  box-sizing:border-box !important;
  background:var(--tmt-panel-grad) !important;
  border:1px solid var(--tmt-border) !important;
  border-radius:var(--tmt-radius,12px) !important;
  box-shadow:var(--tmt-shadow) !important;
  transform:translateY(0) !important;
  transition:transform var(--tmt-transition),box-shadow var(--tmt-transition),border-color var(--tmt-transition) !important;
}
@media (hover:hover) {
  html[data-tmt-theme] body.tmt-static-site #tmt-dual-player .container > .card:hover {
    transform:translateY(calc(-1 * var(--tmt-hover-lift,5px))) !important;
    box-shadow:var(--tmt-shadow-hover) !important;
  }
}

/* TMT Framework - Component: Dual Audio Player */

/* TMT Dual Player - Visually aligned with TMT Single Player */

#tmt-dual-player{
  overflow-x:hidden;
  --tmt-cover-w:340px;   /* same desktop cover width */
  --tmt-row-fs:16px;     /* base font size variable if needed */
  --waveColor:34,34,34;
  --progress:0%;
}

/* Card baseline – copy of single-player card styling */
#tmt-dual-player .card{
  background:var(--tmt-panel-grad) !important;
  border:1px solid rgba(0,0,0,.06) !important;
  box-shadow:0 4px 10px rgba(0,0,0,.08) !important;
  border-radius:12px !important;
  transition:var(--hover-transition) !important;
  padding:2rem !important;
  position:relative; /* anchor for tooltip in bottom-right */
}
@media (hover:hover){
  #tmt-dual-player .card:hover{
    transform:translateY(-5px) !important;
    box-shadow:0 10px 24px rgba(0,0,0,.14) !important;
  }
}

/* Unclip ancestors */
#tmt-dual-player,
#tmt-dual-player .container,
#tmt-dual-player .card{
  overflow:visible !important;
}

/* Layout: same cover + playlist structure as single player */

#tmt-dual-player .tmt-two-col{
  display:grid;
  grid-template-columns:var(--tmt-cover-w) 1fr;
  gap:1.25rem;
}
@media (max-width:900px){
  #tmt-dual-player .tmt-two-col{
    grid-template-columns:1fr;
    gap:.55rem;
  }
}

/* Cover + caption */
#tmt-dual-player .tmt-cover{
  position:relative;
  max-width:var(--tmt-cover-w);
}
#tmt-dual-player .tmt-cover img{
  width:100%;
  max-width:var(--tmt-cover-w);
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  display:block;
  margin:0;
}
@media (max-width:900px){
  #tmt-dual-player .tmt-cover{
    margin:0 auto;
  }
}
#tmt-dual-player .tmt-cover-caption{
  margin-top:.5rem;
  font-size:1rem;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  padding:0 .25rem;
}

/* Playlist - #dualPlaylist mirrors #tmtPlaylist look */

#tmt-dual-player .tmt-playlist-wrap{
  max-height:var(--tmt-cover-w);
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#000 transparent;
}
#tmt-dual-player .tmt-playlist-wrap::-webkit-scrollbar{
  width:10px;
}
#tmt-dual-player .tmt-playlist-wrap::-webkit-scrollbar-track{
  background:transparent;
}
#tmt-dual-player .tmt-playlist-wrap::-webkit-scrollbar-thumb{
  background:#000;
  border-radius:6px;
}

/* Items */
#tmt-dual-player #dualPlaylist{
  margin:0;
  padding:0;
  list-style:none;
}
#tmt-dual-player #dualPlaylist .tmt-item{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  padding:.6rem .5rem .6rem .9rem;
  border-radius:8px;
  cursor:pointer;
}
#tmt-dual-player #dualPlaylist .tmt-title,
#tmt-dual-player #dualPlaylist .tmt-duration{
  font-size:20px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
#tmt-dual-player #dualPlaylist .tmt-duration{
  font-variant-numeric:tabular-nums;
  opacity:.9;
  padding-left:.75rem;
}
#tmt-dual-player #dualPlaylist .tmt-item.is-active,
#tmt-dual-player #dualPlaylist .tmt-item[aria-selected="true"]{
  background:linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.03));
}
#tmt-dual-player #dualPlaylist .tmt-item.is-active::before,
#tmt-dual-player #dualPlaylist .tmt-item[aria-selected="true"]::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:6px;
  background:#000;
  border-radius:0 6px 6px 0;
}

/* Waveform & transport - aligned with single player */

#tmt-dual-player .tmt-wave-wrap{
  margin-top:1rem;
  position:relative;
}
#tmt-dual-player #dualWave{
  display:block;
  width:100%;
  height:96px;
  border-radius:8px;
  background:transparent;
  cursor:pointer;
}

/* Transport row */
#tmt-dual-player .tmt-transport{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  margin-top:.6rem;
}
#tmt-dual-player .tmt-transport button{
  appearance:none;
  border:none;
  background:transparent;
  padding:.25rem;
  line-height:0;
  cursor:pointer;
  color:inherit;
  border-radius:999px;
  min-width:40px;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background-color .15s ease, transform .1s ease, opacity .15s ease;
}
#tmt-dual-player .tmt-transport .icon{
  width:28px;
  height:28px;
  display:block;
}
#tmt-dual-player .tmt-transport .play .icon{
  width:36px;
  height:36px;
}
#tmt-dual-player .tmt-transport .icon,
#tmt-dual-player .tmt-transport .icon *{
  pointer-events:none;
}

/* Time display */
#tmt-dual-player .tmt-time{
  text-align:center;
  margin-top:.25rem;
  font-variant-numeric:tabular-nums;
  opacity:.9;
}

/* Transport button refinements (no circles) */

/* Remove circular hover overlay from prev / play / next */
#tmt-dual-player .tmt-transport #prev,
#tmt-dual-player .tmt-transport #playPause,
#tmt-dual-player .tmt-transport #next{
  background:none !important;
  border-radius:0 !important;
}

/* Kill the circle + lift effect on hover/active */
#tmt-dual-player .tmt-transport #prev:hover,
#tmt-dual-player .tmt-transport #playPause:hover,
#tmt-dual-player .tmt-transport #next:hover,
#tmt-dual-player .tmt-transport #prev:active,
#tmt-dual-player .tmt-transport #playPause:active,
#tmt-dual-player .tmt-transport #next:active{
  background:none !important;
  transform:none !important;
}

/* Icon sizes for previous / play / next */
#tmt-dual-player #prev .icon,
#tmt-dual-player #playPause .icon,
#tmt-dual-player #next .icon{
  width:28px;
  height:28px;
}
#tmt-dual-player #playPause .icon{
  width:34px;
  height:34px;
}

/* Shuffle & Loop – flat icons, muted by default, no circles */
#tmt-dual-player #shuffleBtn,
#tmt-dual-player #loopBtn{
  background:none !important;
  border-radius:0 !important;
  padding:.25rem;
  min-width:40px;
  min-height:40px;
}

#tmt-dual-player #shuffleBtn .icon,
#tmt-dual-player #loopBtn .icon{
  width:22px;
  height:22px;
  color:var(--muted, #6b7280) !important;
  transition:color .15s ease;
}

/* No hover pill for these two */
#tmt-dual-player #shuffleBtn:hover,
#tmt-dual-player #loopBtn:hover,
#tmt-dual-player #shuffleBtn:active,
#tmt-dual-player #loopBtn:active{
  background:none !important;
  transform:none !important;
}

/* Active state (aria-pressed="true"): icon turns solid text color */
#tmt-dual-player #shuffleBtn[aria-pressed="true"] .icon,
#tmt-dual-player #loopBtn[aria-pressed="true"] .icon{
  color:var(--text, #000) !important;
}

/* Mobile: progress bar instead of waveform */

#tmt-dual-player .playbar{
  display:none;
  margin-top:.6rem;
}
#tmt-dual-player .playbar input[type="range"]{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:8px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(var(--waveColor),1) 0 var(--progress),
    rgba(var(--waveColor),.25) var(--progress) 100%
  );
}
#tmt-dual-player .playbar input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#000;
  border:2px solid #fff;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
  margin-top:-3px;
}
#tmt-dual-player .playbar input[type="range"]::-moz-range-track{
  height:8px;
  border-radius:999px;
  background:rgba(var(--waveColor),.25);
}
#tmt-dual-player .playbar input[type="range"]::-moz-range-progress{
  height:8px;
  border-radius:999px;
  background:rgba(var(--waveColor),1);
}
#tmt-dual-player .playbar input[type="range"]::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#000;
  border:2px solid #fff;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* Swap waveform for playbar on narrow portrait screens */
@media (max-width:700px) and (orientation:portrait){
  #tmt-dual-player #dualWave{
    display:none;
  }
  #tmt-dual-player .playbar{
    display:block;
  }
}


/* Dual-player information control. Canonical component-owned dock finish. */
#tmt-dual-player .tmt-dual-info {
  position:absolute;
  right:1.25rem;
  bottom:1.25rem;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
}

#tmt-dual-player .tmt-dual-info__button {
  appearance:none;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  padding:0;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff 0%,#f4f2ee 48%,#e5e2dc 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.90),
    inset 0 -4px 8px rgba(0,0,0,.08),
    0 7px 18px rgba(0,0,0,.26);
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  font-family:var(--tmt-font-sans);
  font-size:13px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  transform:none;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}

#tmt-dual-player .tmt-dual-info__button:hover,
#tmt-dual-player .tmt-dual-info__button:focus-visible {
  background:linear-gradient(180deg,#1b1b1b 0%,#161616 45%,#111111 100%);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,.07),
    inset 0 -4px 8px rgba(0,0,0,.34),
    0 7px 18px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.07);
  color:#f7f3ea !important;
  -webkit-text-fill-color:#f7f3ea !important;
  outline:0;
}

html[data-tmt-theme="dark"] #tmt-dual-player .tmt-dual-info__button {
  background:linear-gradient(180deg,#1b1b1b 0%,#161616 45%,#111111 100%);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,.07),
    inset 0 -4px 8px rgba(0,0,0,.34),
    0 7px 18px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.07);
  color:#f7f3ea !important;
  -webkit-text-fill-color:#f7f3ea !important;
}

html[data-tmt-theme="dark"] #tmt-dual-player .tmt-dual-info__button:hover,
html[data-tmt-theme="dark"] #tmt-dual-player .tmt-dual-info__button:focus-visible {
  background:linear-gradient(180deg,#ffffff 0%,#f4f2ee 48%,#e5e2dc 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.90),
    inset 0 -4px 8px rgba(0,0,0,.08),
    0 7px 18px rgba(0,0,0,.26);
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}

#tmt-dual-player .tmt-dual-info__button:active { transform:none; }

#tmt-dual-player .tmt-dual-info__box {
  position:absolute;
  right:36px;
  bottom:36px;
  z-index:20;
  box-sizing:border-box;
  min-width:260px;
  max-width:min(420px,90vw);
  padding:.9rem 1rem;
  border:0;
  border-radius:10px;
  background:linear-gradient(180deg,#1b1b1b 0%,#161616 45%,#111111 100%);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,.05),
    inset 0 -4px 8px rgba(0,0,0,.30),
    0 12px 26px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.06);
  color:#f7f3ea !important;
  -webkit-text-fill-color:#f7f3ea !important;
  font-family:var(--tmt-font-sans);
  font-size:.85rem;
  font-weight:400;
  line-height:1.5;
  opacity:0;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .15s ease,transform .15s ease;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}


#tmt-dual-player .tmt-dual-info:hover .tmt-dual-info__box,
#tmt-dual-player .tmt-dual-info__box.is-visible {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

#tmt-dual-player .tmt-dual-info__title {
  margin:0 0 .45rem;
  font-size:.95rem;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.01em;
}

#tmt-dual-player .tmt-dual-info__body { margin:0 0 .55rem; }

#tmt-dual-player .tmt-dual-info__subtitle {
  margin:.5rem 0 .3rem;
  font-size:.88rem;
  font-weight:650;
  line-height:1.5;
  letter-spacing:.01em;
}

#tmt-dual-player .tmt-dual-info__list {
  margin:0;
  padding:0;
  list-style:none;
}

#tmt-dual-player .tmt-dual-info__list li { margin:.15rem 0;line-height:1.45; }
#tmt-dual-player .tmt-dual-info__keys { font-family:var(--tmt-font-sans);font-variant-numeric:tabular-nums;font-weight:600;opacity:.95; }
#tmt-dual-player .tmt-dual-info__separator { margin:0 .25rem 0 .15rem; }
#tmt-dual-player .tmt-dual-info__description { opacity:.9; }

@media (max-width:700px) {
  #tmt-dual-player .tmt-dual-info { right:1rem;bottom:1rem; }
  #tmt-dual-player .tmt-dual-info__box {
    position:fixed;
    right:1rem;
    bottom:4.5rem;
    left:1rem;
    min-width:0;
    max-width:none;
    font-size:.8rem;
    line-height:1.4;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion:reduce) {
  #tmt-dual-player .tmt-dual-info__button,
  #tmt-dual-player .tmt-dual-info__box { transition:none; }
}

/* A/B toggle overlay – centered on cover, stateful */

/* Default A state (white, black text) */

/* B state (black, white text) */

/* === Dual player: mobile font scaling === */
@media (max-width:700px) and (orientation:portrait){
  #tmt-dual-player {
    --tmt-row-fs: 14px; /* smaller base font size */
  }

  #tmt-dual-player .tmt-cover-caption {
    font-size: .9rem;
  }

  #tmt-dual-player #dualPlaylist .tmt-title,
  #tmt-dual-player #dualPlaylist .tmt-duration {
    font-size: 15px !important;
    line-height: 1.3;
  }
}

/* TMT Dual Player - Active Shuffle / Repeat Underline - Matches single player. */

#tmt-dual-player #shuffleBtn,
#tmt-dual-player #loopBtn{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  padding:0 !important;
  line-height:0 !important;
  overflow:visible !important;
  color:inherit !important;
}

#tmt-dual-player #shuffleBtn .icon,
#tmt-dual-player #loopBtn .icon,
#tmt-dual-player #shuffleBtn svg,
#tmt-dual-player #loopBtn svg{
  display:block !important;
  width:22px !important;
  height:22px !important;
  opacity:.65 !important;
  color:var(--muted,#6b7280) !important;
  transform-origin:center center !important;
  transition:opacity .15s ease, color .15s ease, transform .15s ease !important;
}

#tmt-dual-player #shuffleBtn.is-active .icon,
#tmt-dual-player #loopBtn.is-active .icon,
#tmt-dual-player #shuffleBtn[aria-pressed="true"] .icon,
#tmt-dual-player #loopBtn[aria-pressed="true"] .icon,
#tmt-dual-player #shuffleBtn.is-active svg,
#tmt-dual-player #loopBtn.is-active svg,
#tmt-dual-player #shuffleBtn[aria-pressed="true"] svg,
#tmt-dual-player #loopBtn[aria-pressed="true"] svg{
  opacity:1 !important;
  color:var(--text,#000) !important;
  transform:scale(1.06) !important;
}

#tmt-dual-player #shuffleBtn.is-active::after,
#tmt-dual-player #loopBtn.is-active::after,
#tmt-dual-player #shuffleBtn[aria-pressed="true"]::after,
#tmt-dual-player #loopBtn[aria-pressed="true"]::after{
  content:"" !important;
  position:absolute !important;
  left:8px !important;
  right:8px !important;
  bottom:4px !important;
  height:2px !important;
  border-radius:999px !important;
  background:currentColor !important;
  transform:none !important;
  margin:0 !important;
}

html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn svg,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn svg{
  color:#8f8f8f !important;
  opacity:.65 !important;
}

html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn.is-active .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn.is-active .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn[aria-pressed="true"] .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn[aria-pressed="true"] .icon,
html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn.is-active svg,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn.is-active svg,
html[data-tmt-theme="dark"] #tmt-dual-player #shuffleBtn[aria-pressed="true"] svg,
html[data-tmt-theme="dark"] #tmt-dual-player #loopBtn[aria-pressed="true"] svg{
  color:#ffffff !important;
  opacity:1 !important;
}

/* Player anthracite polish */

#tmt-dual-player .tmt-transport button{
  color:#070707;
}

html[data-tmt-theme="dark"] #tmt-dual-player .tmt-transport button{
  color:inherit;
}

/* A/B dock-style polish */

/* A/B toggle hover alignment polish */

/* Keep the approved player-button gradients as the base states. */

/* Hover/focus should now behave like About / Hero / Submit / Lightbox:
   no scale pop, just a gentle lift + hover shadow.
   Also preview the target state. */

/* A/B shared white-gradient token polish */

/* Stage 24.1: stable A/B interaction contract. */

/* Stage 24.1 specificity lock for service-detail A/B controls. */

/* Canonical A/B control: state contrast is independent of page theme. */
body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  z-index: 2;
  display: inline-flex !important;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font: 700 20px/1 var(--tmt-font-sans, system-ui, sans-serif) !important;
  letter-spacing: 0;
  text-shadow: none;
  cursor: pointer;
  transform: none !important;
  transition: background var(--tmt-transition-fast), color var(--tmt-transition-fast), box-shadow var(--tmt-transition-fast), border-color var(--tmt-transition-fast) !important;
  -webkit-tap-highlight-color: transparent;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle::after {
  content: none !important;
  display: none !important;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-A {
  background: var(--tmt-btn-light) !important;
  color: var(--tmt-btn-light-text) !important;
  -webkit-text-fill-color: var(--tmt-btn-light-text) !important;
  border-color: var(--tmt-btn-border-light) !important;
  box-shadow: inset 0 2px 5px rgba(255,255,255,.9), inset 0 -4px 8px rgba(0,0,0,.08), 0 7px 18px rgba(0,0,0,.26) !important;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-A:hover,
body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-A:focus-visible {
  background: var(--tmt-btn-dark-hover) !important;
  color: var(--tmt-btn-dark-text) !important;
  -webkit-text-fill-color: var(--tmt-btn-dark-text) !important;
  border-color: var(--tmt-btn-border-dark) !important;
  box-shadow: var(--tmt-shadow-hover) !important;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-B {
  background: var(--tmt-btn-dark) !important;
  color: var(--tmt-btn-dark-text) !important;
  -webkit-text-fill-color: var(--tmt-btn-dark-text) !important;
  border-color: var(--tmt-btn-border-dark) !important;
  box-shadow: inset 0 1px 3px rgba(255,255,255,.07), inset 0 -4px 8px rgba(0,0,0,.34), 0 7px 18px rgba(0,0,0,.48) !important;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-B:hover,
body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle.is-B:focus-visible {
  background: var(--tmt-btn-light-hover) !important;
  color: var(--tmt-btn-light-text) !important;
  -webkit-text-fill-color: var(--tmt-btn-light-text) !important;
  border-color: var(--tmt-btn-border-light) !important;
  box-shadow: var(--tmt-shadow-hover) !important;
}

body.tmt-static-site.tmt-clean-service-detail-page #tmt-dual-player .tmt-ab-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Stage 28.14.0: keep the player information control 35 px from the lower-right card edges. */
#tmt-dual-player .tmt-dual-info {
  right: 35px;
  bottom: 35px;
}

@media (max-width: 700px) {
  #tmt-dual-player .tmt-dual-info {
    right: 35px;
    bottom: 35px;
  }
}
