/*
 * Copyright (C) 2026  Suhaib Siddiqi
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

.vidcellar { max-width: 1000px; margin: 0 auto; }

.vc-search { display: flex; gap: 8px; margin-bottom: 20px; }
.vc-search input { flex: 1; padding: 8px 12px; }

.vc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.vc-card { display: block; color: inherit; text-decoration: none; border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden; }
.vc-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.vc-card-title { padding: 10px 12px 2px; font-weight: 600; }
.vc-card-price, .vc-card-meta { padding: 0 12px 12px; color: #666; font-size: 14px; }
.vc-card-stats { display: flex; align-items: center; gap: 6px; padding: 7px 12px 4px; color: #666; font-size: 13px; }
.vc-stars { letter-spacing: 1px; white-space: nowrap; }
.vc-rating-number { letter-spacing: 0; }

.vc-pagination { display: flex; gap: 6px; }
.vc-pagination a { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; }
.vc-pagination a.active { background: #333; color: #fff; border-color: #333; }

.vc-owned { display: inline-block; padding: 8px 14px; background: #e6f7ee; color: #157347; border-radius: 6px; margin: 12px 0; }
.vc-notice { padding: 10px 14px; background: #fff8e1; border-radius: 6px; margin: 12px 0; }
.vc-error { padding: 10px 14px; background: #fdecea; color: #b3261e; border-radius: 6px; margin: 12px 0; }
.vc-expired-notice { padding: 10px 14px; background: #fdecea; color: #b3261e; border-radius: 6px; margin: 12px 0; }

.vc-btn-primary {
  width: 100%; max-width: 420px; height: 40px; box-sizing: border-box;
  padding: 0 20px; border: none; border-radius: 4px; background: #4b3bff; color: #fff;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-size: 15px; font-weight: 500; line-height: 1 !important; text-align: center !important; vertical-align: middle;
  cursor: pointer; margin-top: 10px; font-family: inherit;
}
.vc-btn-primary:hover { filter: brightness(0.96); }
.vc-btn-primary:disabled { opacity: 0.6; cursor: default; }


.vc-guest-checkout { margin: 16px 0; max-width: 480px; }
.vc-email-input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px;
}
.vc-checkout-note { color: #666; font-size: 14px; margin: 8px 0 14px; }

.vc-powered-by {
  margin-top: 5px; color: #6b7280; font-size: 12px; line-height: 1.4;
}

.vc-browse-title { margin: 0 0 6px; }
.vc-browse-intro { margin: 0 0 18px; color: #666; }


/* Watch-page film category tabs */
.vc-category-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 18px 0 20px !important;
  padding: 0 !important;
  border-bottom: 1px solid #dcdcde !important;
}
.vc-category-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 1px solid #dcdcde !important;
  border-bottom: 0 !important;
  border-radius: 7px 7px 0 0 !important;
  background: #f6f7f7 !important;
  color: #1d2327 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}
