.hwd-rsg{position:relative;max-width:100%;margin:16px 0;}
.hwd-rsg-stage{position:relative;overflow:hidden;border-radius:14px;}
.hwd-rsg-slide{display:none;position:relative;}
.hwd-rsg-slide.is-active{display:block;}
.hwd-rsg-media img{width:100%;height:auto;display:block;}
.hwd-rsg-caption{position:absolute;left:0;right:0;bottom:0;padding:12px;background:rgba(0,0,0,.45);color:#fff;}
.hwd-rsg-prev,.hwd-rsg-next{position:absolute;top:50%;transform:translateY(-50%);border:none;background:rgba(0,0,0,.45);color:#fff;width:44px;height:44px;border-radius:999px;font-size:26px;cursor:pointer;}
.hwd-rsg-prev{left:10px;}
.hwd-rsg-next{right:10px;}
.hwd-rsg-dots{display:flex;gap:8px;justify-content:center;margin-top:10px;}
.hwd-rsg-dot{width:10px;height:10px;border-radius:999px;border:none;background:#bbb;cursor:pointer;}
.hwd-rsg-dot.is-active{background:#333;}
.hwd-rsg-toc{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.hwd-rsg-toc.is-sticky{position:sticky;top:0;z-index:30;background:#fff;padding:8px;border:1px solid #eee;border-radius:12px;}
.hwd-rsg-chapter{border:1px solid #ddd;background:#fff;padding:6px 10px;border-radius:999px;cursor:pointer;}
.hwd-rsg-debug{background:#fff;border:1px dashed #ddd;padding:8px;margin-top:8px;overflow:auto;}
/* v1.1.0: fixed stage sizing to prevent page jumping with mixed-dimension slides */
.hwd-rsg-stage{max-height:70vh;}
.hwd-rsg-media{height:100%;}
.hwd-rsg-media img{max-height:70vh;object-fit:contain;}
.hwd-rsg-video-el{width:100%;max-height:70vh;}
.hwd-rsg-video-transform{position:relative;height:100%;}
.hwd-rsg-vt-poster{width:100%;max-height:70vh;object-fit:contain;display:block;}
.hwd-rsg-vt-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:none;background:rgba(0,0,0,.55);color:#fff;width:64px;height:64px;border-radius:999px;font-size:26px;cursor:pointer;z-index:5;}
.hwd-rsg-vt-icon{position:relative;left:2px;}

/* v1.1.1: audio button overlay + more readable message area */
.hwd-rsg{position:relative;}
.hwd-rsg-stage{position:relative;}
.hwd-rsg-audio{position:absolute;right:12px;top:12px;z-index:60;}
.hwd-rsg-audio-toggle{border:none;background:rgba(0,0,0,.55);color:#fff;width:44px;height:44px;border-radius:999px;font-size:18px;cursor:pointer;}
.hwd-rsg-caption{min-height:72px;}
.hwd-rsg-desc{max-height:140px;overflow:auto;}

/* v1.1.2: bottom orange control bar + larger subtitle panel */
.hwd-rsg{padding-bottom:0;}
.hwd-rsg-stage{border-bottom-left-radius:0;border-bottom-right-radius:0;}
.hwd-rsg-caption{
  min-height:110px;
  padding:16px 20px 20px 20px;
  background:rgba(0,0,0,.60);
}
.hwd-rsg-title{font-size:1.4rem;line-height:1.2;margin-bottom:8px;}
.hwd-rsg-desc{font-size:1rem;line-height:1.45;max-height:180px;overflow:auto;}
.hwd-rsg-prev,.hwd-rsg-next{
  position:static;
  transform:none;
  width:54px;height:54px;
  border-radius:10px;
  background:#e6a400;
  color:#111;
  font-weight:700;
}
.hwd-rsg-dots{margin:0;align-items:center;}
.hwd-rsg-dot{width:12px;height:12px;background:rgba(0,0,0,.35);}
.hwd-rsg-dot.is-active{background:#111;}
.hwd-rsg-controlbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#e6a400;
  padding:12px 16px;
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
}
.hwd-rsg-controlbar .hwd-rsg-dots{flex:1;justify-content:center;}
.hwd-rsg-audio{top:14px;right:14px;}
@media (max-width: 700px){
  .hwd-rsg-caption{min-height:130px;padding:14px 16px 18px;}
  .hwd-rsg-title{font-size:1.1rem;}
  .hwd-rsg-desc{font-size:.95rem;max-height:160px;}
  .hwd-rsg-controlbar{padding:10px 12px;}
  .hwd-rsg-prev,.hwd-rsg-next{width:46px;height:46px;}
}

/* v1.1.3 presentation UI modes */
.hwd-rsg{position:relative;}
/* Overlay mode */
.hwd-rsg.ui-overlay .hwd-rsg-caption{
  position:absolute;
  left:0; right:0; bottom:0;
  min-height:0;
  padding:12px 16px 58px 16px;
  background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.20));
  color:#fff;
}
.hwd-rsg.ui-overlay .hwd-rsg-title{font-size:1.15rem;margin-bottom:4px;}
.hwd-rsg.ui-overlay .hwd-rsg-desc{font-size:.95rem;max-height:84px;overflow:auto;}
.hwd-rsg.ui-overlay .hwd-rsg-controlbar{
  position:absolute;
  left:14px; right:14px; bottom:14px;
  background:rgba(230,164,0,.92);
  border-radius:12px;
  padding:8px 12px;
  z-index:70;
}
.hwd-rsg.ui-overlay .hwd-rsg-stage{border-radius:14px;border-bottom-left-radius:14px;border-bottom-right-radius:14px;}
/* Compact mode */
.hwd-rsg.ui-compact .hwd-rsg-caption{
  min-height:62px;
  padding:10px 14px;
  background:rgba(0,0,0,.58);
}
.hwd-rsg.ui-compact .hwd-rsg-title{font-size:1.05rem;margin-bottom:3px;}
.hwd-rsg.ui-compact .hwd-rsg-desc{font-size:.9rem;max-height:72px;overflow:auto;}
.hwd-rsg.ui-compact .hwd-rsg-controlbar{padding:7px 10px;}
.hwd-rsg.ui-compact .hwd-rsg-prev,.hwd-rsg.ui-compact .hwd-rsg-next{width:38px;height:38px;font-size:18px;}
/* Auto-hide UI */
.hwd-rsg.is-ui-hidden .hwd-rsg-controlbar,
.hwd-rsg.is-ui-hidden .hwd-rsg-caption,
.hwd-rsg.is-ui-hidden .hwd-rsg-audio{opacity:.08;}
.hwd-rsg .hwd-rsg-controlbar,
.hwd-rsg .hwd-rsg-caption,
.hwd-rsg .hwd-rsg-audio{transition:opacity .25s ease;}
.hwd-rsg:hover .hwd-rsg-controlbar,
.hwd-rsg:hover .hwd-rsg-caption,
.hwd-rsg:hover .hwd-rsg-audio,
.hwd-rsg:focus-within .hwd-rsg-controlbar,
.hwd-rsg:focus-within .hwd-rsg-caption,
.hwd-rsg:focus-within .hwd-rsg-audio{opacity:1;}
@media (max-width:700px){
  .hwd-rsg.ui-overlay .hwd-rsg-controlbar{left:10px;right:10px;bottom:10px;padding:7px 10px;}
  .hwd-rsg.ui-overlay .hwd-rsg-caption{padding:10px 12px 52px;}
  .hwd-rsg.ui-overlay .hwd-rsg-title{font-size:1rem;}
  .hwd-rsg.ui-overlay .hwd-rsg-desc{font-size:.9rem;max-height:72px;}
}

/* v1.1.4 overlay fix: separate text strip above control bar */
.hwd-rsg.ui-overlay .hwd-rsg-caption{
  position:absolute;
  left:12px;
  right:12px;
  bottom:78px;
  min-height:0;
  padding:10px 14px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.68);
  color:#fff;
  z-index:65;
}
.hwd-rsg.ui-overlay .hwd-rsg-title{
  font-size:1.05rem;
  line-height:1.2;
  margin-bottom:4px;
}
.hwd-rsg.ui-overlay .hwd-rsg-desc{
  font-size:.9rem;
  line-height:1.35;
  max-height:72px;
  overflow:auto;
}
.hwd-rsg.ui-overlay .hwd-rsg-controlbar{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  background:rgba(230,164,0,.95);
  border-radius:12px;
  padding:6px 10px;
  z-index:70;
}
.hwd-rsg.ui-overlay .hwd-rsg-prev,
.hwd-rsg.ui-overlay .hwd-rsg-next{
  width:40px;
  height:40px;
  font-size:20px;
}
.hwd-rsg.ui-overlay .hwd-rsg-dots{
  min-height:20px;
}
@media (max-width:700px){
  .hwd-rsg.ui-overlay .hwd-rsg-caption{
    left:8px;
    right:8px;
    bottom:66px;
    padding:8px 10px 10px;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-title{font-size:.98rem;}
  .hwd-rsg.ui-overlay .hwd-rsg-desc{font-size:.86rem;max-height:58px;}
  .hwd-rsg.ui-overlay .hwd-rsg-controlbar{
    left:8px;
    right:8px;
    bottom:8px;
    padding:5px 8px;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-prev,
  .hwd-rsg.ui-overlay .hwd-rsg-next{
    width:34px;
    height:34px;
    font-size:18px;
  }
}

/* v1.1.5: clean stacked bars BELOW image */
.hwd-rsg.ui-overlay .hwd-rsg-stage{
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-caption{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin:0 !important;
  border-radius:0 !important;
  background:rgba(0,0,0,.76) !important;
  color:#fff !important;
  min-height:0 !important;
  padding:10px 14px 12px !important;
  z-index:auto !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-controlbar{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin:0 !important;
  border-radius:0 0 14px 14px !important;
  background:rgba(230,164,0,.96) !important;
  padding:6px 10px !important;
  z-index:auto !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-title{
  font-size:1rem !important;
  line-height:1.2 !important;
  margin-bottom:4px !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-desc{
  font-size:.9rem !important;
  line-height:1.35 !important;
  max-height:64px !important;
  overflow:auto !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-prev,
.hwd-rsg.ui-overlay .hwd-rsg-next{
  width:36px !important;
  height:36px !important;
  font-size:18px !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-audio{
  top:10px !important;
  right:10px !important;
}
@media (max-width:700px){
  .hwd-rsg.ui-overlay .hwd-rsg-caption{
    padding:8px 10px 10px !important;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-title{
    font-size:.95rem !important;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-desc{
    font-size:.84rem !important;
    max-height:54px !important;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-controlbar{
    padding:5px 8px !important;
  }
  .hwd-rsg.ui-overlay .hwd-rsg-prev,
  .hwd-rsg.ui-overlay .hwd-rsg-next{
    width:32px !important;
    height:32px !important;
    font-size:16px !important;
  }
}

/* v1.1.6: fix missing caption on wide layouts
   Cause: stage max-height/overflow was clipping the stacked caption below the image.
   Solution: in stacked overlay mode, let the stage grow to include caption/control bars,
   while keeping max-height on the media itself. */
.hwd-rsg.ui-overlay .hwd-rsg-stage{
  max-height:none !important;
  overflow:visible !important;
  border-radius:14px 14px 0 0 !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-media,
.hwd-rsg.ui-overlay .hwd-rsg-video,
.hwd-rsg.ui-overlay .hwd-rsg-video-transform{
  overflow:hidden;
  border-radius:14px 14px 0 0;
}
.hwd-rsg.ui-overlay .hwd-rsg-media img,
.hwd-rsg.ui-overlay .hwd-rsg-video-el,
.hwd-rsg.ui-overlay .hwd-rsg-vt-poster{
  max-height:70vh !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-caption{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.hwd-rsg.ui-overlay .hwd-rsg-controlbar{
  display:flex !important;
  width:100% !important;
  box-sizing:border-box !important;
}

/* v1.1.9: optional slide transition directions. Default/no-motion behavior remains unchanged. */
.hwd-rsg-stage.hwd-rsg-is-transitioning{overflow:hidden;}
.hwd-rsg-stage.hwd-rsg-is-transitioning .hwd-rsg-slide{display:block;position:absolute;inset:0;width:100%;animation-duration:.36s;animation-fill-mode:both;animation-timing-function:ease;}
.hwd-rsg-stage.hwd-rsg-is-transitioning .hwd-rsg-slide.is-active{position:relative;}
.hwd-rsg-stage.hwd-rsg-dir-left .hwd-rsg-in{animation-name:hwd-rsg-in-left;}
.hwd-rsg-stage.hwd-rsg-dir-left .hwd-rsg-out{animation-name:hwd-rsg-out-left;}
.hwd-rsg-stage.hwd-rsg-dir-right .hwd-rsg-in{animation-name:hwd-rsg-in-right;}
.hwd-rsg-stage.hwd-rsg-dir-right .hwd-rsg-out{animation-name:hwd-rsg-out-right;}
.hwd-rsg-stage.hwd-rsg-dir-up .hwd-rsg-in{animation-name:hwd-rsg-in-up;}
.hwd-rsg-stage.hwd-rsg-dir-up .hwd-rsg-out{animation-name:hwd-rsg-out-up;}
.hwd-rsg-stage.hwd-rsg-dir-down .hwd-rsg-in{animation-name:hwd-rsg-in-down;}
.hwd-rsg-stage.hwd-rsg-dir-down .hwd-rsg-out{animation-name:hwd-rsg-out-down;}
@keyframes hwd-rsg-in-left{from{transform:translateX(100%);}to{transform:translateX(0);}}
@keyframes hwd-rsg-out-left{from{transform:translateX(0);}to{transform:translateX(-100%);}}
@keyframes hwd-rsg-in-right{from{transform:translateX(-100%);}to{transform:translateX(0);}}
@keyframes hwd-rsg-out-right{from{transform:translateX(0);}to{transform:translateX(100%);}}
@keyframes hwd-rsg-in-up{from{transform:translateY(100%);}to{transform:translateY(0);}}
@keyframes hwd-rsg-out-up{from{transform:translateY(0);}to{transform:translateY(-100%);}}
@keyframes hwd-rsg-in-down{from{transform:translateY(-100%);}to{transform:translateY(0);}}
@keyframes hwd-rsg-out-down{from{transform:translateY(0);}to{transform:translateY(100%);}}

/* v1.2.1 audio reliability update */
.hwd-rsg-audio{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:min(92%, 420px);
}
.hwd-rsg-audio-el[controls]{
  width:min(300px, 70vw);
  height:34px;
  max-width:100%;
}
.hwd-rsg-audio-status{
  font-size:12px;
  line-height:1.2;
  color:#fff;
  background:rgba(0,0,0,.55);
  border-radius:6px;
  padding:3px 6px;
  max-width:180px;
}


/* v1.3.3 media reset + compact controls */
.hwd-rsg-stage{overflow:visible !important;}
.hwd-rsg-slide{display:none !important;}
.hwd-rsg-slide.is-active{display:block !important;}
.hwd-rsg-video{width:100%;display:block;background:#000;text-align:center;border-radius:14px 14px 0 0;overflow:hidden;}
.hwd-rsg-video-el{display:block !important;width:100% !important;height:auto !important;max-height:70vh !important;object-fit:contain !important;background:#000;visibility:visible !important;opacity:1 !important;}
.hwd-rsg-controlbar{min-height:44px;gap:8px !important;align-items:center !important;}
.hwd-rsg-audio{position:static !important;right:auto !important;top:auto !important;display:flex;align-items:center;justify-content:center;gap:6px;z-index:auto;max-width:100%;}
.hwd-rsg-audio-dock{display:flex;align-items:center;justify-content:center;min-width:220px;max-width:48%;}
.hwd-rsg-audio-dock .hwd-rsg-audio{width:100%;}
.hwd-rsg-audio-dock audio{width:min(340px, 100%) !important;height:30px;}
.hwd-rsg-audio-dock .hwd-rsg-audio-toggle{width:34px;height:34px;font-size:15px;flex:0 0 auto;}
.hwd-rsg:not(.hwd-rsg-has-active-audio) .hwd-rsg-audio-dock{min-width:0;max-width:0;overflow:hidden;}
.hwd-rsg.hwd-rsg-has-active-audio .hwd-rsg-dots{flex:0 1 260px;}
.hwd-rsg-media img{display:block;margin:0 auto;}
.hwd-rsg-caption{box-sizing:border-box;}
@media (max-width: 782px){
  .hwd-rsg-controlbar{flex-wrap:wrap;min-height:40px;padding:5px 8px !important;}
  .hwd-rsg-audio-dock{order:1;min-width:100%;max-width:100%;}
  .hwd-rsg-dots{order:2;flex:1 1 auto !important;}
  .hwd-rsg-prev{order:2;}
  .hwd-rsg-next{order:2;}
  .hwd-rsg-audio-dock audio{width:min(280px, 80vw) !important;}
  .hwd-rsg-video-el{max-height:62vh !important;}
}


/* v1.3.4: hide native media download button where browser supports it */
.hwd-rsg audio::-webkit-media-controls-download-button,
.hwd-rsg video::-webkit-media-controls-download-button{display:none !important;}
.hwd-rsg audio::-internal-media-controls-download-button,
.hwd-rsg video::-internal-media-controls-download-button{display:none !important;}

/* v1.3.5: restored center video play button + clear sound toggle */
.hwd-rsg-video{position:relative !important;}
.hwd-rsg-video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:72px;height:72px;border-radius:999px;border:0;
  background:rgba(0,0,0,.58);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:32px;line-height:1;z-index:80;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.hwd-rsg-video-play:hover,.hwd-rsg-video-play:focus{background:rgba(0,0,0,.75);outline:2px solid rgba(255,255,255,.65);}
.hwd-rsg-video-play span{display:block;margin-left:5px;margin-top:1px;}
.hwd-rsg-sound-toggle{
  border:0;background:rgba(0,0,0,.58);color:#fff;width:38px;height:38px;border-radius:999px;
  font-size:17px;line-height:1;display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;flex:0 0 auto;box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.hwd-rsg-sound-toggle:hover,.hwd-rsg-sound-toggle:focus{background:rgba(0,0,0,.75);outline:2px solid rgba(255,255,255,.65);}
.hwd-rsg-sound-toggle.is-muted{background:rgba(110,0,0,.72);}
.hwd-rsg-controlbar{gap:8px;}
.hwd-rsg-audio-toggle{display:inline-flex !important;align-items:center;justify-content:center;}
@media (max-width:700px){
  .hwd-rsg-video-play{width:58px;height:58px;font-size:26px;}
  .hwd-rsg-sound-toggle{width:34px;height:34px;font-size:15px;}
}


/* v1.3.8 safe visible volume control */
.hwd-rsg-volume-wrap{display:inline-flex;align-items:center;justify-content:center;min-width:110px;max-width:150px;margin:0 4px;}
.hwd-rsg-volume-slider{width:120px;accent-color:#111;cursor:pointer;}
.hwd-rsg-volume-slider:disabled{opacity:.45;cursor:not-allowed;}
@media (max-width:640px){.hwd-rsg-volume-wrap{min-width:82px;max-width:96px}.hwd-rsg-volume-slider{width:88px}.hwd-rsg-audio-dock audio{width:min(320px,86vw) !important;}}
/* v1.4.0: remove duplicate custom audio play button; use native audio controls + speaker toggle only */
.hwd-rsg .hwd-rsg-audio-toggle{display:none !important;}


/* v1.4.7: clear Sound ON/OFF control in the yellow media bar */
.hwd-rsg-sound-box{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.22);border-radius:999px;padding:3px 8px 3px 4px;white-space:nowrap;flex:0 0 auto;}
.hwd-rsg-sound-box .hwd-rsg-sound-toggle{box-shadow:none;margin:0;}
.hwd-rsg-sound-label{font-size:12px;font-weight:800;letter-spacing:.02em;color:#111;line-height:1;}
.hwd-rsg-sound-label.is-muted{color:#8b0000;}
@media (max-width:640px){.hwd-rsg-sound-box{padding-right:6px;gap:4px}.hwd-rsg-sound-label{font-size:11px}}

/* v1.4.8 MP3 intro + video two-stage display */
.hwd-rsg-mp3-intro-video{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden;}
.hwd-rsg-mp3-intro-video .hwd-rsg-intro-image-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000;z-index:2;}
.hwd-rsg-mp3-intro-video .hwd-rsg-intro-image{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block;}
.hwd-rsg-mp3-intro-video .hwd-rsg-video{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000;z-index:1;}
.hwd-rsg-mp3-intro-video.is-intro-mode .hwd-rsg-video{visibility:hidden;pointer-events:none;}
.hwd-rsg-mp3-intro-video.is-intro-mode .hwd-rsg-video-play{display:none !important;}
.hwd-rsg-mp3-intro-video:not(.is-intro-mode) .hwd-rsg-intro-image-wrap{display:none;}
.hwd-rsg-mp3-intro-video:not(.is-intro-mode) .hwd-rsg-video{visibility:visible;pointer-events:auto;z-index:3;}
.hwd-rsg-sound-label{font-weight:700;white-space:nowrap;}

/* v1.4.9: hide MP3-only sound/volume controls when slideshow has no MP3 audio */
.hwd-rsg.no-mp3-audio .hwd-rsg-sound-box,
.hwd-rsg.no-mp3-audio .hwd-rsg-volume-wrap{display:none !important;}


/* v1.5.0: show MP3 Sound/Volume controls only when the currently active slide has MP3 audio. */
.hwd-rsg.has-mp3-audio:not(.hwd-rsg-has-active-audio) .hwd-rsg-sound-box,
.hwd-rsg.has-mp3-audio:not(.hwd-rsg-has-active-audio) .hwd-rsg-volume-wrap{display:none !important;}

/* v1.6.0 Unified Media Control: show only the active slide's proper controls. */
.hwd-rsg.hwd-rsg-mode-video-only .hwd-rsg-audio-dock,
.hwd-rsg.hwd-rsg-mode-video-only .hwd-rsg-sound-box,
.hwd-rsg.hwd-rsg-mode-video-only .hwd-rsg-volume-wrap,
.hwd-rsg.hwd-rsg-mode-image-only .hwd-rsg-audio-dock,
.hwd-rsg.hwd-rsg-mode-image-only .hwd-rsg-sound-box,
.hwd-rsg.hwd-rsg-mode-image-only .hwd-rsg-volume-wrap{display:none !important;}
.hwd-rsg.hwd-rsg-mode-mp3-only .hwd-rsg-video-play,
.hwd-rsg.hwd-rsg-mode-mp3-only video{display:none !important;}
.hwd-rsg.hwd-rsg-mode-mp3-intro-then-video.hwd-rsg-mp3-already-played .hwd-rsg-audio-dock,
.hwd-rsg.hwd-rsg-mode-mp3-intro-then-video.hwd-rsg-mp3-already-played .hwd-rsg-sound-box,
.hwd-rsg.hwd-rsg-mode-mp3-intro-then-video.hwd-rsg-mp3-already-played .hwd-rsg-volume-wrap{display:none !important;}
.hwd-rsg.hwd-rsg-mode-mp3-intro-then-video:not(.hwd-rsg-mp3-already-played) .hwd-rsg-video-el{pointer-events:none;}

/* HWD v1.7.0 Narration Track Mode */
.hwd-rsg-narration-wrap{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:280px;
}
.hwd-rsg-narration-wrap audio{
  max-width:220px;
  height:28px;
}
.hwd-rsg-narration-status{
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}


/* HWD v1.7.1 Narration isolation: show narration controls only on narration cue slides. */
.hwd-rsg:not(.hwd-rsg-narration-slide) .hwd-rsg-narration-wrap{display:none !important;}
.hwd-rsg.hwd-rsg-narration-slide.hwd-rsg-mode-video-only .hwd-rsg-narration-wrap,
.hwd-rsg.hwd-rsg-narration-slide.hwd-rsg-mode-mp3-intro-then-video .hwd-rsg-narration-wrap{display:none !important;}
.hwd-rsg.hwd-rsg-narration-slide .hwd-rsg-narration-wrap{display:inline-flex;}


/* v2.0.4 compact presentation Pause / Resume controls on yellow bar */
.hwd-rsg-playback-controls{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.hwd-rsg-playback-controls button{appearance:none;border:1px solid rgba(0,0,0,.38);background:rgba(255,255,255,.72);color:#111;border-radius:8px;min-height:36px;padding:5px 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
.hwd-rsg-playback-controls button:hover:not(:disabled),.hwd-rsg-playback-controls button:focus-visible:not(:disabled){background:#fff;outline:2px solid rgba(0,0,0,.35);outline-offset:1px}
.hwd-rsg-playback-controls button:disabled{opacity:.38;cursor:default}
.hwd-rsg-presentation-paused .hwd-rsg-controlbar{box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}
@media(max-width:700px){.hwd-rsg-controlbar{gap:7px}.hwd-rsg-playback-controls{gap:3px}.hwd-rsg-playback-controls button{min-height:34px;padding:5px 7px;font-size:13px}.hwd-rsg-playback-controls .hwd-rsg-control-label{display:none}}
