/* Ability X Live Stream - New Layout */

.ability-x-live-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--e-global-typography-primary-font-family, "Poppins", sans-serif);
}

/* ===== ROOM SWITCHER TABS ===== */
.ability-x-room-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ability-x-room-tab {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.ability-x-room-tab:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.ability-x-room-tab.active {
    background: var(--e-global-color-primary, #111827);
    color: #fff;
    border-color: var(--e-global-color-primary, #111827);
}

/* ===== VIDEO SECTION ===== */
.ability-x-video-section {
    margin-bottom: 30px;
}

.ability-x-video-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e5e7eb;
}

.ability-x-video-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111827;
}

.ability-x-video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
}

.ability-x-video-time,
.ability-x-video-room {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ability-x-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: auto;
}

.ability-x-youtube-link:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    color: #fff;
}

.ability-x-youtube-link svg {
    flex-shrink: 0;
}

.ability-x-video-wrapper {
    position: relative;
    padding-bottom: 42%; /* Reduced height for better layout */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 0 0 8px 8px;
}

.ability-x-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Thumbnail with Play Button */
.ability-x-video-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.ability-x-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.ability-x-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ability-x-video-thumbnail-link:hover .ability-x-thumbnail-image {
    transform: scale(1.05);
}

.ability-x-play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ability-x-video-thumbnail-link:hover .ability-x-play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.ability-x-play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ability-x-video-thumbnail-link:hover .ability-x-play-button {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

.ability-x-play-button svg {
    margin-left: 5px;
}

.ability-x-play-text {
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ability-x-video-thumbnail-link:hover .ability-x-play-text {
    opacity: 1;
}

/* Placeholder */
.ability-x-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #040e20 0%, #0f172a 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
}

/* Black overlay for placeholder background image */
.ability-x-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.ability-x-placeholder > * {
    position: relative;
    z-index: 2;
}

.ability-x-placeholder-image {
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    opacity: 0.9;
}

.ability-x-placeholder-message {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Placeholder Overlay for Upcoming Session */
.ability-x-placeholder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: 30px;
    color: #fff;
}

.ability-x-overlay-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ability-x-overlay-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.ability-x-overlay-time {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 5px;
}

.ability-x-overlay-countdown {
    font-size: 16px;
    font-weight: 600;
    color: #fbbf24;
}

/* ===== CONTENT GRID ===== */
.ability-x-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* ===== LEFT COLUMN: ABOUT THIS SESSION ===== */
.ability-x-left-column {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ability-x-about-section {
    padding: 30px;
}

.ability-x-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
}

.ability-x-session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.ability-x-session-header-left {
    flex: 1;
}

.ability-x-watching-label {
    display: inline-block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ability-x-session-title-main {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.3;
}

.ability-x-session-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ability-x-meta-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.ability-x-meta-item-compact {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ability-x-session-description {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 25px;
}

/* Host/Sponsor Section */
.ability-x-host-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 3px solid #3b82f6;
}

.ability-x-host-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ability-x-host-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.ability-x-host-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Speakers Section */
.ability-x-speakers-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e5e7eb;
}

.ability-x-speakers-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ability-x-speakers-heading::before {
    font-size: 24px;
}

.ability-x-speaker-count {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-left: auto;
    background: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ability-x-speakers-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ability-x-speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    min-width: 200px;
    transition: all 0.2s;
}

.ability-x-speaker-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ability-x-speaker-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    background: #f3f4f6;
    margin-bottom: 12px;
}

.ability-x-speaker-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    border: 3px solid #e5e7eb;
    margin-bottom: 12px;
}

.ability-x-speaker-info {
    width: 100%;
}

.ability-x-speaker-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #111827;
}

