/* 
  Modern Loader - Glassmorphism & Fluid Animations
*/

.modern-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    border-top-color: #fff;
    animation-delay: -0.45s;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: #ff0000;
    animation-delay: -0.3s;
}

.loader-logo {
    width: 40px;
    height: 40px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-logo i {
    color: white;
    font-size: 18px;
}

.loader-text {
    margin-top: 25px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    animation: loader-fade 1.5s ease-in-out infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loader-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* TV Specific Adjustments */
.is-tv .modern-loader-overlay {
    background: #000000 !important; /* Total black for TV splash */
    backdrop-filter: none !important;
    z-index: 9999999 !important;
}

.is-tv .loader-text {
    font-size: 1.5rem !important; /* Larger text for TV */
    font-weight: bold !important;
}
