* {
  box-sizing: border-box;
}

:root {
  --yp-depth: 8px;
  --yp-intensity: 0.30;
  --yp-fit: contain;
  --yp-focal: 45;
  --yp-lens: 10px;
  --yp-relief: 35;
  --yp-line: rgba(125, 245, 255, 0.2);
  --yp-text: #f7fbff;
  --yp-muted: #9fb2c8;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: 
    url('player3dfont.png') no-repeat center center fixed, /* Ajout de l'image */
    radial-gradient(circle at 10% 0%, rgba(0, 234, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 0, 98, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(92, 76, 255, 0.18), transparent 35%),
    #02030a; /* Arrière-plan de base */
  background-size: cover; /* Assure que l'image couvre toute la fenêtre */
  background-attachment: fixed; /* Fixe l'image de fond pendant le défilement */
  color: var(--yp-text); /* Si tu veux utiliser la couleur de texte personnalisée */
  font-family: Arial, Helvetica, sans-serif;
}
.yp-app {
  min-height: 100vh;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yp-shell {
  width: min(1240px, 100%);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--yp-line);
  background: rgba(6, 10, 24, 0.94);
  box-shadow:
    0 0 60px rgba(0, 234, 255, 0.12),
    0 0 90px rgba(255, 0, 98, 0.10),
    0 32px 100px rgba(0, 0, 0, 0.7);
}

.yp-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.yp-shell:fullscreen .yp-header,
.yp-shell:fullscreen .yp-sidebar {
  display: none;
}

.yp-shell:fullscreen .yp-layout {
  flex: 1;
  display: block;
}

.yp-shell:fullscreen .yp-main {
  height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.yp-shell:fullscreen .yp-screen {
  flex: 1;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.yp-shell:fullscreen .yp-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  background: rgba(2, 3, 10, 0.78);
  backdrop-filter: blur(18px);
}

.yp-header {
  padding: 18px;
  border-bottom: 1px solid var(--yp-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.yp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yp-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #7df5ff 50%, #ff2d78);
  color: #001014;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(0, 234, 255, 0.35);
}

.yp-brand h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  letter-spacing: -0.05em;
  text-shadow: -2px 0 rgba(255, 0, 98, 0.45), 2px 0 rgba(0, 234, 255, 0.45);
}

.yp-brand p {
  margin: 5px 0 0;
  color: var(--yp-muted);
  font-size: 0.92rem;
}

.yp-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.yp-main {
  padding: 18px;
  position: relative;
}

.yp-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 26px;
  border: 1px solid rgba(125, 245, 255, 0.25);
  box-shadow: 0 0 44px rgba(0, 234, 255, 0.13);
}

.yp-empty {
  height: 100%;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--yp-muted);
  text-align: center;
  padding: 24px;
}

.yp-empty-badge {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 245, 255, 0.32);
  border-radius: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: -5px 0 red, 5px 0 cyan;
}

.yp-empty h2 {
  margin: 14px 0 8px;
  color: #fff;
}

.yp-empty p {
  margin: 0;
}

.yp-media,
.yp-frame {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: var(--yp-fit);
  border: 0;
  background: #000;
  position: relative;
  z-index: 1;
}

.yp-frame {
  background: #fff;
}

.yp-projector-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.yp-hologrid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(125,245,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(125,245,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.yp-anaglyph-on .yp-media,
.yp-anaglyph-on .yp-frame {
  filter:
    drop-shadow(calc(var(--yp-depth) * -1) 0 0 rgba(255, 0, 76, var(--yp-intensity)))
    drop-shadow(var(--yp-depth) 0 0 rgba(0, 234, 255, var(--yp-intensity)))
    saturate(1.15)
    contrast(1.08);
}

.yp-anaglyph-on::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(90deg,
    rgba(255, 0, 76, var(--yp-intensity)),
    transparent 46%,
    rgba(0, 234, 255, var(--yp-intensity))
  );
  opacity: 0.82;
}

.yp-projector-on {
  filter: contrast(1.15) brightness(1.06) saturate(1.18);
}

.yp-projector-on::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    repeating-radial-gradient(circle at center,
      rgba(125,245,255,0.12) 0,
      rgba(125,245,255,0.12) 1px,
      transparent 2px,
      transparent var(--yp-lens)
    ),
    radial-gradient(circle at center, rgba(255,255,255,0.14), transparent 24%);
  opacity: calc(0.20 + var(--yp-relief) * 0.005);
}