.ability-x-speaker-role {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.ability-x-speaker-bio {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.ability-x-session-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.ability-x-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ability-x-action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.ability-x-action-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.ability-x-action-btn.primary:hover {
    background: #1d4ed8;
}

.ability-x-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RIGHT COLUMN: LIVE UPDATES ===== */
.ability-x-right-column {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.ability-x-live-updates .ability-x-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ability-x-live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Live Updates List */
.ability-x-update-item {
    padding: 15px;
    border-left: 3px solid #e5e7eb;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s;
}

.ability-x-update-item:hover {
    background: #f9fafb;
    border-left-color: #2563eb;
}

.ability-x-update-item.live {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.ability-x-update-item.upcoming {
    border-left-color: #f59e0b;
}

.ability-x-update-time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 5px;
}

.ability-x-update-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.ability-x-update-room {
    font-size: 12px;
    color: #6b7280;
}

.ability-x-update-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.ability-x-update-badge.live {
    background: #ef4444;
    color: #fff;
}

.ability-x-update-badge.upcoming {
    background: #f59e0b;
    color: #fff;
}

/* Status Badges */
.ability-x-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ability-x-status-live {
    background: #ef4444;
    color: #fff;
}

.ability-x-status-upcoming {
    background: #f59e0b;
    color: #fff;
}

/* Countdown */
.ability-x-countdown {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.ability-x-countdown .ability-x-next-session-time {
    font-size: 16px;
    margin-bottom: 5px;
    color: #92400e;
}

.ability-x-countdown .ability-x-next-session-datetime {
    font-size: 13px;
    color: #78350f;
    margin: 0;
}

/* Loading & Error States */
.ability-x-loading {
    padding: 20px;
}

.ability-x-error {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 6px;
}

/* Skeleton Loaders */
.ability-x-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton: Video Header */
.ability-x-skeleton-video-header {
    padding: 15px 20px;
}

.ability-x-skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 10px;
}

.ability-x-skeleton-meta {
    display: flex;
    gap: 15px;
}

.ability-x-skeleton-meta-item {
    height: 16px;
    width: 120px;
}

/* Skeleton: Session Details */
.ability-x-skeleton-session {
    padding: 30px;
}

.ability-x-skeleton-heading {
    height: 24px;
    width: 40%;
    margin-bottom: 20px;
}

.ability-x-skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.ability-x-skeleton-text.short {
    width: 60%;
}

.ability-x-skeleton-text.medium {
    width: 80%;
}

.ability-x-skeleton-text.long {
    width: 95%;
}

.ability-x-skeleton-speaker {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.ability-x-skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ability-x-skeleton-speaker-info {
    flex: 1;
}

.ability-x-skeleton-name {
    height: 18px;
    width: 150px;
    margin-bottom: 8px;
}

.ability-x-skeleton-role {
    height: 14px;
    width: 100px;
    margin-bottom: 10px;
}

.ability-x-skeleton-bio {
    height: 14px;
    width: 90%;
}

/* Skeleton: Live Updates */
.ability-x-skeleton-updates {
    padding: 15px;
}

.ability-x-skeleton-update-item {
    padding: 15px;
    border-left: 3px solid #e5e7eb;
    margin-bottom: 15px;
}

.ability-x-skeleton-update-time {
    height: 14px;
    width: 80px;
    margin-bottom: 8px;
}

.ability-x-skeleton-update-title {
    height: 16px;
    width: 90%;
    margin-bottom: 6px;
}

.ability-x-skeleton-update-room {
    height: 12px;
    width: 60px;
}

.ability-x-no-session {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ability-x-content-grid {
        grid-template-columns: 1fr;
    }
    
    .ability-x-right-column {
        position: static;
    }
    
    .ability-x-video-wrapper {
        padding-bottom: 56.25%; /* Back to 16:9 on smaller screens */
    }
}

@media (max-width: 768px) {
    .ability-x-live-container {
        padding: 10px;
    }
    
    .ability-x-room-tabs {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .ability-x-room-tab {
        flex: 1;
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .ability-x-video-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ability-x-youtube-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .ability-x-play-button {
        width: 70px;
        height: 70px;
    }
    
    .ability-x-play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .ability-x-play-text {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .ability-x-about-section {
        padding: 20px;
    }
    
    .ability-x-session-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ability-x-session-header-right {
        align-items: flex-start;
    }
    
    .ability-x-meta-compact {
        align-items: flex-start;
    }
    
    .ability-x-session-actions {
        flex-direction: column;
    }
    
    .ability-x-speakers-carousel {
        grid-template-columns: 1fr;
    }
    
    .ability-x-placeholder-overlay {
        padding: 20px;
    }
    
    .ability-x-overlay-title {
        font-size: 16px;
    }
}
