/* Videos/Media Page Styles */

.videos-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 40px 20px 80px;
}

.videos-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.videos-header {
    text-align: center;
    margin-bottom: 40px;
}

.videos-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.videos-subtitle {
    font-size: 18px;
    color: #888;
    margin: 0;
}

/* Filter Tabs */
.videos-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 30px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #252525;
    border-color: #444;
    color: #fff;
}

.filter-tab.active {
    background: #c41e3a;
    border-color: #c41e3a;
    color: #fff;
}

.filter-icon {
    font-size: 18px;
}

/* Featured Video */
.featured-video {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid #222;
}

.featured-video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.featured-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-video-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 15px 0;
    line-height: 1.3;
}

.featured-description {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.featured-event {
    font-size: 14px;
    color: #c41e3a;
    font-weight: 600;
}

/* Media Type Badges */
.media-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.media-type-badge.press_conference {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.media-type-badge.interview {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.media-type-badge.fight_video {
    background: rgba(196, 30, 58, 0.2);
    color: #c41e3a;
}

.media-type-badge.misc {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Video Card */
.video-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #222;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #c41e3a;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.2);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-icon {
    width: 70px;
    height: 70px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    padding-left: 5px;
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
}

.video-thumbnail .media-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

/* Video Card Info */
.video-card-info {
    padding: 20px;
}

.video-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-description {
    font-size: 14px;
    color: #888;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.video-event, .video-fighters, .video-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* No Media State */
.no-media {
    text-align: center;
    padding: 80px 20px;
    background: #111;
    border-radius: 16px;
    border: 2px dashed #333;
}

.no-media-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-media h3 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 10px 0;
}

.no-media p {
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #c41e3a;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #a01830;
    transform: scale(1.1);
}

.video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-video {
        grid-template-columns: 1fr;
    }
    
    .featured-video-info {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .videos-page {
        padding: 20px 15px 60px;
    }
    
    .videos-header h1 {
        font-size: 32px;
    }
    
    .videos-subtitle {
        font-size: 16px;
    }
    
    .videos-filters {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .filter-label {
        display: none;
    }
    
    .filter-tab.active .filter-label {
        display: inline;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-modal-close {
        top: -45px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .videos-header h1 {
        font-size: 26px;
    }
    
    .filter-tab {
        padding: 8px 12px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .video-card-title {
        font-size: 16px;
    }
    
    /* Access Modal Mobile Fix */
    .access-modal {
        padding: 15px;
    }
    
    .access-modal-content {
        padding: 25px 20px;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .access-modal-content h3 {
        font-size: 20px;
    }
    
    .access-modal-content p {
        font-size: 14px;
    }
    
    .access-modal-icon {
        font-size: 40px;
    }
    
    .access-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* ======================== */
/* Video Access Control     */
/* ======================== */

.video-card.video-locked {
    cursor: pointer;
}

.video-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.video-lock-overlay .lock-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.video-lock-overlay .lock-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 4;
}

.pro-badge-inline {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

/* Featured Locked */
.featured-video.featured-locked {
    cursor: pointer;
}

.featured-video.featured-locked .featured-video-player {
    position: relative;
}

.featured-locked-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-locked-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(3px);
    position: absolute;
    top: 0;
    left: 0;
}

.featured-play-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.featured-play-overlay .lock-icon {
    font-size: 64px;
    display: block;
}

.featured-play-overlay .lock-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-video.featured-locked:hover .featured-locked-overlay img {
    opacity: 0.5;
}

.featured-video.featured-locked:hover .featured-play-overlay .lock-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Access Modal */
.access-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.access-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.access-modal-content {
    background: #111;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid #222;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.access-modal.active .access-modal-content {
    transform: scale(1);
}

.access-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.access-modal-close:hover {
    color: #fff;
}

.access-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.access-modal-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
}

.access-modal-content p {
    font-size: 15px;
    color: #aaa;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.access-modal-benefits {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.benefit-item {
    color: #51cf66;
    font-size: 14px;
    padding: 5px 0;
}

.access-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.access-btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
}

.access-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.access-btn-pro {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.access-btn-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.access-btn-outline {
    background: transparent;
    border: 2px solid #444;
    color: #aaa;
}

.access-btn-outline:hover {
    border-color: #666;
    color: #fff;
}