body { 
    margin: 0; 
    padding: 0; 
    background-color: #000; 
    color: #fff; 
    font-family: Arial, sans-serif; 
    height: 100vh; 
    width: 100vw; 
    overflow: hidden; 
    -webkit-user-select: none;
    user-select: none;
}
.ViostreamIframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
#videoContainer { 
    position: relative; 
    width: 100%; 
    height: 100%; 
}
video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    background: #000;
}
#error { 
    text-align: center; 
    padding: 20px; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: rgba(0,0,0,0.7); 
    border-radius: 5px; 
}

/* Video controls */
.video-controls { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); 
    padding: 8px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: opacity 0.3s; 
    opacity: 0; 
    z-index: 10;
}

.video-controls.visible {
    opacity: 1;
}

.control-left, .control-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-button { 
    background: rgba(0,0,0,0.5); 
    border: none; 
    color: white; 
    font-size: 18px; 
    cursor: pointer; 
    padding: 10px; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    touch-action: manipulation;
    transition: background 0.2s;
}

.control-button:hover {
    background: rgba(255,255,255,0.2);
}

.control-button:active {
    background: rgba(255,255,255,0.3);
}

/* Live Sync Button Styles */
.live-sync-button {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
    user-select: none;
}

.live-sync-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-0.5px);
}

.live-sync-button:active {
    transform: scale(0.97);
}

.live-sync-button .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Watching Live State (Red Glowing Dot) */
.live-sync-button.is-live {
    border-color: rgba(239, 68, 68, 0.2);
}

.live-sync-button.is-live:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.45);
}

.live-sync-button.is-live .live-dot {
    background-color: #ef4444; /* Neon Red */
    box-shadow: 0 0 8px #ef4444, 0 0 16px #ef4444;
    animation: live-glowing-dot 1.8s infinite;
}

/* Delayed State (Grayed out/Inactive live button) */
.live-sync-button.is-delayed {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4); /* Dimmed text */
}

.live-sync-button.is-delayed:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.live-sync-button.is-delayed .live-dot {
    background-color: rgba(255, 255, 255, 0.35); /* Dimmed dot */
    box-shadow: none;
    animation: none;
}

@keyframes live-glowing-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.45; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes live-delayed-dot {
    0% { background-color: #f59e0b; }
    100% { background-color: #d1d5db; }
}

.logo { 
    height: 28px;
    display: flex;
    align-items: center;
}

.logo img { 
    height: 100%; 
    max-width: 100px; 
    object-fit: contain;
}

/* Volume control */
.volume-container {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    border-radius: 6px;
    padding: 8px;
    display: none;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 120px;
}

.volume-slider-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.volume-slider-container.visible {
    display: block;
}

.volume-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #fff 0%, #fff var(--volume), #666 var(--volume), #666 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Quality menu */
.quality-menu {
    position: absolute;
    bottom: 65px;
    right: 15px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    z-index: 20;
    width: 320px;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 90px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #f3f4f6;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-menu.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.quality-menu::-webkit-scrollbar {
    width: 6px;
}
.quality-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.quality-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.quality-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quality-menu-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    user-select: none;
}

.quality-menu-title.back-btn:hover {
    color: #6366f1;
}

.quality-menu-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.quality-menu-item:last-child {
    margin-bottom: 0;
}

.quality-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.quality-menu-item.active {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    font-weight: 600;
}

.quality-menu-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-menu-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

/* Badges for resolutions */
.resolution-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-4k {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    color: #1a1a1a;
    border: 1px solid rgba(255, 226, 89, 0.5);
}

.badge-2k {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 198, 255, 0.5);
}

.badge-fhd {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 65, 108, 0.5);
}

.badge-hd {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 239, 125, 0.5);
}