.yp-controls {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(125,245,255,0.18);
  border-radius: 22px;
  background: rgba(7, 10, 22, 0.88);
}

.yp-progress-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ddecff;
}

.yp-progress,
.yp-tool-label input[type="range"],
.yp-card input[type="range"] {
  width: 100%;
  accent-color: #7df5ff;
}

.yp-transport,
.yp-player-tools {
  margin-top: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.yp-button,
.yp-round,
.yp-play,
.yp-tool,
.yp-small {
  border: 1px solid rgba(125,245,255,0.22);
  background: linear-gradient(180deg, rgba(31, 44, 74, 0.95), rgba(16, 22, 39, 0.95));
  color: #eafcff;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 850;
  padding: 10px 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.yp-button:hover,
.yp-round:hover,
.yp-play:hover,
.yp-tool:hover,
.yp-small:hover {
  transform: translateY(-1px);
  border-color: rgba(125,245,255,0.62);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.15);
}

.yp-button-primary,
.yp-play,
.yp-active {
  background: linear-gradient(135deg, #ffffff, #7df5ff);
  color: #001014;
}

.yp-wide {
  width: 100%;
}

.yp-round {
  min-width: 52px;
  height: 44px;
  border-radius: 999px;
  padding: 0 11px;
}

.yp-play {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.25rem;
}

.yp-tool {
  min-height: 40px;
  font-size: 0.85rem;
}

.yp-tool-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 15px;
  border: 1px solid rgba(125,245,255,0.18);
  background: rgba(16, 22, 39, 0.90);
  color: #ddecff;
  font-size: 0.82rem;
  font-weight: 800;
}

.yp-tool-label input {
  width: 105px;
}

.yp-tool-label select {
  background: #07101f;
  border: 1px solid rgba(125,245,255,0.22);
  border-radius: 10px;
  color: #fff;
  padding: 6px;
  font-weight: 800;
}

.yp-sidebar {
  border-left: 1px solid var(--yp-line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yp-card {
  padding: 16px;
  border: 1px solid var(--yp-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24,31,54,0.78), rgba(10,14,26,0.78));
}

.yp-card h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.yp-card label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ddecff;
  margin: 14px 0 8px;
  font-size: 0.9rem;
}

.yp-projector-options {
  display: none;
}

.yp-projector-options p,
.yp-note {
  color: var(--yp-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 12px 0 0;
}

.yp-url-row {
  display: flex;
  gap: 8px;
}

.yp-url-row input {
  min-width: 0;
  flex: 1;
  color: white;
  background: rgba(5,8,18,0.9);
  border: 1px solid var(--yp-line);
  border-radius: 14px;
  padding: 10px;
  outline: none;
}

.yp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.yp-embed {
  background: transparent;
}

body.yp-embed .yp-app {
  min-height: auto;
  padding: 0;
  background: transparent;
}

@media (max-width: 980px) {
  .yp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .yp-layout {
    grid-template-columns: 1fr;
  }

  .yp-sidebar {
    border-left: 0;
    border-top: 1px solid var(--yp-line);
  }
}

@media (max-width: 640px) {
  .yp-app {
    padding: 10px;
  }

  .yp-shell {
    border-radius: 20px;
  }

  .yp-header,
  .yp-main,
  .yp-sidebar {
    padding: 12px;
  }

  .yp-header-actions,
  .yp-button,
  .yp-url-row {
    width: 100%;
  }

  .yp-url-row {
    flex-direction: column;
  }

  .yp-screen {
    border-radius: 18px;
  }

  .yp-progress-row {
    grid-template-columns: 48px 1fr 48px;
    font-size: 0.72rem;
  }

  .yp-tool-label {
    width: 100%;
    justify-content: space-between;
  }

  .yp-tool-label input {
    flex: 1;
  }

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