/* WCMT Popup Overlay */
.wcmt-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup Box */
.wcmt-popup {
    background: linear-gradient(145deg, #b96adf, #8e3dc6);
    color: #fff;
    padding: 28px 24px;
    border-radius: 22px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    font-family: "Poppins", sans-serif;
    animation: fadeIn 0.3s ease-out;
}

/* Popup Header */
.wcmt-popup h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

/* Toggle Buttons (HD / SD) */
.wcmt-popup .quality-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 10px 0;
}

.wcmt-popup .quality-toggle button {
    flex: 1;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wcmt-popup .quality-toggle button:hover,
.wcmt-popup .quality-toggle button.active {
    background: #fff;
    color: #7b2db5;
}

/* Progress bar (for downloads) */
.wcmt-progress {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 14px;
    height: 10px;
}

.wcmt-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.3s;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 🔹 Subtitle Popup Overlay */
.wcmt-sub-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(6px);
}

/* 🔹 Subtitle Popup Box */
.wcmt-sub-popup {
  background: #111;
  padding: 18px 24px;
  border-radius: 12px;
  color: #fff;
  max-width: 260px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* 🔹 Subtitle Popup Title */
.wcmt-sub-popup h3 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: bold;
  color: #f2f2f2;
}

/* 🔹 Subtitle Buttons Alignment */
.wcmt-sub-popup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 🔹 Subtitle Button */
.wcmt-sub-popup-btn {
  background: #222;
  border: 1px solid #555;
  color: #fff;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.25s ease;
}

/* Hover */
.wcmt-sub-popup-btn:hover {
  background: #444;
}

/* Disabled state */
.wcmt-sub-popup-btn.wcmt-off {
  opacity: 0.6;
}

.wcmt-tutorial-group {
  border: 1px solid #e4c48a;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.wcmt-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  background: #fff6ea;
  font-weight: 600;
  color: #3a2b17;
}

.wcmt-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.wcmt-tutorial-group.active .wcmt-arrow {
  transform: rotate(180deg);
}

.wcmt-tutorial-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 15px;
}

.wcmt-tutorial-group.active .wcmt-tutorial-content {
  max-height: 2000px; /* adjust as needed */
  padding: 10px 15px;
}
