/* --- FULLSCREEN SLIDESHOW SPECIFIC ADDITIONS --- */

/* FS bottom counter bar: category title + slide position */
.ss-fs-counter {
    display: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-overlay.fs-mode .ss-fs-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    right: 6%;
    z-index: 30002;
    opacity: 1;
    pointer-events: none;
}

.ss-fs-counter-label {
    font-family: 'Cinzel Decorative', 'Abril Fatface', cursive;
    font-size: 13pt;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.ss-fs-counter-position {
    font-family: 'Cinzel Decorative', 'Abril Fatface', cursive;
    font-size: 13pt;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
    flex-shrink: 0;
    filter: brightness(1.3);
}

.ss-fs-counter-sep {
    color: rgba(255,255,255,0.4);
    font-size: 11pt;
    flex-shrink: 0;
}

.ss-fs-trailer-btn {
    display: none; /* Hidden by default (non-FS mode) */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000000 !important;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto; /* Re-enable pointer events since parent info-bar is none */
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    z-index: 30003;
    position: relative;
    overflow: hidden;
}

/* Glassy highlight matching other round balls */
.ss-fs-trailer-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 30% 0%,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.4) 35%,
      rgba(255,255,255,0.0) 65%
    );
    opacity: 0.9;
    pointer-events: none;
}

.ss-fs-trailer-btn:hover {
    transform: scale(1.1);
    background-color: var(--lighter-primary-color);
}

.ss-fs-trailer-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* Positioning in fullscreen mode: fixed to screen, to the right of the info bar */
.slideshow-overlay.fs-mode .ss-fs-trailer-btn {
    display: flex;
    position: fixed;
    bottom: 28px;
    left: calc(6% + 40% + 16px);
    transform: none;
    z-index: 30005;
    pointer-events: auto;
}

/* User requirement: Only show if trailer available */
.ss-fs-trailer-btn.inactive {
    display: none !important;
}

/* Small oval "trailer" badge on FS trailer button when available */
.slideshow-overlay.fs-mode .ss-fs-trailer-btn:not(.inactive)::after {
  content: "trailer";
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--primary-color);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 768px) {
    .ss-fs-trailer-btn {
        width: 48px;
        height: 48px;
    }
    .ss-fs-trailer-btn svg {
        width: 24px;
        height: 24px;
    }
}