/** * Yatra Video Player Module Styles * Reusable video player styling * * @package Yatra * @version 1.0.0 */ /* Video Player Modal */ .yatra-video-player-modal { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 99999 !important; align-items: center !important; justify-content: center !important; animation: yatraVideoFadeIn 0.3s ease; } .yatra-video-player-modal[style*="display: flex"] { display: flex !important; } @keyframes yatraVideoFadeIn { from { opacity: 0; } to { opacity: 1; } } .yatra-video-player-overlay { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background: rgba(0, 0, 0, 0.95) !important; cursor: pointer !important; z-index: 1 !important; } .yatra-video-player-content { position: relative !important; width: 90% !important; max-width: 1200px !important; height: 80vh !important; max-height: 675px !important; /* 16:9 of 1200px width */ z-index: 2 !important; } .yatra-video-player-close { position: absolute !important; top: 16px !important; right: 16px !important; background: rgba(255, 255, 255, 0.2) !important; border: 2px solid rgba(255, 255, 255, 0.4) !important; color: white !important; width: 44px !important; height: 44px !important; border-radius: 50% !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all 0.3s ease; z-index: 100 !important; padding:0; } .yatra-video-player-close:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); transform: rotate(90deg) scale(1.1); } .yatra-video-player-close svg { width: 24px; height: 24px; } .yatra-video-player-wrapper { width: 100% !important; height: 100% !important; min-height: 400px !important; background: #000 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative !important; display: block !important; } .yatra-video-player-wrapper iframe { width: 100% !important; height: 100% !important; border: none !important; display: block !important; } /* Responsive Design */ @media (max-width: 1024px) { .yatra-video-player-content { width: 95%; } } @media (max-width: 768px) { .yatra-video-player-content { width: 95%; max-width: none; } .yatra-video-player-close { top: -45px; width: 40px; height: 40px; } .yatra-video-player-close svg { width: 20px; height: 20px; } } @media (max-width: 480px) { .yatra-video-player-content { width: 100%; } .yatra-video-player-wrapper { border-radius: 0; } .yatra-video-player-close { top: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); } } /* Loading State */ .yatra-video-player-wrapper.loading::before { content: ''; position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: yatraVideoSpin 0.8s linear infinite; } @keyframes yatraVideoSpin { to { transform: rotate(360deg); } }