/* Small polish layer on top of Bootstrap */
:root{
  --sma-accent: #b08d57; /* gold-ish */
}

.navbar-brand { letter-spacing: .2px; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sma-accent);
  --bs-btn-border-color: var(--sma-accent);
  --bs-btn-hover-bg: #9c7b4c;
  --bs-btn-hover-border-color: #9c7b4c;
  --bs-btn-active-bg: #8b6d43;
  --bs-btn-active-border-color: #8b6d43;
}

/* ===================================================
   Lesson video: responsive container + watermark + FS
   (Switch to native aspect-ratio; stop relying on .ratio)
   =================================================== */

/* Video container (16:9) */
.video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* Make iframe fill container */
.video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}

/* Fullscreen button */
.video-fs-btn{
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
}

/* Watermark overlay */
.wm-layer{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* don't block play controls */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  opacity: .18;
}

.wm-text{
  font-size: 13px;
  line-height: 1.2;
  color: #111;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
  transform: rotate(-15deg);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-text:nth-child(even){
  justify-self: end;
}

/* Fullscreen wrapper sizing (so it truly fills the screen) */
.video-wrap:fullscreen{
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto;   /* allow full viewport */
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000;
}

/* Keep watermark visible in fullscreen */
.video-wrap:fullscreen .wm-layer{
  opacity: .18;
}

/* Optional: slightly stronger contrast on dark videos */
@media (prefers-contrast: more) {
  .wm-layer { opacity: .26; }
  .wm-text  { opacity: .95; }
}