.live-sessions-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Hero */
.live-sessions-page .ls-hero {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: var(--text-inverse);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.live-sessions-page .ls-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.live-sessions-page .ls-header {
    position: relative;
    z-index: 2;
}

.live-sessions-page .hero-titles {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    font-family: var(--font-heading);
    text-align: center;
    line-height: 1.2;
    color: #ffffff;
}

.live-sessions-page .hero-subtitle {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats */
.live-sessions-page .categories-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.live-sessions-page .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem;
    min-width: 90px;
    backdrop-filter: blur(6px);
}

.live-sessions-page .stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.live-sessions-page .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter bar */
.live-sessions-page .ls-filter-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.live-sessions-page .ls-filters-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.live-sessions-page .ls-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.live-sessions-page .ls-tab {
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.live-sessions-page .ls-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.live-sessions-page .ls-tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.ls-tab--live.active {
    color: #dc3545;
}

/* Inline pagination (in filter bar) */
.ls-pagination-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ls-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ls-page-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary-500);
}

.ls-page-btn--active {
    background: var(--primary-600);
    color: #fff;
    border-color: var(--primary-600);
}

.ls-page-btn--active:hover {
    background: var(--primary-700);
    color: #fff;
}

/* Pulse dot */
.pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #dc3545;
    border-radius: 50%;
    animation: ls-pulse 1.4s infinite;
}

.pulse-dot--sm {
    width: 7px;
    height: 7px;
}

.pulse-dot--white {
    background: #fff;
}

@keyframes ls-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

/* Sections */
.ls-section {
    padding: 1rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Cards grid */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ls-grid--live {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ls-grid>.ls-card:only-child,
.ls-grid--live>.ls-card:only-child {
    max-width: 420px;
}

/* Card */
.ls-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ls-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ls-card--live {
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1), var(--shadow-md);
}

.ls-card--ended {
    opacity: 0.92;
}

.ls-card--ended:hover {
    opacity: 1;
}

/* Thumbnail */
.ls-thumb {
    position: relative;
    height: 170px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.ls-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ls-card:hover .ls-thumb__img {
    transform: scale(1.05);
}

.ls-thumb__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 3rem;
}

.ls-thumb__placeholder--ended {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.ls-card--live .ls-thumb::after,
.ls-card--ended .ls-thumb::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0);
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ls-card--live:hover .ls-thumb::after,
.ls-card--ended:hover .ls-thumb::after {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
}

/* Badges */
.ls-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.ls-badge--live {
    background: #dc3545;
    color: #fff;
    text-transform: uppercase;
}

.ls-badge--upcoming {
    background: var(--primary-600);
    color: #fff;
}

.ls-badge--ended {
    background: #334155;
    color: #e2e8f0;
}

.ls-badge--featured {
    top: 10px;
    left: auto;
    right: 10px;
    background: #fef3c7;
    color: #92400e;
}

/* Card body */
.ls-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ls-card__title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.ls-card__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

/* Instructor */
.ls-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.ls-instructor__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-light);
}

.ls-instructor__initials {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ls-instructor__name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Meta */
.ls-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.875rem;
}

.ls-meta__item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-md);
}

.ls-meta__item i {
    font-size: 0.7rem;
}

.ls-meta__item--live {
    color: #dc3545;
    font-weight: 600;
    background: #fff5f5;
}

/* Countdown */
.ls-countdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cd-block {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.cd-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-600);
    font-variant-numeric: tabular-nums;
    min-width: 22px;
    text-align: center;
}

.cd-unit {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.cd-sep {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 2px;
    line-height: 1;
}

/* CTA button */
.ls-cta-btn {
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    margin-top: auto;
}

.ls-cta-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ls-cta-btn--upcoming:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* YouTube Modal */
.yt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: yt-fade-in 0.2s ease;
}

.yt-modal-overlay.active {
    display: flex;
}

@keyframes yt-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.yt-modal-box {
    background: #0f172a;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: yt-slide-up 0.25s ease;
}

@keyframes yt-slide-up {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.yt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-modal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

.yt-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.yt-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.yt-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.yt-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px dashed var(--border-light);
    max-width: 420px;
    margin: 0 auto;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-primary);
    font-size: 1.6rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* CTA section */
.cta-section {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: var(--text-inverse);
    text-align: center;
}

.cta-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: #ffffff;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cta-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .ls-hero {
        padding: 0.75rem 0;
    }

    .hero-titles {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .ls-grid,
    .ls-grid--live {
        grid-template-columns: 1fr;
    }

    .ls-grid>.ls-card:only-child,
    .ls-grid--live>.ls-card:only-child {
        max-width: 100%;
    }

    .ls-filters-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .ls-tabs {
        flex-wrap: wrap;
    }

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

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

    .yt-modal-box {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .categories-stats {
        gap: 0.75rem;
    }

    .stat-item {
        min-width: 75px;
        padding: 0.4rem 0.75rem;
    }

    .ls-card {
        margin: 0 0.125rem;
    }
}