/* Super Featured PIP (Picture-in-Picture) styles */

/* Desktop only - hide on mobile */
.super-featured-pip {
  display: none;
}

/* Desktop view: show as fixed PIP */
@media (min-width: 768px) {
  .super-featured-pip {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 370px;
    height: 200px;
    overflow: hidden;
    background: #000000;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .super-featured-pip-inner {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Custom scrollbar for PIP container */
  .super-featured-pip::-webkit-scrollbar {
    width: 6px;
  }

  .super-featured-pip::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
  }

  .super-featured-pip::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
  }

  .super-featured-pip::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
  }

  /* Ensure embedded content fits within PIP */
  .super-featured-pip iframe,
  .super-featured-pip video {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
  }
  
  /* Ensure inner content fills container */
  .super-featured-pip-inner > * {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* Close button */
  .super-featured-pip-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #586069;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .super-featured-pip-close:active {
    transform: scale(0.95);
  }
}

/* Very large desktop: same size as smaller screens */
@media (min-width: 1440px) {
  .super-featured-pip {
    width: 370px;
    height: 200px;
    right: 20px;
    bottom: 20px;
  }
}

/* Animation for future entrance/exit */
@keyframes pip-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.super-featured-pip.entering {
  animation: pip-enter 0.4s ease-out;
}