:root {
    --ls-blue: #075d84;
    --ls-blue-dark: #06445f;
    --ls-green: #0a7d52;
    --ls-green-dark: #075f43;
    --ls-gold: #d5a14a;
    --ls-cream: #fff4d7;
    --ls-brown: #7f4d20;
    --ls-ink: #173a45;
    --ls-live: #d81e05;
}

/* SECTION HEADINGS */
.ls-section-heading {
    margin-bottom: 18px;
    text-align: center;
}

.ls-section-heading h2 {
    margin: 0;
    color: var(--ls-brown);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ls-section-heading p {
    margin: 6px auto 0;
    max-width: 640px;
    color: #4b6d79;
    font-size: 0.95rem;
}

/* FEATURED LIVE */
.featured-live-wrap {
    position: relative;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.main-live {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--ls-gold);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(7, 68, 95, 0.2);
    background: #0a2f44;
}

.main-live > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-live--portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.main-live.main-live--portrait > iframe,
.main-live.main-live--portrait > video {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto !important;
    max-width: 100%;
    height: 100% !important;
    aspect-ratio: 9 / 16;
    border: 0;
    display: block;
}

.main-live > iframe,
.main-live > video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

.main-live > .live-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8fb6c4;
}

.main-live > .live-empty i {
    font-size: 2.6rem;
    opacity: 0.7;
}

.main-live > .live-empty p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.live-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 14px;
}

.live-featured-meta .live-platform-pill {
    background: rgba(6, 68, 95, 0.72);
    color: #ffe6a6;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
}

.live-featured-meta .live-platform-pill i {
    margin-right: 5px;
}

.live-featured-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--ls-brown);
    line-height: 1.3;
}

.live-featured-org {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ls-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.main-live .live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: var(--ls-live);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(216, 30, 5, 0.45); }
    50% { box-shadow: 0 4px 20px rgba(216, 30, 5, 0.9); }
}

.main-live .live-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-live .live-platform-pill {
    background: rgba(6, 68, 95, 0.72);
    color: #ffe6a6;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 7px 11px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.main-live .live-stat {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.main-live .live-comments {
    position: absolute;
    left: 12px;
    bottom: 58px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 46%;
}

.main-live .live-comment {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    max-width: 360px;
}

.main-live .live-avatar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ls-gold);
    color: var(--ls-brown);
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.main-live .live-comment strong {
    font-size: 0.72rem;
    color: #ffe6a6;
    display: block;
}

.main-live .live-comment p {
    font-size: 0.72rem;
    margin: 0;
    line-height: 1.35;
}

.main-live .live-comment .emoji {
    font-size: 0.8rem;
}

.main-live .live-reactions {
    position: absolute;
    right: 14px;
    bottom: 58px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.main-live .live-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
}

.main-live .btn-control {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-live .btn-control:hover {
    background: rgba(255, 255, 255, 0.25);
}

.main-live .live-viewers {
    margin-left: auto;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* SECTION TOOLBAR + FILTERS */
.section-toolbar {
    margin-bottom: 16px;
}

.platform-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 1px solid rgba(7, 93, 132, 0.24);
    background: #fff;
    color: var(--ls-blue-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--ls-green);
    color: var(--ls-green);
}

.filter-btn.active-filter {
    background: linear-gradient(180deg, var(--ls-green), var(--ls-green-dark));
    color: #fff;
    border-color: var(--ls-green);
}

.filter-btn i {
    margin-right: 5px;
}

.video-sort-select {
    width: auto;
    min-width: 180px;
    font-size: 0.85rem;
    border-color: rgba(7, 93, 132, 0.24);
    min-height: 40px;
    border-radius: 10px;
    color: var(--ls-ink);
}

/* LIVESTREAM CARDS */
.live-card .thumbnail-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ls-blue-dark);
}

.live-card .thumbnail-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: flex-start;
}

.platform-badge {
    background: rgba(6, 68, 95, 0.78);
    color: #ffe6a6;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.live-badge-sm {
    background: var(--ls-live);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.live-badge-sm i {
    font-size: 0.4rem;
    margin-right: 3px;
    vertical-align: middle;
}

.viewer-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.channel-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ls-brown);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.channel-name i {
    margin-right: 4px;
}

.stream-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: #5b360e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.live-card-actions {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.live-card-ext {
    padding: 9px 14px;
}

/* BUTTONS */
.btn-ls-primary,
.btn-ls-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-ls-primary {
    border: 2px solid #ffe3a3;
    background: linear-gradient(180deg, #f7cb65, #c9892f);
    color: #45270f;
    box-shadow: 0 8px 18px rgba(101, 62, 20, 0.22);
}

.btn-ls-primary:hover,
.btn-ls-primary:focus {
    border-color: #ffe3a3;
    background: linear-gradient(180deg, #f7cb65, #c9892f);
    color: #45270f;
}

.btn-ls-outline {
    border: 2px solid rgba(7, 93, 132, 0.5);
    background: #fff;
    color: var(--ls-blue-dark);
}

.btn-ls-outline:hover,
.btn-ls-outline:focus {
    border-color: var(--ls-green);
    background: var(--ls-green);
    color: #fff;
}

.btn-ls-outline:disabled,
.btn-ls-outline.btn-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* SCHEDULE CARDS */
.schedule-card {
    overflow: hidden;
}

.schedule-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f7cb65, #c9892f);
    color: #45270f;
}

.schedule-day {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-date {
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    flex: 1;
}

.schedule-time {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ls-blue-dark);
}

.schedule-time i {
    margin-right: 6px;
    color: var(--ls-brown);
}

.schedule-org {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ls-brown);
}

.schedule-org i {
    margin-right: 4px;
}

.schedule-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    color: #5b360e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.schedule-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ls-blue-dark);
    margin-top: auto;
}

.schedule-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
}

.schedule-thumb-placeholder i {
    font-size: 2.2rem;
}

.schedule-thumb .platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

/* VIDEO CARDS */
.video-card {
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: var(--ls-blue-dark);
}

.video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .platform-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(6, 68, 95, 0.78);
    color: #ffe6a6;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.video-thumbnail .duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.video-thumbnail .video-ext-link {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(6, 68, 95, 0.78);
    color: #ffe6a6;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.video-thumbnail .video-ext-link:hover,
.video-thumbnail .video-ext-link:focus {
    background: var(--ls-green);
    color: #fff;
}

.video-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.video-title a {
    color: #06445f;
    text-decoration: none;
}

.video-title a:hover {
    color: var(--ls-green);
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
    .livestream-grid .livestream-col {
        flex: 0 0 auto;
        width: 33.3333%;
    }
}

@media (max-width: 991.98px) {
    .main-live .live-comments {
        max-width: 62%;
    }

    .livestream-grid .livestream-col {
        width: 50%;
    }
}

@media (max-width: 767.98px) {
    .livestream-grid .livestream-col {
        width: 50%;
    }

    .main-live .live-reactions {
        display: none;
    }

    .main-live .live-comments {
        display: none;
    }

    .main-live .live-stats .live-stat {
        display: none;
    }

    .video-sort-select {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .livestream-grid .livestream-col {
        width: 100%;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
