/* GTTV Mobile Responsive & Cross-browser CSS */

/* Cross-browser reset and fixes */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Video container responsive fixes */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container video,
.video-container img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    object-fit: contain !important;
}

/* Video.js responsive fixes */
.video-js,
.vjs-tech {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Live preview responsive */
.live-preview-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.live-preview-container img,
.live-preview-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button responsive */
.live-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 10;
}

.live-play-button:hover {
    -webkit-transform: translate(-50%, -50%) scale(1.1);
    -moz-transform: translate(-50%, -50%) scale(1.1);
    -ms-transform: translate(-50%, -50%) scale(1.1);
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(220, 53, 69, 1);
}

.live-play-button .play-text {
    font-size: 11px;
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
}

/* Timer overlay responsive */
.timer-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 20;
}

/* Live status badge responsive */
.live-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    z-index: 20;
}

/* Partner video thumbnails responsive */
.partner-video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.partner-video-thumb > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero section responsive */
.hero-section-modern {
    position: relative;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Buttons responsive */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #dc3545, #ff6b7d);
    color: white;
}

.btn-modern-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-modern:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.hero-buttons-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* Hero section mobile */
    .hero-section-modern {
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem;
    }
    
    .hero-buttons-inline {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
    }
    
    /* Video container mobile */
    .video-container {
        margin-bottom: 1rem;
    }
    
    /* Live preview mobile */
    .live-preview-container {
        height: 250px;
    }
    
    /* Play button mobile */
    .live-play-button {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .live-play-button .play-text {
        font-size: 10px;
    }
    
    /* Timer and status badges mobile */
    .timer-overlay,
    .live-status-badge {
        font-size: 12px;
        padding: 4px 8px;
        top: 10px;
    }
    
    .timer-overlay {
        right: 10px;
    }
    
    .live-status-badge {
        left: 10px;
    }
    
    /* Icons section mobile */
    .row.mb-5 .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    /* Partner section mobile */
    .partner-video-thumb {
        margin-bottom: 1rem;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-header h4 {
        font-size: 1.2rem;
    }
    
    /* Container padding mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .live-preview-container {
        height: 200px;
    }
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .live-play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .live-play-button .play-text {
        font-size: 8px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        min-width: 140px;
    }
    
    .fa-3x {
        font-size: 1.8rem !important;
    }
    
    h6 {
        font-size: 0.9rem !important;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-buttons-inline {
        justify-content: center;
        gap: 20px;
    }
    
    .btn-modern {
        min-width: 180px;
    }
}

/* Cross-browser video fixes */
video {
    -webkit-appearance: none;
    appearance: none;
}

video::-webkit-media-controls {
    -webkit-appearance: none;
}

video::-webkit-media-controls-start-playback-button {
    -webkit-appearance: none;
    display: none !important;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .video-container video {
        width: 100%;
        height: auto;
    }
}

/* Safari and Chrome background fixes */
@supports (-webkit-appearance: none) {
    .live-preview-container img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hero-section-modern {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Internet Explorer fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hero-buttons-inline {
        display: block;
        text-align: center;
    }
    
    .btn-modern {
        display: inline-block;
        margin: 5px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .live-play-button:hover {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    
    .btn-modern:hover {
        -webkit-transform: none;
        transform: none;
    }
    
    /* Increase touch targets */
    .live-play-button {
        width: 70px;
        height: 70px;
    }
    
    .btn-modern {
        padding: 14px 28px;
        min-height: 48px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .live-play-button {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section-modern {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -ms-transition: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -ms-animation: none !important;
        animation: none !important;
    }
}