:root {
    --lgs27-bg: #070b13;
    --lgs27-surface: #101723;
    --lgs27-surface-2: #151e2d;
    --lgs27-text: #f5f8ff;
    --lgs27-muted: #9ba9be;
    --lgs27-line: rgba(216, 230, 255, .13);
    --lgs27-lime: #c7ff61;
    --lgs27-red: #ff4949;
}

.lgs-2027-page {
    background: var(--lgs27-bg);
}

body > main {
    color: var(--lgs27-text);
    overflow: hidden;
}

.lgs27-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 105px 0 74px;
    background:
        radial-gradient(circle at 78% 32%, rgba(199, 255, 97, .14), transparent 24%),
        radial-gradient(circle at 16% 84%, rgba(35, 91, 188, .18), transparent 28%),
        var(--lgs27-bg);
}

.lgs27-hero::after {
    content: "2027";
    position: absolute;
    right: -1.5vw;
    bottom: -8vw;
    color: transparent;
    font-size: clamp(9rem, 24vw, 23rem);
    font-weight: 800;
    line-height: .8;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
    pointer-events: none;
}

.lgs27-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: clamp(50px, 8vw, 120px);
    align-items: end;
}

.lgs27-eyebrow {
    margin: 0 0 14px;
    color: var(--lgs27-lime);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lgs27-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--lgs27-text);
    font-size: clamp(3.5rem, 6.8vw, 6.35rem);
    font-weight: 650;
    letter-spacing: -.06em;
    line-height: .96;
}

.lgs27-hero h1 span {
    display: inline-block;
    margin-top: .08em;
    color: var(--lgs27-lime);
    font-style: italic;
    font-weight: 500;
}

.lgs27-hero__copy {
    max-width: 650px;
    margin: 32px 0 0;
    color: var(--lgs27-muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.lgs27-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lgs27-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--lgs27-line);
    border-radius: 999px;
    color: var(--lgs27-text);
    background: rgba(255, 255, 255, .025);
    font-size: .82rem;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.lgs27-button:hover,
.lgs27-button:focus-visible {
    border-color: rgba(199, 255, 97, .6);
    color: var(--lgs27-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.lgs27-button--primary {
    border-color: var(--lgs27-lime);
    color: #081009;
    background: var(--lgs27-lime);
}

.lgs27-button--primary:hover,
.lgs27-button--primary:focus-visible {
    color: #081009;
    background: #d6ff8d;
}

.lgs27-hero__stat {
    padding: 24px 0 8px 28px;
    border-left: 1px solid var(--lgs27-line);
}

.lgs27-hero__stat strong,
.lgs27-hero__stat span {
    display: block;
}

.lgs27-hero__stat strong {
    color: var(--lgs27-text);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: .9;
}

.lgs27-hero__stat span {
    margin-top: 10px;
    color: var(--lgs27-text);
    font-weight: 650;
}

.lgs27-library {
    padding: 78px 0 110px;
    border-top: 1px solid var(--lgs27-line);
    background: linear-gradient(180deg, #0a101a, #070b13 35%);
}

.lgs27-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.lgs27-toolbar h2,
.lgs27-channel h2,
.lgs27-empty h2 {
    margin: 0;
    color: var(--lgs27-text);
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -.045em;
}

.lgs27-toolbar__heading > p:last-child {
    margin: 8px 0 0;
    color: var(--lgs27-muted);
    font-size: .86rem;
}

.lgs27-sort {
    display: grid;
    gap: 7px;
    color: var(--lgs27-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lgs27-sort select {
    min-width: 210px;
    min-height: 46px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--lgs27-line);
    border-radius: 9px;
    color: var(--lgs27-text);
    background: var(--lgs27-surface);
    font: inherit;
    font-size: .83rem;
    letter-spacing: 0;
    text-transform: none;
}

.lgs27-topic-navigation {
    position: relative;
    margin: 34px 0 38px;
}

.lgs27-topics {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 46px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
}

.lgs27-topic-arrow {
    position: absolute;
    z-index: 3;
    top: 0;
    display: grid;
    width: 36px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(199, 255, 97, .48);
    border-radius: 999px;
    place-items: center;
    color: #081009;
    background: var(--lgs27-lime);
    box-shadow: 0 0 22px rgba(199, 255, 97, .13);
    font: 700 1rem/1 var(--font-sans);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.lgs27-topic-arrow--prev { left: 0; }
.lgs27-topic-arrow--next { right: 0; }

.lgs27-topic-arrow:hover:not(:disabled),
.lgs27-topic-arrow:focus-visible {
    transform: scale(1.06);
}

.lgs27-topic-arrow:disabled {
    border-color: var(--lgs27-line);
    color: #6d7a8f;
    background: var(--lgs27-surface);
    box-shadow: none;
    cursor: default;
    opacity: .6;
}

.lgs27-topic-progress {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 3px 46px 0;
    color: #718096;
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lgs27-topic-track {
    position: relative;
    width: 100%;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lgs27-topic-track::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: rgba(226, 237, 255, .13);
}

.lgs27-topic-track i {
    position: absolute;
    top: 5px;
    left: 0;
    width: 25%;
    height: 4px;
    border-radius: 999px;
    background: var(--lgs27-lime);
    box-shadow: 0 0 12px rgba(199, 255, 97, .28);
    transform: translateX(0);
    transition: width .15s ease, transform .15s ease;
}

.lgs27-topic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--lgs27-line);
    border-radius: 999px;
    color: var(--lgs27-muted);
    background: transparent;
    font: inherit;
    font-size: .76rem;
    font-weight: 650;
    cursor: pointer;
}

.lgs27-topic b {
    color: #637187;
    font-size: .65rem;
}

.lgs27-topic span {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: #cbd5e5;
    background: rgba(255, 255, 255, .07);
    font-size: .64rem;
}

.lgs27-topic:hover:not(:disabled),
.lgs27-topic:focus-visible,
.lgs27-topic.is-active {
    border-color: rgba(199, 255, 97, .55);
    color: var(--lgs27-text);
    background: rgba(199, 255, 97, .08);
}

.lgs27-topic.is-active span {
    color: #10170b;
    background: var(--lgs27-lime);
}

.lgs27-topic:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.lgs27-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lgs27-card {
    overflow: hidden;
    border: 1px solid var(--lgs27-line);
    border-radius: 14px;
    background: var(--lgs27-surface);
    transition: transform .25s ease, border-color .25s ease;
}

.lgs27-card:hover {
    border-color: rgba(199, 255, 97, .3);
    transform: translateY(-4px);
}

.lgs27-card[hidden] {
    display: none;
}

.lgs27-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #030508;
}

.lgs27-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .72));
}

.lgs27-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .25s ease;
}