.badge-sd {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Context menu for right-click */
.context-menu {
    position: absolute;
    background: rgba(0,0,0,0.9);
    border-radius: 6px;
    padding: 10px;
    z-index: 30;
    display: none;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
    font-size: 12px;
}

.context-menu.visible {
    display: block;
}

.context-menu-item {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
}

.context-menu-item:hover {
    background: rgba(255,255,255,0.2);
}

.context-menu-item.info {
    cursor: default;
    background: none;
    opacity: 0.8;
}

.context-menu-item.info:hover {
    background: none;
}

.context-menu-item i {
    width: 16px;
    text-align: center;
}

/* Fullscreen fixes */
:fullscreen, :-webkit-full-screen, :-moz-full-screen, :-ms-fullscreen { 
    width: 100vw; 
    height: 100vh; 
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    .control-button {
        font-size: 16px;
        width: 36px;
        height: 36px;
        padding: 8px;
    }
    .logo {
        height: 24px;
    }
    .quality-menu {
        width: 250px;
        max-height: calc(100% - 85px);
        padding: 10px;
    }
    .quality-menu-title {
        font-size: 12.5px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .quality-menu-item {
        padding: 8px 10px;
        font-size: 12px;
        margin-bottom: 3px;
    }
    .volume-slider-container {
        width: 100px;
    }
    .volume-slider {
        width: 100%;
    }
    .live-sync-button {
        padding: 5px 10px;
        font-size: 10px;
    }
    .live-sync-button .live-dot {
        width: 6px;
        height: 6px;
    }
    .context-menu {
        min-width: 180px;
        font-size: 11px;
    }
}

/* Center Overlay (Play/Pause & Loading) */
.center-controls-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-play-btn {
    width: 68px;
    height: 68px;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.center-play-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.center-play-btn i {
    font-size: 24px;
    color: #ffffff;
    margin-left: 4px; /* offset play icon alignment */
    transition: transform 0.3s ease;
}

.center-play-btn:hover i {
    transform: scale(1.05);
}

/* Beautiful loading spinner */
.premium-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #6366f1; /* Indigo color theme */
    border-radius: 50%;
    animation: spin-anim 1s linear infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

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

@media (max-height: 480px) {
    .quality-menu {
        max-height: calc(100% - 75px);
        width: 260px;
        padding: 6px 8px;
    }
    .quality-menu-title {
        font-size: 12px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    .quality-menu-item {
        padding: 6px 8px;
        font-size: 11px;
        margin-bottom: 2px;
    }
}

/* Ripple Seek Overlay styles */
.seek-ripple-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 12;
    background: rgba(255, 255, 255, 0.03);
    animation: fade-out 0.6s forwards;
}

.seek-ripple-overlay.left-side {
    left: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.15), transparent);
}

.seek-ripple-overlay.right-side {
    right: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: linear-gradient(to left, rgba(99, 102, 241, 0.15), transparent);
}

.seek-ripple-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.seek-ripple-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: pulse-circle 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.seek-ripple-icon {
    font-size: 20px;
    color: #6366f1;
}

.seek-ripple-text {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    animation: fade-in-up 0.4s ease forwards;
}

@keyframes fade-out {
    0% { opacity: 1; }
    80% { opacity: 0.9; }
    100% { opacity: 0; }
}

@keyframes pulse-circle {
    0% { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in-up {
    0% { transform: translateY(5px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Flag icon styling */
.menu-flag-icon {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.95;
}

/* Premium Glassmorphic Unmute Button */
.unmute-overlay-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(20, 20, 25, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 25;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 10px rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: unmute-pulse-glow 2s infinite alternate, fade-in-up-unmute 0.4s ease-out forwards;
}

.unmute-overlay-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25), 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px) scale(1.03);
}

.unmute-overlay-btn:active {
    transform: scale(0.97);
}

.unmute-overlay-btn .unmute-icon {
    font-size: 14px;
    color: #ef4444; /* Warning red-orange */
    animation: unmute-speaker-shake 1.5s infinite ease-in-out;
}

.unmute-overlay-btn .unmute-text {
    text-transform: uppercase;
}

@keyframes unmute-pulse-glow {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 5px rgba(255, 255, 255, 0.05);
    }
    100% {
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 12px rgba(99, 102, 241, 0.25);
    }
}

@keyframes fade-in-up-unmute {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes unmute-speaker-shake {
    0% { transform: scale(1); }
    10% { transform: scale(1.1) rotate(-6deg); }
    20% { transform: scale(1.1) rotate(6deg); }
    30% { transform: scale(1.1) rotate(-6deg); }
    40% { transform: scale(1.1) rotate(6deg); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .unmute-overlay-btn {
        top: 14px;
        left: 14px;
        padding: 8px 14px;
        font-size: 10px;
        gap: 6px;
    }
    .unmute-overlay-btn .unmute-icon {
        font-size: 12px;
    }
}

/* Stats for Nerds Panel */
.stats-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.9) 0%, rgba(25, 25, 35, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 310px;
    max-width: calc(100% - 40px);
    z-index: 25;
    padding: 14px 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    animation: fade-in-up-unmute 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stats-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 12.5px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.stats-panel-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    transition: all 0.25s;
}

.stats-panel-close:hover {
    color: #ef4444; /* Red hover close */
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.stats-panel-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.5;
}

.stats-label {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.stats-label i {
    width: 16px;
    text-align: center;
}

.stats-val {
    color: #818cf8; /* Light Indigo color value */
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

@media (max-width: 768px) {
    .stats-panel {
        top: 14px;
        right: 14px;
        width: 270px;
        padding: 10px 12px;
        font-size: 10px;
    }
    .stats-panel-header {
        font-size: 11px;
        padding-bottom: 6px;
        margin-bottom: 8px;
    }
    .stats-panel-body {
        gap: 6px;
    }
}

/* Custom Subtitles (Shaka Text Container) Styling */
.shaka-text-container {
    bottom: 30px !important; /* Move up slightly to avoid bottom edge */
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9 !important; /* Below custom controls but above video */
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important; /* Allow clicking through subtitles overlay to player controls */
}

.shaka-text-container div {
    background: transparent !important;
    background-color: transparent !important;
}

/* Hide native browser cues to prevent double captions or native black boxes */
video::cue {
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
}

/* Shift subtitles up when custom controls are visible */
.controls-visible .shaka-text-container {
    bottom: 85px !important;
}

/* Make subtitles text beautiful and readable */
.shaka-text-container span {
    background-color: rgba(15, 15, 20, 0.85) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 2px 8px !important; /* Elegant inline padding */
    border-radius: 4px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Force intermediate container spans to be completely transparent with no border or shadow */
.shaka-text-container span:has(span),
.shaka-text-container span:has(div) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .shaka-text-container {
        bottom: 25px !important;
    }
    .controls-visible .shaka-text-container {
        bottom: 75px !important;
    }
    .shaka-text-container span {
        font-size: 13px !important;
        padding: 1px 5px !important;
    }
}
