/* ==========================================
   CONNECTCLICK VIDEO SYSTEM V1.0
   WINDOWS 95 VIDEO INTERFACE
========================================== */

.cc-video-composer {
  margin: 12px 0;
  padding: 10px;
  background: #c0c0c0;
  border: 2px inset #fff;
}

.cc-video-composer[hidden],
.cc-video-preview-box[hidden] {
  display: none !important;
}

.cc-video-composer-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000080;
  color: white;
  padding: 7px;
  font-weight: bold;
  margin-bottom: 12px;
}

.cc-video-url-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cc-video-url-row label {
  font-weight: bold;
  font-size: 13px;
}

.cc-video-url-row input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.cc-video-preview-status {
  font-size: 12px;
  margin: 9px 0;
}

.cc-video-preview-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px inset #fff;
  overflow: hidden;
}

.cc-video-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-video-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 45px;
  pointer-events: none;
  text-shadow: 0 2px 8px #000;
}

.cc-video-preview-label {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 4px 7px;
  background: #000080;
  color: white;
  font-size: 10px;
}

.cc-video-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 11px;
}

/* FEED VIDEO THUMBNAIL */

.cc-video-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 2px solid #808080;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.cc-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  text-shadow: 0 2px 8px black;
}

.cc-video-thumb:hover .cc-video-play {
  background: rgba(0, 0, 0, .2);
}

/* VIDEO PLAYER WINDOW */

.cc-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: rgba(0, 0, 0, .88);
}

.cc-player-window {
  width: min(900px, 100%);
  background: #c0c0c0;
  border: 3px outset #fff;
  box-shadow: 0 12px 45px rgba(0,0,0,.6);
}

.cc-player-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  background: #000080;
  color: white;
  font-weight: bold;
}

.cc-player-close {
  width: 25px;
  height: 23px;
  border: 2px outset #fff;
  background: #c0c0c0;
  font-weight: bold;
  cursor: pointer;
}

.cc-player-screen {
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.cc-player-screen video,
.cc-player-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cc-player-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
}

.cc-player-controls button {
  min-width: 34px;
}

.cc-player-progress {
  flex: 1;
  min-width: 30px;
  cursor: pointer;
}

.cc-player-time {
  font-family: monospace;
  font-size: 12px;
  white-space: nowrap;
}

.cc-player-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-top: 1px solid #808080;
  font-size: 10px;
}

/* MOBILE */

@media (max-width: 600px) {
  .cc-player-overlay {
    padding: 5px;
  }

  .cc-player-controls {
    gap: 5px;
    padding: 6px;
  }

  .cc-player-time {
    font-size: 10px;
  }
}