.hero-component {
    margin-top: 85px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 80%;
    background-color: #000;
    overflow: hidden;
    border: 3px solid #a93226;
    border-radius: 8px;
    contain: layout style paint;
    transform: translateZ(0);
    aspect-ratio: 16/9;
    max-height: 90vh;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    background: #000;
}

.hero-intersection-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #c0392b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hero-cta-button span {
    color: white !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: inherit;
    font-weight: inherit;
    z-index: 10;
    position: relative;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 40px;
    text-align: center;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #c0392b;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 6;
}

.error-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.error-content i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
}

.error-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-content p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.4;
}

.hero-retry-btn {
    background: #c0392b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

@media (max-width: 767px) {
    .hero-component {
        width: 95%;
        margin: 5px auto 0;
        border-width: 2px;
        border-radius: 6px;
        max-height: 50vh;
        min-height: 200px;
        aspect-ratio: 16/9;
        margin-top: 100px;
    }
    
    .hero-cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        gap: 8px;
    }
    
    .hero-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .hero-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-control-btn i {
        font-size: 1rem;
    }
    
    .error-content {
        padding: 15px;
    }
    
    .error-content i {
        font-size: 2rem;
    }
    
    .error-content h3 {
        font-size: 1.1rem;
    }
    
    .error-content p {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-component {
        width: 90%;
        max-height: 60vh;
        aspect-ratio: 16/9;
    }
    
    .hero-cta-button {
        padding: 14px 28px;
        font-size: 1.05rem;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .hero-component {
        max-height: 40vh;
        min-height: 180px;
        aspect-ratio: 16/9;
    }
    
    .hero-cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hero-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .hero-control-btn {
        width: 36px;
        height: 36px;
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    .hero-component {
        max-height: 70vh;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 767px) {
    .hero-controls {
        opacity: 1;
    }
}

@media (min-width: 768px) {
   .hero-cta-button {
       transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
   }
   
   .hero-component:hover .hero-cta-button,
   .hero-content:hover .hero-cta-button {
       opacity: 1;
       pointer-events: auto;
   }
   
   .hero-control-btn {
       transition: transform 0.2s ease, background-color 0.2s ease;
   }
   
   .hero-control-btn:hover {
       transform: scale(1.1);
       background: rgba(192, 57, 43, 0.8);
   }
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
    
    .hero-cta-button,
    .hero-control-btn,
    .hero-retry-btn {
        transition: none;
    }
    
    .hero-video {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .hero-component {
        border-color: #fff;
        border-width: 3px;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .hero-cta-button {
        border: 2px solid #fff;
    }
}