/* Broadcast Page Custom Styles */

/* Hero Section Enhancements */
.page-header.broadcast-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.2) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: patternShift 20s linear infinite;
}

/* Broadcast Gallery Section */
.broadcast-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.8) 0%, rgba(255,255,255,0.9) 100%);
    position: relative;
    overflow: hidden;
}

.broadcast-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(67, 166, 181, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(32, 41, 110, 0.06) 0%, transparent 50%);
    animation: backgroundFloat 30s ease-in-out infinite;
}

/* Video Grid Layout */
.broadcast-video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card-wrapper {
    flex: 0 0 calc(33.333% - 16.667px);
    max-width: calc(33.333% - 16.667px);
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Video Card Styles */
.video-card {
    background: linear-gradient(135deg, rgba(20,20,30,0.98), rgba(30,30,50,0.95));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 60px rgba(67, 166, 181, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(67, 166, 181, 0.2);
    position: relative;
    height: 100%;
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    will-change: transform, box-shadow;
}



/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10,10,20,0.9) 0%, rgba(20,20,40,0.8) 100%);
    border-radius: 20px 20px 0 0;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.4),
        0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(67, 166, 181, 0.3);
}

.broadcast-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.7) contrast(1.2) saturate(0.8) blur(0.5px);
    opacity: 0.8;
}

.broadcast-video:hover {
    transform: scale(1.1);
    filter: brightness(0.9) contrast(1.3) saturate(1.0) blur(0px);
    opacity: 1;
}

.video-card:hover .video-container {
    box-shadow:
        inset 0 0 60px rgba(0,0,0,0.5),
        0 25px 70px rgba(0,0,0,0.3);
    transform: translateY(-8px);
    border-color: rgba(67, 166, 181, 0.5);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(10,10,20,0.88) 0%,
        rgba(20,20,40,0.78) 30%,
        rgba(30,30,60,0.88) 70%,
        rgba(40,40,80,0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(67, 166, 181, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(32, 41, 110, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    animation: broadcastScan 8s ease-in-out infinite;
}

.video-card:hover .video-overlay {
    opacity: 0.75;
    background: linear-gradient(135deg,
        rgba(10,10,20,0.75) 0%,
        rgba(20,20,40,0.65) 30%,
        rgba(30,30,60,0.75) 70%,
        rgba(40,40,80,0.7) 100%);
}

@keyframes broadcastScan {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(0.9) rotate(-1deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.05) rotate(0.5deg);
        opacity: 0.5;
    }
}

/* Play Button */
.play-button {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg,
        rgba(67, 166, 181, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(67, 166, 181, 0.95) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 45px rgba(0,0,0,0.5),
        inset 0 3px 15px rgba(255,255,255,0.4),
        0 0 30px rgba(67, 166, 181, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
    border: 5px solid rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: broadcastPulse 3s ease-in-out infinite;
    z-index: 4;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 166, 181, 0.4), transparent);
    transition: left 0.6s ease;
    border-radius: 50%;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(67, 166, 181, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
}

.play-button i {
    color: var(--primary-color);
    font-size: 30px;
    margin-left: 5px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    position: relative;
    z-index: 2;
}

.video-card:hover .play-button {
    transform: scale(1.2) rotate(10deg);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.5),
        inset 0 3px 15px rgba(255,255,255,0.4);
}

.video-card:hover .play-button::before {
    left: 100%;
}

.video-card:hover .play-button::after {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

.video-card:hover .play-button i {
    transform: scale(1.15) rotate(-10deg);
    color: var(--accent-color);
    filter: drop-shadow(0 4px 8px rgba(67, 166, 181, 0.5));
}

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

@keyframes broadcastPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 15px 45px rgba(0,0,0,0.5),
            inset 0 3px 15px rgba(255,255,255,0.4),
            0 0 30px rgba(67, 166, 181, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 20px 55px rgba(0,0,0,0.6),
            inset 0 3px 15px rgba(255,255,255,0.5),
            0 0 40px rgba(67, 166, 181, 0.4);
    }
}

/* Video Info */
.video-info {
    padding: 40px 35px 35px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg,
        rgba(15,15,25,0.98) 0%,
        rgba(25,25,45,0.96) 50%,
        rgba(35,35,55,0.98) 100%);
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
    border: 2px solid rgba(67, 166, 181, 0.2);
    border-top: none;
    box-shadow:
        inset 0 3px 15px rgba(0,0,0,0.3),
        0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-info {
    background: linear-gradient(135deg,
        rgba(20,20,35,0.99) 0%,
        rgba(35,35,55,0.98) 50%,
        rgba(45,45,65,0.99) 100%);
    box-shadow:
        inset 0 5px 20px rgba(0,0,0,0.4),
        0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(5px);
    border-color: rgba(67, 166, 181, 0.3);
}

.video-info h4 {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--default-font);
    line-height: 1.3;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-info h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(67, 166, 181, 0.8));
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-card:hover .video-info h4::after {
    width: 70px;
}

.video-info p {
    margin: 0 0 25px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-family: var(--default-font);
    font-size: 1.05rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Video Meta */
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 3px solid rgba(67, 166, 181, 0.2);
    margin-top: 25px;
    position: relative;
}

.video-meta::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-family: var(--default-font);
    background: linear-gradient(135deg, rgba(67, 166, 181, 0.1), rgba(32, 41, 110, 0.1));
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid rgba(67, 166, 181, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-meta span:hover {
    background: linear-gradient(135deg, rgba(67, 166, 181, 0.15), rgba(32, 41, 110, 0.15));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    border-color: rgba(67, 166, 181, 0.3);
}

.video-meta i {
    color: var(--accent-color);
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Call to Action Section */
.broadcast-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.broadcast-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: backgroundFloat 35s ease-in-out infinite;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--default-font);
    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-family: var(--default-font);
    line-height: 1.6;
    max-width: 600px;
}

/* CTA Features */
.cta-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 24px;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: var(--default-font);
    font-size: 1rem;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.95) 100%);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(32, 41, 110, 0.1), transparent);
    transition: left 0.5s;
}