.lgs27-card:hover .lgs27-card__image img {
    opacity: .78;
    transform: scale(1.025);
}

.lgs27-card__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: rgba(255, 36, 36, .94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
    transform: translate(-50%, -50%);
}

.lgs27-card__play svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.lgs27-card__youtube {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    color: #fff;
    font-size: .69rem;
    font-weight: 700;
}

.lgs27-card__body {
    padding: 18px 18px 21px;
}

.lgs27-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--lgs27-muted);
    font-size: .67rem;
}

.lgs27-card__meta span {
    color: var(--lgs27-lime);
    font-weight: 700;
}

.lgs27-card h3 {
    margin: 12px 0 0;
    color: var(--lgs27-text);
    font-size: 1.02rem;
    font-weight: 630;
    line-height: 1.42;
}

.lgs27-card h3 a {
    color: inherit;
}

.lgs27-card h3 a:hover,
.lgs27-card h3 a:focus-visible {
    color: var(--lgs27-lime);
    text-decoration: none;
}

.lgs27-empty,
.lgs27-no-results {
    padding: 60px 24px;
    border: 1px dashed var(--lgs27-line);
    border-radius: 14px;
    text-align: center;
}

.lgs27-empty p,
.lgs27-no-results p {
    color: var(--lgs27-muted);
}

.lgs27-channel {
    padding: 70px 0;
    border-top: 1px solid var(--lgs27-line);
    background: var(--lgs27-surface);
}

.lgs27-channel__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.lgs27-channel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.lgs27-channel p:not(.lgs27-eyebrow) {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--lgs27-muted);
}

@media (max-width: 900px) {
    .lgs27-hero__grid {
        grid-template-columns: 1fr;
    }

    .lgs27-hero__stat {
        max-width: 260px;
    }

    .lgs27-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lgs27-hero {
        min-height: auto;
        padding: 92px 0 60px;
    }

    .lgs27-hero h1 {
        font-size: clamp(3.15rem, 16vw, 5rem);
        line-height: .98;
    }

    .lgs27-hero__actions,
    .lgs27-hero__actions .lgs27-button {
        width: 100%;
    }

    .lgs27-hero__stat {
        display: none;
    }

    .lgs27-library {
        padding: 58px 0 75px;
    }

    .lgs27-toolbar,
    .lgs27-channel__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .lgs27-sort select {
        width: 100%;
    }

    .lgs27-topic-navigation {
        margin-top: 28px;
    }

    .lgs27-topic-progress {
        margin-inline: 40px;
    }

    .lgs27-grid {
        grid-template-columns: 1fr;
    }

    .lgs27-channel__inner > .lgs27-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lgs27-button,
    .lgs27-card,
    .lgs27-card__image img {
        transition: none;
    }
}
