/* =============================================
   SHAKA PLAYER - STYLE (TV live)
   Plik: fanway-ai-tv-live.css

   PRZENIESIONE 2026-10-13 z osobnego snippetu WPCode ("shaka-player.css")
   do wtyczki fanway-ai — patrz nagłówek fanway-ai-tv-live-i18n.js po
   kontekst całej migracji. Treść identyczna jak w snippecie (był wklejony
   dwukrotnie, identycznie, w WPCode — tu tylko jedna kopia).
   ============================================= */

/* ===== PODSTAWOWE STYLE PLAYERA ===== */
.beeteam368-player-wrapper {
    position: relative !important;
    min-height: 400px;
    z-index: 1 !important;
}

.beeteam368-player-wrapper > *:not(#shaka-container):not(.shaka-protection-overlay):not(.shaka-error-overlay) {
    display: none !important;
    pointer-events: none !important;
}

#shaka-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

#shaka-container[data-shaka-player-container] {
    width: 100%;
    height: 100%;
}

video#shaka-video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

#quality-wrapper {
    display: none !important;
}

/* ===== UKRYCIE DOMYŚLNEGO SPINNERA SHAKA ===== */
.shaka-spinner-container {
    display: none !important;
}

/* ===== WŁASNY SPINNER ===== */
.shaka-custom-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    text-align: center;
    color: white;
}

.shaka-custom-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shaka-custom-loader .loader-text {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== PRZYCISKI UI ===== */
.shaka-resolution-button .material-icons-round { display: none !important; }
.shaka-resolution-button::before {
    content: "HD";
    font-weight: bold;
    font-size: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}
.shaka-resolution-button:hover::before { background: rgba(255, 255, 255, 0.4); }

.shaka-language-button .material-icons-round { display: none !important; }
.shaka-language-button::before {
    content: "AUDIO";
    font-weight: bold;
    font-size: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}
.shaka-language-button:hover::before { background: rgba(255, 255, 255, 0.4); }

/* ===== WATERMARK ===== */
.shaka-watermark {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 150;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.shaka-watermark img { max-width: 120px; max-height: 60px; }

#shaka-container:hover .shaka-watermark { opacity: 0.5; }

#shaka-container:fullscreen .shaka-watermark img,
#shaka-container:-webkit-full-screen .shaka-watermark img {
    max-width: 180px;
    max-height: 90px;
}

/* ===== OVERLAY BŁĘDU ===== */
.shaka-error-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.85);
}

.shaka-error-overlay .error-content {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.shaka-error-overlay .error-icon { font-size: 48px; margin-bottom: 15px; }
.shaka-error-overlay .error-title { color: #fff; margin-bottom: 10px; font-size: 20px; font-weight: bold; }
.shaka-error-overlay .error-message { color: #aaa; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }

.shaka-error-overlay .retry-button {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}
.shaka-error-overlay .retry-button:hover { background: #f40612; }

/* ===== OVERLAY OCHRONY ===== */
.shaka-protection-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.65);
}

.shaka-protection-overlay .membership-info-wrapper {
    text-align: center;
    padding: 32px 36px;
    background: rgba(15, 15, 20, 0.85);
    border-radius: 12px;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.shaka-protection-overlay .membership-heading {
    color: #fff;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.shaka-protection-overlay .membership-descriptions {
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.shaka-protection-overlay .plan-special {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    margin: 0 3px;
    font-weight: 700;
    font-size: 13px;
}

.shaka-protection-overlay .membership-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.shaka-protection-overlay .btnn-primary {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.15s;
    margin: 4px;
    box-shadow: 0 3px 12px rgba(46, 204, 113, 0.35);
}

.shaka-protection-overlay .btnn-primary:hover {
    background: #27ae60;
    transform: translateY(-1px);
    color: #fff;
}

.shaka-protection-overlay .btnn-secondary {
    display: inline-block;
    background: #2c2c3a;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    transition: background 0.25s, transform 0.15s;
    margin: 4px;
    border: 1px solid rgba(255,255,255,0.12);
}

.shaka-protection-overlay .btnn-secondary:hover {
    background: #3a3a4d;
    transform: translateY(-1px);
    color: #fff;
}

/* ===== SLIDER ===== */
.daffodil-item.active-item {
    border: 2px solid #e50914 !important;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5) !important;
}

.daffodil-item {
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* ===== WSKAZÓWKA ODCISZENIA ===== */
.shaka-unmute-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    pointer-events: none;
    transition: opacity 0.5s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.daffodil-item:hover { border-color: rgba(229, 9, 20, 0.5); }
