﻿/**
 * SerialIrany Modern Online Player Design System
 * Theme: Midnight Glassmorphism & High-end Streaming
 */

:root {
    --si-bg-base: #0b0f19;
    --si-card-bg: rgba(18, 24, 38, 0.7);
    --si-card-border: rgba(255, 255, 255, 0.08);
    --si-primary: #3b82f6;
    --si-primary-hover: #2563eb;
    --si-text-main: #f1f5f9;
    --si-text-sub: #94a3b8;
    --si-text-dim: #64748b;
    --si-radius: 18px;
    --si-font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --plyr-color-main: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.si-onlineplay-body {
    background-color: var(--si-bg-base);
    color: var(--si-text-main);
    font-family: var(--si-font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow-x: hidden;
    transition: background-image 0.5s ease-in-out;
}

/* Ambient Glow Orbs */
.si-ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.si-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    top: -100px;
    right: -100px;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: #6366f1;
    bottom: -150px;
    left: -150px;
}

/* Header Navbar */
.si-op-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--si-card-border);
}
.si-op-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.si-op-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.si-op-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.si-op-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.si-op-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--si-text-sub);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.si-op-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.si-op-menu .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.si-op-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.si-op-back-btn:hover {
    background: rgba(59, 130, 246, 0.85);
    border-color: rgba(59, 130, 246, 0.9);
    transform: translateX(3px);
}

/* Main Container */
.si-op-main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 26px 20px 40px 20px;
}
.si-op-container {
    max-width: 1060px;
    margin: 0 auto;
}

/* Title Bar */
.si-op-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 22px;
    background: rgba(20, 26, 44, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--si-card-border);
    border-radius: var(--si-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.si-op-title-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.si-op-live-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.9));
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}
.si-op-live-badge i {
    font-size: 7px;
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.si-op-heading {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Quality Switcher */
.si-op-quality-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.si-quality-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--si-text-sub);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.si-quality-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.si-q-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--si-text-sub);
    padding: 5px 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.si-q-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}
.si-q-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

/* Video Player Card */
.si-op-player-card {
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--si-card-border);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75);
    margin-bottom: 20px;
    position: relative;
}
.si-op-video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

/* Plyr Customizations for Ultra-Modern Look */
.plyr {
    border-radius: 22px;
    overflow: hidden;
    font-family: var(--si-font) !important;
}
.plyr--video .plyr__controls {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.95) 100%) !important;
    padding: 14px 18px !important;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

/* Custom Brand Play Button Overlaid */
.plyr__control--overlaid {
    background: rgba(20, 26, 44, 0.75) url('https://serialirany.com/wp-content/uploads/2024/01/fav-icon.png') no-repeat center center !important;
    background-size: 42px 42px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 24px rgba(59, 130, 246, 0.45) !important;
    width: 78px !important;
    height: 78px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.plyr__control--overlaid svg {
    display: none !important;
}
.plyr__control--overlaid:hover {
    transform: translate(-50%, -50%) scale(1.12) !important;
    border-color: rgba(59, 130, 246, 0.8) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.7) !important;
}

.plyr__menu__container {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

/* Info Bar */
.si-op-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 24px;
}
.si-op-info-item {
    font-size: 13px;
    color: var(--si-text-sub);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
.si-op-footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--si-text-dim);
    font-size: 12.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 26, 0.6);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .si-op-menu {
        display: none;
    }
    .si-op-heading {
        font-size: 15.5px;
    }
    .si-op-title-bar {
        padding: 12px 16px;
    }
    .si-op-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .plyr__control--overlaid {
        width: 62px !important;
        height: 62px !important;
        background-size: 34px 34px !important;
    }
}