* {
  box-sizing: border-box;
}

.ypv-shell {
  width: 100%;
  margin: 0 auto;
  color: #fff;
  font-family: Arial, sans-serif;
}

.ypv-topbar {
  width: 100%;
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 255, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(5, 12, 30, 0.94), rgba(10, 4, 25, 0.92));
  border: 1px solid rgba(0, 225, 255, 0.22);
  box-shadow: 0 0 28px rgba(0, 225, 255, 0.10);
  backdrop-filter: blur(14px);
}

.ypv-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.ypv-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.45));
  transition: 0.3s ease;
}

.ypv-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.7));
}

.ypv-searchbar {
  width: 100%;
}

.ypv-search-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 225, 255, 0.35);
  outline: none;
  background: rgba(0, 18, 30, 0.86);
  color: #fff;
  font-size: 0.96rem;
  box-shadow: inset 0 0 14px rgba(0, 225, 255, 0.05);
  transition: 0.25s ease;
}

.ypv-search-input:focus {
  border-color: rgba(0, 245, 255, 0.75);
  box-shadow:
    0 0 0 3px rgba(0, 245, 255, 0.12),
    0 0 22px rgba(0, 245, 255, 0.16);
}

.ypv-search-input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.ypv-count {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.ypv-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.ypv-card {
  width: 100%;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 225, 255, 0.10), rgba(0, 0, 0, 0.72));
  border: 1px solid rgba(0, 225, 255, 0.14);
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(0, 225, 255, 0.04);
  transition: 0.28s ease;
}

.ypv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(0, 245, 255, 0.16);
}

.ypv-video-icon {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.ypv-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(0, 225, 255, 0.12), transparent 60%),
    #01070a;
}

.ypv-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  filter: contrast(1.08) saturate(1.12);
  transition: 0.35s ease;
}

.ypv-card:hover .ypv-poster {
  transform: scale(1.08);
}

.ypv-preview::after {
  content: "THUMBNAIL";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #d7f7ff;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.ypv-thumb-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.78rem;
  pointer-events: none;
}

.ypv-thumb-ready .ypv-thumb-loader {
  display: none;
}

.ypv-play-symbol {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #00d4ff, #7c3cff);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.55);
  font-size: 22px;
  pointer-events: none;
  z-index: 3;
}

.ypv-info {
  padding: 15px;
}

.ypv-name {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  word-break: break-word;
}

.ypv-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ypv-badge,
.ypv-size {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
}

.ypv-badge {
  border: 1px solid rgba(0, 245, 255, 0.28);
  color: #9effff;
}

.ypv-empty {
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ypv-load-sentinel {
  width: 100%;
  height: 28px;
}

.ypv-player-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.ypv-player-modal.is-open {
  display: flex;
}

.ypv-player-box {
  position: relative;
  width: min(1050px, 96vw);
  max-height: 94vh;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10, 18, 40, 0.98), rgba(20, 5, 38, 0.96));
  border: 1px solid rgba(0, 245, 255, 0.28);
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.18);
}

.ypv-close-player {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #ff2f92, #7c3cff);
  box-shadow: 0 0 25px rgba(255, 47, 146, 0.55);
}

.ypv-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.ypv-main-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.ypv-player-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.ypv-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.28), rgba(124, 60, 255, 0.32));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.ypv-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.ypv-player-stage.is-anaglyph .ypv-main-player {
  filter:
    drop-shadow(-3px 0 0 rgba(255, 0, 0, 0.75))
    drop-shadow(3px 0 0 rgba(0, 255, 255, 0.7))
    saturate(1.25)
    contrast(1.12);
}

.ypv-no-scroll {
  overflow: hidden;
}

.ypv-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 225, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 18, 30, 0.88);
  color: #8cecff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(0, 225, 255, 0.16),
    inset 0 0 12px rgba(0, 225, 255, 0.05);
  display: none;
  transition: 0.25s ease;
}

.ypv-back-top:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(0, 35, 50, 0.94);
}