.cta-buttons .btn-primary:hover::before {
    left: 100%;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes patternShift {
    0%, 100% {
        background-position: 0 0;
    }
    50% {
        background-position: 50px 50px;
    }
}

/* Scroll-triggered animations */
[data-scroll-animation] {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-scroll-animation="fadeInUp"] {
    animation-name: fadeInUp;
    animation-delay: 0.8s;
}

[data-scroll-delay="200"] { animation-delay: 0.4s; }
[data-scroll-delay="400"] { animation-delay: 0.6s; }
[data-scroll-delay="600"] { animation-delay: 0.8s; }
[data-scroll-delay="800"] { animation-delay: 1.0s; }
[data-scroll-delay="1000"] { animation-delay: 1.2s; }
[data-scroll-delay="1200"] { animation-delay: 1.4s; }
[data-scroll-delay="1400"] { animation-delay: 1.6s; }
[data-scroll-delay="1600"] { animation-delay: 1.8s; }
[data-scroll-delay="1800"] { animation-delay: 2.0s; }
[data-scroll-delay="2000"] { animation-delay: 2.2s; }
[data-scroll-delay="2200"] { animation-delay: 2.4s; }
[data-scroll-delay="2400"] { animation-delay: 2.6s; }
[data-scroll-delay="2600"] { animation-delay: 2.8s; }
[data-scroll-delay="2800"] { animation-delay: 3.0s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .video-card-wrapper {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
        min-width: 320px;
    }
}

@media (max-width: 992px) {
    .video-card-wrapper {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
        min-width: 300px;
    }

    .broadcast-gallery-section {
        padding: 60px 0;
    }

    .video-container {
        height: 260px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h4 {
        font-size: 1.2rem;
    }

    .broadcast-cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-features {
        gap: 20px;
    }

    .cta-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .broadcast-video-grid {
        gap: 25px;
        justify-content: center;
    }

    .video-card-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 280px;
    }

    .video-container {
        height: 280px;
    }

    .play-button {
        width: 80px;
        height: 80px;
    }

    .play-button i {
        font-size: 28px;
    }

    .video-info {
        padding: 30px 25px;
    }

    .video-info h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .video-info h4::after {
        width: 45px;
        height: 3px;
    }

    .video-card:hover .video-info h4::after {
        width: 60px;
    }

    .video-info p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .video-meta {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        padding-top: 20px;
        margin-top: 20px;
    }

    .video-meta span {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }

    .video-quality {
        top: 20px;
        right: 20px;
        padding: 7px 13px;
        font-size: 0.75rem;
    }

    .video-duration {
        bottom: 20px;
        right: 20px;
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-item {
        padding: 12px 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .broadcast-video-grid {
        gap: 35px;
        justify-content: center;
    }

    .video-card-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 280px;
    }

    .video-container {
        height: 260px;
    }

    .play-button {
        width: 75px;
        height: 75px;
    }

    .play-button i {
        font-size: 25px;
    }

    .video-card:hover .play-button {
        transform: scale(1.15) rotate(10deg);
    }

    .video-info {
        padding: 28px 22px;
    }

    .video-info h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .video-info h4::after {
        width: 45px;
        height: 3px;
    }

    .video-card:hover .video-info h4::after {
        width: 60px;
    }

    .video-info p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .video-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding-top: 22px;
        margin-top: 22px;
    }

    .video-meta span {
        padding: 12px 18px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .video-quality {
        top: 18px;
        right: 18px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .video-duration {
        bottom: 18px;
        right: 18px;
        padding: 8px 13px;
        font-size: 0.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Video Controls Enhancement */
.broadcast-video::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(32, 41, 110, 0.9));
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.broadcast-video::-webkit-media-controls-current-time-display,
.broadcast-video::-webkit-media-controls-time-remaining-display {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.broadcast-video::-webkit-media-controls-play-button,
.broadcast-video::-webkit-media-controls-pause-button,
.broadcast-video::-webkit-media-controls-fullscreen-button {
    filter: invert(1) brightness(1.3) drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    transition: all 0.2s ease;
}

.broadcast-video::-webkit-media-controls-play-button:hover,
.broadcast-video::-webkit-media-controls-pause-button:hover,
.broadcast-video::-webkit-media-controls-fullscreen-button:hover {
    filter: invert(1) brightness(1.5) drop-shadow(0 2px 4px rgba(0,0,0,0.7));
    transform: scale(1.1);
}

.broadcast-video::-webkit-media-controls-timeline {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
    border-radius: 15px;
    height: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.broadcast-video::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--accent-color), rgba(67, 166, 181, 0.9));
    border-radius: 50%;
    width: 18px;
    height: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.broadcast-video::-webkit-media-controls-timeline::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.broadcast-video::-webkit-media-controls-volume-slider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
    border-radius: 15px;
    height: 5px;
}

.broadcast-video::-webkit-media-controls-volume-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--accent-color), rgba(67, 166, 181, 0.9));
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.broadcast-video::-webkit-media-controls-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Custom Video Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.video-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.video-loading span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Video Thumbnail Enhancement */
.video-card {
    position: relative;
    overflow: visible;
}

.video-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(67, 166, 181, 0.1), rgba(32, 41, 110, 0.1));
    border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.video-card:hover::before {
    opacity: 1;
    transform: scale(1.02);
}