.vc-category-tab:hover,
.vc-category-tab:focus {
  background: #fff !important;
  color: #1683d8 !important;
  text-decoration: none !important;
}
.vc-category-tab.active {
  position: relative !important;
  background: #1683d8 !important;
  border-color: #1683d8 !important;
  color: #fff !important;
}
.vc-video-stats-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 22px 0 28px;
  box-sizing: border-box;
}
.vc-video-views {
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  color: #555;
  font-size: 16px;
  font-weight: 500;
}
.vc-video-views-icon { font-size: 17px; line-height: 1; }
.vc-video-rating { margin: 0; padding: 14px 16px; border: 1px solid #e2e2e2; border-radius: 10px; width: auto; max-width: 620px; box-sizing: border-box; }
.vc-rating-summary { display: flex; align-items: center; gap: 8px; font-size: 17px; white-space: nowrap; }
.vc-rating-summary .vc-stars { font-size: 21px; }
.vc-rating-number { letter-spacing: 0; }
.vc-rating-count { color: #666; font-size: 14px; }
.vc-rating-prompt { margin-top: 12px; font-weight: 600; }
.vc-rating-input { display: flex; gap: 4px; margin-top: 6px; }
.vc-rating-star { width: 40px; height: 40px; min-width: 40px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: #08abc1; color: #fff; font-size: 20px; line-height: 1; text-align: center; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-sizing: border-box; }
.vc-rating-star:hover, .vc-rating-star:focus { text-decoration: none; filter: brightness(.95); }
.vc-rating-star.selected { background: #08abc1; color: #fff; }
.vc-rating-star:disabled { opacity: .65; cursor: wait; }
.vc-rating-message { min-height: 18px; margin-top: 7px; color: #666; font-size: 13px; }
.vc-most-watched-tab { font-weight: 700 !important; }
.vc-card-category {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .vc-video-stats-row { flex-direction: column; gap: 10px; }
  .vc-video-views { padding-top: 0; margin-left: 0; }
  .vc-video-rating { width: 100%; max-width: none; }
}
@media (max-width: 600px) {
  .vc-category-tabs { gap: 5px !important; overflow-x: auto !important; flex-wrap: nowrap !important; }
  .vc-category-tab { min-width: max-content !important; min-height: 40px !important; padding: 0 13px !important; font-size: 14px !important; }
}

/* YouTube-style protected video player */
.vc-player {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1000px;
  margin: 16px 0 24px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  user-select: none;
}
.vc-video-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  position: relative;
  z-index: 1;
}
/* The custom controls replace the browser-native video controls. Keeping the
   native controls enabled would cause them to paint over the custom control
   bar in some browsers/themes. */
.vc-player video::-webkit-media-controls { display: none !important; }
.vc-player video::-webkit-media-controls-enclosure { display: none !important; }
.vc-player:fullscreen { width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
.vc-player:fullscreen .vc-video-element { width: 100%; height: 100%; }
.vc-center-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 32px;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer;
  z-index: 4;
  transition: transform .15s ease, background .15s ease;
}
.vc-center-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(0,0,0,.86); }
.vc-player.vc-playing .vc-center-play { display: none; }
/* Buffering is handled silently in the background. Never show a spinner over the play button. */
.vc-player-loading,
.vc-spinner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none !important;
}
.vc-player-loading[hidden] { display: none !important; }
.vc-player-error {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 620px);
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
  z-index: 6;
}
.vc-player-error[hidden] { display: none; }
.vc-controls {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: 72px !important;
  padding: 0 12px 6px !important;
  margin: 0 !important;
  background: linear-gradient(transparent, rgba(0,0,0,.92)) !important;
  color: #fff !important;
  z-index: 100 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.vc-player .vc-controls,
.vc-player.vc-controls-visible .vc-controls,
.vc-player:hover .vc-controls,
.vc-player:focus-within .vc-controls {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
/* While either player is actively playing, hide the entire control layer —
   including the progress bar — until the visitor moves the mouse over it or
   focuses a control. Paused/ended players remain fully visible. */
.vc-player.vc-playing:not(:hover):not(:focus-within):not(.vc-controls-visible) .vc-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.vc-progress-wrap {
  position: absolute !important;
  left: 12px !important; right: 12px !important; top: 9px !important;
  z-index: 101 !important;
  width: auto !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.vc-buffered {
  position: absolute !important;
  left: 0 !important; top: 2px !important;
  height: 4px !important; width: 0;
  background: rgba(255,255,255,.45) !important;
  border-radius: 4px !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.vc-progress {
  position: absolute !important;
  left: 0 !important; top: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important; height: 8px !important;
  min-height: 8px !important; max-height: 8px !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.vc-progress::-webkit-slider-runnable-track {
  width: 100% !important; height: 4px !important;
  background: rgba(255,255,255,.35) !important;
  border: 0 !important; border-radius: 4px !important;
}
.vc-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 12px !important; height: 12px !important;
  margin-top: -4px !important;
  border: 0 !important; border-radius: 50% !important;
  background: #1683d8 !important;
  box-shadow: none !important;
}
.vc-progress::-moz-range-track {
  width: 100% !important; height: 4px !important;
  background: rgba(255,255,255,.35) !important;
  border: 0 !important; border-radius: 4px !important;
}
.vc-progress::-moz-range-progress {
  height: 4px !important;
  background: #1683d8 !important;
  border-radius: 4px !important;
}
.vc-progress::-moz-range-thumb {
  width: 12px !important; height: 12px !important;
  border: 0 !important; border-radius: 50% !important;
  background: #1683d8 !important;
}
.vc-controls-row {
  position: absolute !important;
  left: 12px !important; right: 12px !important; bottom: 6px !important;
  z-index: 102 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  height: 38px !important;
  min-height: 38px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.vc-control {
  width: 38px !important; height: 36px !important;
  min-width: 38px !important; max-width: 38px !important;
  border: 0 !important;
  background: rgba(0,0,0,.58) !important;
  color: #fff !important;
  padding: 0 !important; margin: 0 !important;
  border-radius: 4px !important;
  font-size: 18px !important; line-height: 1 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; text-indent: 0 !important;
  cursor: pointer !important; box-sizing: border-box !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 103 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.vc-control:hover { background: rgba(22,131,216,.9) !important; }
.vc-control-icon, .vc-control-label {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  line-height: 1 !important; text-align: center !important;
  font-family: Arial, sans-serif !important; font-weight: 700 !important;
}

.vc-volume-group {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  height: 36px !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important;
}
.vc-volume-slider {
  width: 90px !important; min-width: 70px !important; max-width: 90px !important; height: 18px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
  appearance: none !important; -webkit-appearance: none !important; cursor: pointer !important; flex: 0 0 90px !important;
}
.vc-volume-slider::-webkit-slider-runnable-track { height: 4px !important; background: rgba(255,255,255,.55) !important; border-radius: 4px !important; border: 0 !important; }
.vc-volume-slider::-webkit-slider-thumb { -webkit-appearance: none !important; appearance: none !important; width: 12px !important; height: 12px !important; margin-top: -4px !important; border-radius: 50% !important; border: 0 !important; background: #fff !important; }
.vc-volume-slider::-moz-range-track { height: 4px !important; background: rgba(255,255,255,.55) !important; border-radius: 4px !important; border: 0 !important; }
.vc-volume-slider::-moz-range-progress { height: 4px !important; background: #fff !important; border-radius: 4px !important; }
.vc-volume-slider::-moz-range-thumb { width: 12px !important; height: 12px !important; border-radius: 50% !important; border: 0 !important; background: #fff !important; }

.vc-speed { width: 46px !important; min-width: 46px !important; max-width: 46px !important; font-size: 13px !important; }
.vc-time {
  font-size: 13px !important; line-height: 36px !important; white-space: nowrap !important;
  text-shadow: 0 1px 2px #000 !important; display: inline-flex !important; align-items: center !important;
  height: 36px !important; margin: 0 !important; padding: 0 2px !important;
  flex: 0 0 auto !important;
}
.vc-spacer { flex: 1 1 auto !important; min-width: 0 !important; }
@media (max-width: 600px) {
  .vc-player { border-radius: 4px; }
  .vc-center-play { width: 62px; height: 62px; line-height: 1 !important; font-size: 26px; }
  .vc-controls { height: 66px !important; padding: 0 8px 5px !important; }
  .vc-progress-wrap { left: 8px !important; right: 8px !important; top: 8px !important; }
  .vc-controls-row { left: 8px !important; right: 8px !important; bottom: 5px !important; }
  .vc-control { width: 34px !important; min-width: 34px !important; max-width: 34px !important; height: 34px !important; }
  .vc-speed { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
  .vc-volume-slider { width: 62px !important; min-width: 50px !important; max-width: 62px !important; flex-basis: 62px !important; }
  .vc-time { font-size: 12px; }
}


/* Video advertisements */
.vc-ad-container {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}
.vc-ad-container[hidden] { display: none; }
.vc-ad-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.vc-ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.vc-ad-countdown {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 13px;
}


/* Trailer / Full Video sections */
.vc-trailer-section,
.vc-full-video-section {
  margin: 24px 0;
}
.vc-trailer-section h2,
.vc-full-video-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.vc-trailer-player {
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.vc-trailer-player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  background: #000;
}
.vc-full-video-section > .vc-player {
  margin-top: 0;
}

/* Public trailer: playable without purchase. */
.vc-trailer-free-notice{margin:0 0 10px;opacity:.8;font-size:.95em}


/* Full-video player settings menu: Playback speed + Picture in picture */
.vc-settings { font-size: 18px !important; }
.vc-settings[aria-expanded="true"] { background: rgba(22,131,216,.9) !important; }
.vc-player-settings {
  position: absolute !important;
  right: 12px !important;
  bottom: 52px !important;
  z-index: 120 !important;
  width: 290px !important;
  max-width: calc(100% - 24px) !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.35) !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.vc-player-settings[hidden] { display: none !important; }
.vc-player-setting {
  width: 100% !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e5e5 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.vc-player-setting:last-child { border-bottom: 0 !important; }
.vc-player-setting:hover { background: #eee !important; }
.vc-speed-setting { cursor: default !important; }
.vc-setting-label { flex: 0 1 auto !important; min-width: 0 !important; white-space: nowrap !important; font-size: 13px !important; line-height: 1 !important; }
.vc-speed-select {
  margin-left: auto !important;
  min-width: 82px !important;
  height: 38px !important;
  padding: 4px 28px 4px 10px !important;
  border: 1px solid #aaa !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.vc-setting-icon {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 25px !important;
  line-height: 1 !important;
}
.vc-pip-icon { font-size: 29px !important; }
.vc-setting-value { margin-left: auto !important; color: #555 !important; font-size: 14px !important; }
@media (max-width: 600px) {
  .vc-player-settings { right: 8px !important; bottom: 48px !important; width: 280px !important; max-width: calc(100% - 16px) !important; }
  .vc-player-setting { min-height: 58px !important; font-size: 14px !important; gap: 10px !important; padding: 0 14px !important; }
  .vc-speed-select { min-width: 78px !important; height: 36px !important; font-size: 13px !important; }
}

/* ------------------------------------------------------------------
 * 1.2.0 — Facade player (poster + play button, no <video> until click)
 *
 * CLS: the box is sized by aspect-ratio (also inlined on the element, so it
 * holds even if this stylesheet arrives late) and the poster is absolutely
 * positioned inside it, so neither the image nor the injected <video> can
 * change the layout.
 * ------------------------------------------------------------------ */
.vc-player--facade { contain: layout paint; }
.vc-facade {
  position: absolute;
  inset: 0;
  z-index: 110;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.vc-facade--noposter { background: linear-gradient(135deg, #1f2937 0%, #000 100%); }
.vc-facade-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.vc-facade-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background-color .15s ease;
}
.vc-facade-play svg { width: 34px; height: 34px; margin-left: 4px; fill: #fff; }
.vc-facade:hover .vc-facade-play,
.vc-facade:focus-visible .vc-facade-play { background: rgba(0, 0, 0, .88); transform: translate(-50%, -50%) scale(1.06); }
.vc-facade:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.vc-facade--loading { cursor: progress; }
.vc-facade--loading .vc-facade-play svg { opacity: 0; }
.vc-facade--loading .vc-facade-play::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vc-facade-spin .8s linear infinite;
}
@keyframes vc-facade-spin { to { transform: rotate(360deg); } }
.vc-quality { color: #fff; font-size: 12px; opacity: .85; margin-right: 6px; white-space: nowrap; }
.vc-quality:empty { display: none; }
.vc-player-title { margin: 16px 0 8px; }

/* Trailer facade → native controls after click. */
.vc-trailer-player {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 8px 0 24px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.vc-trailer-player > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

@media (max-width: 600px) {
  .vc-facade-play { width: 62px; height: 62px; }
  .vc-facade-play svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-facade-play { transition: none; }
  .vc-facade--loading .vc-facade-play::after { animation-duration: 2.4s; }
}