@media (max-width: 1100px) {
  .ypv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ypv-topbar {
    padding: 16px;
  }

  .ypv-logo {
    max-width: 130px;
  }

  .ypv-grid {
    grid-template-columns: 1fr;
  }

  .ypv-search-input {
    height: 46px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .ypv-player-modal {
    padding: 12px;
  }

  .ypv-player-box {
    padding: 12px;
    border-radius: 22px;
  }

  .ypv-close-player {
    top: 8px;
    right: 8px;
  }

  .ypv-back-top {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
}


/* Youplugs integration */
.ypv-youplugs-module {
  position: relative;
}

.ypv-brand {
  text-align:center;
  margin:0 0 12px;
  font-size:.85rem;
  letter-spacing:.08em;
  color:rgba(120,240,255,.85);
  text-transform:uppercase;
}

.ypv-footer {
  text-align:center;
  padding:25px 10px 10px;
  color:rgba(255,255,255,.55);
  font-size:.8rem;
}


/* Youplugs Ultimate 2026 upgrades */
.ypv-logo{max-width:100px!important}
.ypv-rainbow-active .ypv-card,
.ypv-rainbow-active .ypv-player-box{
 animation: ypvRainbow 6s linear infinite;
}
@keyframes ypvRainbow{
 0%{border-color:#00eaff;box-shadow:0 0 25px #00eaff}
 25%{border-color:#ff00e5;box-shadow:0 0 25px #ff00e5}
 50%{border-color:#00ff66;box-shadow:0 0 25px #00ff66}
 75%{border-color:#ff9900;box-shadow:0 0 25px #ff9900}
 100%{border-color:#00eaff;box-shadow:0 0 25px #00eaff}
}
.ypv-theme-purple{--ypv-accent:#b000ff}
.ypv-theme-matrix{--ypv-accent:#00ff66}
.ypv-theme-cinema{--ypv-accent:#ffcc00}
@media(max-width:768px){.ypv-logo{max-width:120px!important}}

/* Youplugs StreamVideo Ultimate FINAL V2 */
:root{
 --ypv-accent:#00eaff;
 --ypv-accent2:#7c3cff;
}
.ypv-theme-panel{
 display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:15px 0;
}
.ypv-theme-btn,.ypv-mode-btn2,.ypv-page-btn{
 border:1px solid var(--ypv-accent);
 background:rgba(0,10,25,.75);
 color:#fff;
 padding:10px 16px;
 border-radius:14px;
 cursor:pointer;
 box-shadow:0 0 18px color-mix(in srgb,var(--ypv-accent),transparent 50%);
 transition:.3s;
}
.ypv-theme-btn:hover,.ypv-mode-btn2:hover,.ypv-page-btn:hover{
 transform:translateY(-3px);
}
.ypv-rainbow-active{
 animation:ypvRainbowBorder 5s linear infinite;
}
@keyframes ypvRainbowBorder{
0%{--ypv-accent:#00eaff}
25%{--ypv-accent:#ff00d4}
50%{--ypv-accent:#00ff66}
75%{--ypv-accent:#ff9900}
100%{--ypv-accent:#00eaff}
}
.ypv-preview video{
 width:100%;
 height:100%;
 object-fit:cover;
}
.ypv-infinite-loader{
 text-align:center;
 padding:25px;
 color:var(--ypv-accent);
}

/* Youplugs Video Engine FINAL NEON ACTUALITES V2 */
#ypvShell{--video-main:#00eaff;--video-soft:rgba(0,234,255,.18);--video-bg:rgba(5,15,30,.94)}
#ypvShell.video-theme-blue{--video-main:#168cff;--video-soft:rgba(22,140,255,.18)}
#ypvShell.video-theme-cyan{--video-main:#00eaff;--video-soft:rgba(0,234,255,.18)}
#ypvShell.video-theme-green{--video-main:#00ff66;--video-soft:rgba(0,255,102,.18)}
#ypvShell.video-theme-yellow{--video-main:#ffd400;--video-soft:rgba(255,212,0,.18)}
#ypvShell.video-theme-red{--video-main:#ff3355;--video-soft:rgba(255,51,85,.18)}
#ypvShell.video-theme-purple{--video-main:#b000ff;--video-soft:rgba(176,0,255,.18)}
#ypvShell.video-theme-gold{--video-main:#ffb000;--video-soft:rgba(255,176,0,.18)}
#ypvShell.video-theme-black{--video-main:#999;--video-soft:rgba(180,180,180,.12)}
#ypvShell.video-theme-white{--video-main:#fff;--video-soft:rgba(255,255,255,.16);color:#111}
.ypv-theme-panel{border:2px solid var(--video-main);box-shadow:0 0 25px var(--video-soft);border-radius:24px;padding:15px}
.ypv-theme-btn{border-color:var(--video-main)!important;box-shadow:0 0 15px var(--video-soft)!important}
.ypv-card{border:2px solid var(--video-main);background:linear-gradient(145deg,var(--video-soft),rgba(0,0,0,.86));box-shadow:0 0 30px var(--video-soft)}
.ypv-card:hover{box-shadow:0 0 45px var(--video-main)}
.ypv-preview video{width:100%;height:100%;object-fit:cover}


/* ==========================================================
   Youplugs Video Engine - correction barre + recherche
   Thème dynamique opaque comme Actualités
========================================================== */

#ypvShell {
  --video-bg-solid: #07101f;
  --video-search-bg: #071827;
  --video-panel-bg: #081322;
}

/* Fond général du module */
#ypvShell {
  background: var(--video-bg-solid);
}

/* Barre supérieure opaque dynamique */
#ypvShell .ypv-topbar {
  background: var(--video-bg-solid);
  border: 2px solid var(--video-main);
  box-shadow:
    0 0 25px var(--video-soft),
    inset 0 0 18px var(--video-soft);
  backdrop-filter: none;
}

/* Barre de recherche : conserve la forme originale mais suit le thème */
#ypvShell .ypv-search-input {
  background: var(--video-search-bg);
  border: 2px solid var(--video-main);
  color: #fff;
  box-shadow:
    0 0 18px var(--video-soft),
    inset 0 0 12px var(--video-soft);
}

#ypvShell .ypv-search-input:focus {
  border-color: var(--video-main);
  box-shadow:
    0 0 0 3px var(--video-soft),
    0 0 30px var(--video-main);
}

/* Panneau de sélection couleurs */
#ypvShell .ypv-theme-panel {
  background: var(--video-bg-solid);
  border-color: var(--video-main);
  box-shadow:
    0 0 30px var(--video-soft),
    inset 0 0 15px var(--video-soft);
}

#ypvShell .ypv-theme-btn {
  background: var(--video-bg-solid);
  color:#fff;
  border-color: var(--video-main);
}

#ypvShell .ypv-theme-btn:hover,
#ypvShell .ypv-theme-btn.active {
  background: var(--video-main);
  color:#000;
  box-shadow:0 0 30px var(--video-main);
}

/* Cartes annonces vidéo */
#ypvShell .ypv-card {
  background:
    linear-gradient(
      145deg,
      var(--video-soft),
      var(--video-bg-solid)
    );
  border:2px solid var(--video-main);
  box-shadow:
    0 0 28px var(--video-soft),
    inset 0 0 18px var(--video-soft);
}

/* Badge et informations */
#ypvShell .ypv-badge {
  border-color:var(--video-main);
  color:var(--video-main);
  background:var(--video-bg-solid);
}

#ypvShell .ypv-size {
  background:var(--video-bg-solid);
  border:1px solid var(--video-main);
}

/* Mode blanc lisible */
#ypvShell.video-theme-white {
  --video-bg-solid:#f5f5f5;
  --video-search-bg:#ffffff;
  color:#111;
}

#ypvShell.video-theme-white .ypv-card,
#ypvShell.video-theme-white .ypv-topbar,
#ypvShell.video-theme-white .ypv-theme-panel {
  color:#111;
}

#ypvShell.video-theme-white .ypv-search-input {
  color:#111;
}