/* Video Quality Badge */
.video-quality {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(67, 166, 181, 0.9) 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.3),
        inset 0 1px 5px rgba(255,255,255,0.2);
    z-index: 5;
    opacity: 0;
    transform: translateY(-15px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.video-card:hover .video-quality {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.4),
        inset 0 2px 8px rgba(255,255,255,0.3);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(32, 41, 110, 0.8));
    backdrop-filter: blur(15px);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.4),
        inset 0 1px 5px rgba(255,255,255,0.1);
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-family: var(--default-font);
}

.video-card:hover .video-duration {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0,0,0,0.5),
        inset 0 2px 8px rgba(255,255,255,0.2);
}

/* Loading State */
.video-card.loading {
    position: relative;
}

.video-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(67, 166, 181, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 3;
}

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

/* Focus States for Accessibility */
.video-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.broadcast-video:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .play-button {
        background: white;
        border: 2px solid black;
    }

    .play-button i {
        color: black;
    }
}

/* Performance Optimizations */
.video-card,
.video-container,
.broadcast-video,
.play-button,
.video-overlay,
.video-info {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* GPU Acceleration for animations */
.video-card,
.play-button,
.video-meta span,
.video-quality,
.video-duration {
    transform-style: preserve-3d;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .video-card,
    .feature-item,
    .play-button,
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary,
    .video-container,
    .broadcast-video,
    .video-overlay,
    .video-info,
    .video-meta span,
    .video-quality,
    .video-duration {
        animation: none;
        transition: none;
        transform: none !important;
    }

    .broadcast-gallery-section::before,
    .broadcast-cta-section::before,
    .hero-bg-pattern,
    .play-button::after {
        animation: none;
    }
}

/* Enhanced focus states for better accessibility */
.video-card:focus-within {
    outline: 3px solid var(--accent-color);
    outline-offset: 8px;
    border-color: var(--accent-color);
}

.play-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .video-card {
        background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(45,45,45,0.9));
        border-color: rgba(67, 166, 181, 0.2);
    }

    .video-info {
        background: linear-gradient(135deg, rgba(30,30,30,0.98), rgba(45,45,45,0.95));
    }

    .video-meta span {
        background: rgba(67, 166, 181, 0.15);
        color: rgba(255,255,255,0.9);
    }
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

.video-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20,20,30,0.98), rgba(30,30,50,0.95));
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    border: 2px solid rgba(67, 166, 181, 0.3);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: modalSlideIn 0.4s ease-out;
}

.video-modal-header {
    padding: 20px 30px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.video-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: white;
    background: rgba(67, 166, 181, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-modal-body {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    background: #000;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .video-modal-header {
        padding: 15px 20px 0;
    }

    .video-modal-body {
        padding: 15px 20px 20px;
    }

    .modal-video-player {
        max-height: 60vh;
    }

    .video-modal-close {
        font-size: 30px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .video-modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 15px;
    }

    .video-modal-header {
        padding: 10px 15px 0;
    }

    .video-modal-body {
        padding: 10px 15px 15px;
    }

    .modal-video-player {
        max-height: 50vh;
        border-radius: 10px;
    }
}
