/* =========================================================
   Extreme Cam Club – Branded Player (global)
   File: static/css/exc_player.css
   ========================================================= */

:root{
  --exc-accent: #b200ff; /* purple-red accent */
  --exc-accent-2: #ff2e7a;
  --exc-bg: #000;
  --exc-bar: rgba(0,0,0,0.55);
  --exc-bar-2: rgba(0,0,0,0.35);
  --exc-text: rgba(255,255,255,0.92);
  --exc-muted: rgba(255,255,255,0.72);
  --exc-border: rgba(255,255,255,0.12);
  --exc-radius: 12px;
  --exc-shadow: 0 10px 30px rgba(0,0,0,0.3);
  --exc-btn-bg: rgba(255,255,255,0.10);
  --exc-btn-bg-hover: rgba(255,255,255,0.18);
}

/* Player root */
.exc-player{
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--exc-bg);
  border-radius: var(--exc-radius);
  overflow: hidden;
  box-shadow: var(--exc-shadow);

  display: flex;
  flex-direction: column;
}

/* Top bar (always visible) */
.exc-topbar{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  background: var(--exc-bar);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--exc-border);
  z-index: 5;
}

.exc-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.exc-badge{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--exc-accent), var(--exc-accent-2));
  box-shadow: 0 0 0 3px rgba(178,0,255,0.18);
}

.exc-title{
  min-width: 0;
  color: var(--exc-text);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exc-title a{ color: var(--exc-text); text-decoration: none; }
.exc-title a:hover{ text-decoration: underline; }

.exc-inline-nav{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exc-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.exc-btn{
  appearance: none;
  border: 1px solid var(--exc-border);
  background: var(--exc-btn-bg);
  color: var(--exc-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select: none;
}
.exc-btn:hover{
  background: var(--exc-btn-bg-hover);
  border-color: rgba(255,255,255,0.20);
  transform: scale(1.02);
}
.exc-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}
.exc-btn.exc-btn-primary{
  border-color: rgba(178,0,255,0.45);
  background: rgba(178,0,255,0.18);
}
.exc-btn.exc-btn-primary:hover{
  background: rgba(178,0,255,0.26);
}

.exc-speed-wrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--exc-border);
  border-radius: 999px;
  background: var(--exc-btn-bg);
  color: var(--exc-text);
}

.exc-speed-label{
  font-size: 12px;
  line-height: 1;
  color: var(--exc-muted);
}

.exc-speed-select{
  appearance: none;
  border: 1px solid var(--exc-border);
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  color: var(--exc-text);
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  outline: none;
}

.exc-speed-select:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

/* Stage takes remaining space */
.exc-stage{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

/* HTML5 video must remain relative to keep native controls */
.exc-stage video{
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* Hide native overflow menu (3 dots) where supported */
.exc-stage video::-webkit-media-controls-overflow-button{
  display: none !important;
}

/* iframe fills stage */
.exc-stage iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Keep third-party iframe embed wrappers from shrinking the viewport */
.exc-iframe-shell{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.exc-iframe-shell > *{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}
.exc-iframe-shell iframe,
.exc-iframe-shell video,
.exc-iframe-shell object,
.exc-iframe-shell embed{
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Optional hint bar */
.exc-hint{
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--exc-muted);
  background: var(--exc-bar-2);
  border-top: 1px solid var(--exc-border);
}

/* Modal */
.exc-modal[hidden]{ display:none !important; }
.exc-modal{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.exc-modal-card{
  width: min(640px, 100%);
  background: rgba(20,20,20,0.95);
  color: var(--exc-text);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.exc-modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.exc-modal-title{
  font-weight: 700;
}

.exc-modal-body{
  padding: 14px;
}

.exc-field{ margin-bottom: 12px; }
.exc-label{
  display:block;
  font-size: 12px;
  color: var(--exc-muted);
  margin-bottom: 6px;
}

.exc-row{
  display:flex;
  gap: 8px;
  align-items: stretch;
}

.exc-input,
.exc-textarea{
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: var(--exc-text);
  padding: 10px 10px;
  outline: none;
  font-size: 13px;
}
.exc-textarea{ resize: vertical; }

.exc-muted{
  font-size: 12px;
  color: var(--exc-muted);
  margin-top: 8px;
}

/* Bottom-center overlay buttons (used by playlists / autoplay fallback) */
.exc-centerbar{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 25;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
}
.exc-centerbar[hidden]{ display:none !important; }

/* Tablets */
@media (max-width: 991.98px){
  .exc-topbar{
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .exc-actions{
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }
  .exc-inline-nav{
    flex-wrap: wrap;
  }
  .exc-btn{
    padding: 5px 8px;
    font-size: 11px;
  }
  .exc-speed-wrap{
    padding: 3px 7px;
  }
  .exc-speed-label,
  .exc-speed-select{
    font-size: 11px;
  }
}

/* Small screens */
@media (max-width: 576px){
  .exc-topbar{
    padding: 8px 10px;
    gap: 8px;
  }
  .exc-title{ font-size: 12px; }
  .exc-inline-nav{
    width: 100%;
    justify-content: flex-start;
  }
  .exc-actions{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }
  .exc-btn{
    padding: 5px 7px;
    font-size: 11px;
  }
  .exc-speed-wrap{
    padding: 3px 6px;
  }
  .exc-speed-label,
  .exc-speed-select{
    font-size: 11px;
  }
  .exc-hint{
    display: none;
  }
}
