/* Rotate device hint - show only on mobile portrait */
@media only screen and (max-width: 767px) and (orientation: portrait) {
  .rotate-hint {
    display: flex !important;
  }
}

/* ════════════════════════════════
     BRAND OVERLAY CARD
  ════════════════════════════════ */

/* Pill → expanded card transition */
.brand-card {
  animation: card-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom right;
}
@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.brand-card.removing {
  animation: card-slide-out 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes card-slide-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

/* Paused glow */
@keyframes paused-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 0, 2, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 0, 2, 0.18);
  }
}
.card-paused-glow {
  animation: paused-glow 2s ease-in-out infinite;
}

/* Progress drain bar */
.drain-bar {
  transition: width 0.6s linear;
}

/* ════════════════════════════════
     TIMELINE BRAND DOT
  ════════════════════════════════ */
.brand-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c90002;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}
.brand-dot:hover {
  transform: translate(-50%, -50%) scale(1.6);
}
.brand-dot-tooltip {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-family: monospace;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.brand-dot:hover .brand-dot-tooltip {
  opacity: 1;
}

/* ════════════════════════════════
     QR MODAL
  ════════════════════════════════ */
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.qr-modal-box {
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.qr-modal {
  position: fixed;
  inset: 0;
  /* Low opacity backdrop */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-box {
  /* Subtle entrance animation */
  animation: dossier-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dossier-pop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ════════════════════════════════
     PLAYER
  ════════════════════════════════ */
.player-controls-bar {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.player-controls-bar.force-show {
  opacity: 1;
}

/* Scrub thumb */
.scrub-thumb {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.progress-track:hover .scrub-thumb {
  opacity: 1;
}

/* ════════════════════════════════
     SUGGESTED CARDS
  ════════════════════════════════ */
.sug-img {
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.sug-card:hover .sug-img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 0, 2, 0.35);
  border-radius: 9999px;
}
/* ════════════════════════════════
     SPONSORED CARDS
  ════════════════════════════════ */
@keyframes sp-enter {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.sponsored-card {
  animation: sp-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scrollable card columns — slim custom scrollbar */
.brand-cards-col,
.sponsored-col {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.brand-cards-col::-webkit-scrollbar,
.sponsored-col::-webkit-scrollbar {
  width: 3px;
}
.brand-cards-col::-webkit-scrollbar-thumb,
.sponsored-col::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

/* Volume slider styling */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hide scrollbar for horizontal product showcase */
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CSS-based fullscreen for iOS Safari fallback */
.player-wrap.css-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9998 !important;
  background: #000 !important;
}

.player-wrap.css-fullscreen > div {
  max-height: 100vh !important;
  padding-bottom: 0 !important;
  height: 100vh !important;
}

/* Fullscreen mode styles (native fullscreen API) */
.player-wrap:fullscreen,
.player-wrap:-webkit-full-screen,
.player-wrap:-moz-full-screen,
.player-wrap:-ms-fullscreen {
  background: #000;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

/* Remove aspect ratio padding in fullscreen */
.player-wrap:fullscreen > div,
.player-wrap:-webkit-full-screen > div,
.player-wrap:-moz-full-screen > div,
.player-wrap:-ms-fullscreen > div {
  padding-bottom: 0 !important;
  height: 100% !important;
}

/* Make video fill properly in fullscreen */
.player-wrap:fullscreen video,
.player-wrap:-webkit-full-screen video,
.player-wrap:-moz-full-screen video,
.player-wrap:-ms-fullscreen video {
  object-fit: contain;
}

/* Ensure controls are visible in fullscreen */
.player-wrap:fullscreen .player-controls-bar,
.player-wrap:-webkit-full-screen .player-controls-bar,
.player-wrap:-moz-full-screen .player-controls-bar,
.player-wrap:-ms-fullscreen .player-controls-bar {
  z-index: 2147483647 !important;
  opacity: 1 !important;
}

/* Ensure progress track is visible and clickable in fullscreen */
.player-wrap:fullscreen .progress-track,
.player-wrap:-webkit-full-screen .progress-track,
.player-wrap:-moz-full-screen .progress-track,
.player-wrap:-ms-fullscreen .progress-track {
  z-index: 2147483647 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ensure brand dots are visible in fullscreen */
.player-wrap:fullscreen .brand-dot,
.player-wrap:-webkit-full-screen .brand-dot,
.player-wrap:-moz-full-screen .brand-dot,
.player-wrap:-ms-fullscreen .brand-dot {
  z-index: 2147483647 !important;
  opacity: 1 !important;
}

/* Force show controls in fullscreen */
.player-wrap:fullscreen .player-controls-bar.force-show,
.player-wrap:-webkit-full-screen .player-controls-bar.force-show,
.player-wrap:-moz-full-screen .player-controls-bar.force-show,
.player-wrap:-ms-fullscreen .player-controls-bar.force-show {
  opacity: 1 !important;
}

/* ════════════════════════════════
     BRAND OVERLAY CARD
  ════════════════════════════════ */

/* Pill → expanded card transition */
.brand-card {
  animation: card-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom right;
}
@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.brand-card.removing {
  animation: card-slide-out 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes card-slide-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

/* Paused glow */
@keyframes paused-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 0, 2, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 0, 2, 0.18);
  }
}
.card-paused-glow {
  animation: paused-glow 2s ease-in-out infinite;
}

/* Progress drain bar */
.drain-bar {
  transition: width 0.6s linear;
}

/* ════════════════════════════════
     TIMELINE BRAND DOT
  ════════════════════════════════ */
.brand-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c90002;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}
.brand-dot:hover {
  transform: translate(-50%, -50%) scale(1.6);
}
.brand-dot-tooltip {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-family: monospace;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.brand-dot:hover .brand-dot-tooltip {
  opacity: 1;
}

/* ════════════════════════════════
     QR MODAL
  ════════════════════════════════ */
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.qr-modal-box {
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.qr-modal {
  position: fixed;
  inset: 0;
  /* Low opacity backdrop */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-box {
  /* Subtle entrance animation */
  animation: dossier-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dossier-pop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ════════════════════════════════
     PLAYER
  ════════════════════════════════ */
.player-controls-bar {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.player-controls-bar.force-show {
  opacity: 1;
}

/* Scrub thumb */
.scrub-thumb {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.progress-track:hover .scrub-thumb {
  opacity: 1;
}

/* ════════════════════════════════
     SUGGESTED CARDS
  ════════════════════════════════ */
.sug-img {
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.sug-card:hover .sug-img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 0, 2, 0.35);
  border-radius: 9999px;
}
/* ════════════════════════════════
     SPONSORED CARDS
  ════════════════════════════════ */
@keyframes sp-enter {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.sponsored-card {
  animation: sp-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scrollable card columns — slim custom scrollbar */
.brand-cards-col,
.sponsored-col {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.brand-cards-col::-webkit-scrollbar,
.sponsored-col::-webkit-scrollbar {
  width: 3px;
}
.brand-cards-col::-webkit-scrollbar-thumb,
.sponsored-col::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
