.Hub_home {
    --hub-accent: #6d5dfc;
    --hub-accent-2: #9b4dff;
    --hub-accent-soft: rgba(109, 93, 252, .12);
    --hub-card: #fff;
    --hub-surface: #f4f5fb;
    --hub-line: rgba(54, 48, 79, .11);
    --hub-text: var(--primary-title, #252132);
    --hub-muted: var(--body, #666374);
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 8px 8px 64px;
    color: var(--hub-text);
}

html[data-theme=dark] .Hub_home {
    --hub-card: #1f1f23;
    --hub-surface: #17171a;
    --hub-line: rgba(255, 255, 255, .1);
    --hub-text: #f5f5f7;
    --hub-muted: #b8b7c1;
    --hub-accent-soft: rgba(139, 123, 255, .18);
}

.Hub_home *,
.Hub_home *::before,
.Hub_home *::after {
    box-sizing: border-box;
}

.Hub_intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(560px, 1.35fr);
    gap: clamp(20px, 3vw, 54px);
    align-items: center;
    min-height: 430px;
    margin-bottom: 26px;
    padding: clamp(30px, 4vw, 66px);
    border: 1px solid var(--hub-line);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 15%, rgba(126, 102, 255, .22), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(255, 79, 151, .16), transparent 27%),
        linear-gradient(135deg, var(--hub-card), var(--hub-surface));
}

.Hub_intro::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 34%;
    top: -190px;
    border: 1px solid rgba(109, 93, 252, .2);
    border-radius: 50%;
}

.Hub_introCopy {
    position: relative;
    z-index: 2;
}

.Hub_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--hub-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.Hub_eyebrow > span {
    font-size: 9px;
    color: #35c98d;
    filter: drop-shadow(0 0 6px rgba(53, 201, 141, .55));
}

.Hub_intro h1 {
    max-width: 620px;
    margin: 0;
    color: var(--hub-text);
    font-size: clamp(38px, 4.2vw, 68px);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.055em;
}

.Hub_intro h1 span {
    color: transparent;
    background: linear-gradient(100deg, var(--hub-accent), var(--hub-accent-2), #ef4f98);
    -webkit-background-clip: text;
    background-clip: text;
}

.Hub_introCopy > p {
    max-width: 520px;
    margin: 20px 0 25px;
    color: var(--hub-muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.65;
}

.Hub_introActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.Hub_primaryBtn,
.Hub_secondaryBtn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.Hub_primaryBtn {
    border: 0;
    color: #fff;
    background: linear-gradient(105deg, var(--hub-accent), var(--hub-accent-2));
    box-shadow: 0 10px 24px rgba(109, 93, 252, .28);
}

.Hub_secondaryBtn {
    border: 1px solid var(--hub-line);
    color: var(--hub-text);
    background: var(--hub-card);
}

.Hub_primaryBtn:hover,
.Hub_secondaryBtn:hover {
    transform: translateY(-2px);
}

.Hub_primaryBtn:hover {
    color: #fff;
    box-shadow: 0 14px 30px rgba(109, 93, 252, .38);
}

.Hub_stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: var(--hub-muted);
    font-size: 12px;
}

.Hub_stats span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 18px;
    border-right: 1px solid var(--hub-line);
}

.Hub_stats span:last-child { border-right: 0; }
.Hub_stats strong { color: var(--hub-text); font-size: 17px; }

.Hub_heroGrid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    height: 355px;
    min-width: 0;
}

.Hub_heroGrid > .Hub_card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
}

.Hub_heroGrid > .Hub_card:nth-child(2) { grid-column: 2; grid-row: 1; }
.Hub_heroGrid > .Hub_card:nth-child(3) { grid-column: 3; grid-row: 1; }
.Hub_heroGrid > .Hub_card:nth-child(4) { grid-column: 2; grid-row: 2; }
.Hub_heroGrid > .Hub_card:nth-child(5) { grid-column: 3; grid-row: 2; }

.Hub_card {
    position: relative;
    flex: 0 0 190px;
    min-width: 0;
    height: 126px;
    border-radius: 14px;
    overflow: hidden;
    background: #252231;
    box-shadow: 0 5px 16px rgba(20, 18, 31, .09);
    isolation: isolate;
    transform: translateZ(0);
}

.Hub_cardLink {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.Hub_cardImage {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .75, .2, 1), filter .3s ease;
}

.Hub_cardShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 20, .9), rgba(12, 10, 20, .08) 68%);
}

.Hub_cardInfo {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 48px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.Hub_cardTitle {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.Hub_cardMeta {
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 600;
}

.Hub_cardPlay {
    position: absolute;
    z-index: 2;
    right: 11px;
    bottom: 11px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(109, 93, 252, .88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .25s ease, background .25s ease;
}

.Hub_badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.Hub_badge--hot { background: linear-gradient(100deg, #ff4d69, #ff884d); }
.Hub_badge--new { background: linear-gradient(100deg, #2dbb88, #41d49c); }

.Hub_card:hover .Hub_cardImage { transform: scale(1.07); filter: saturate(1.12); }
.Hub_card:hover .Hub_cardPlay { transform: scale(1.11); background: var(--hub-accent-2); }
.Hub_cardLink:focus-visible { outline: 3px solid var(--hub-accent); outline-offset: -3px; border-radius: 14px; }

.Hub_heroGrid .Hub_card {
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 16px;
}

.Hub_heroGrid > .Hub_card:first-child .Hub_cardInfo { left: 18px; bottom: 17px; }
.Hub_heroGrid > .Hub_card:first-child .Hub_cardTitle { font-size: clamp(18px, 1.5vw, 25px); }
.Hub_heroGrid > .Hub_card:first-child .Hub_cardMeta { font-size: 12px; }
.Hub_heroGrid > .Hub_card:first-child .Hub_cardPlay { width: 44px; height: 44px; right: 17px; bottom: 17px; }

.Hub_categories {
    display: flex;
    gap: 9px;
    margin: 0 0 34px;
    padding: 3px 2px 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.Hub_categories::-webkit-scrollbar { display: none; }

.Hub_categoryChip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid var(--hub-line);
    border-radius: 999px;
    color: var(--hub-text);
    background: var(--hub-card);
    box-shadow: 0 4px 15px rgba(28, 24, 48, .04);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.Hub_categoryChip:hover {
    color: var(--hub-accent);
    background: var(--hub-accent-soft);
    transform: translateY(-2px);
}

.Hub_section {
    margin: 0 0 34px;
}

.Hub_sectionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.Hub_sectionTitle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding-left: 14px;
    color: var(--hub-text);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.Hub_sectionTitle::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 1.05em;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--hub-accent), var(--hub-accent-2));
}

.Hub_sectionIcon { font-size: .95em; }

.Hub_sectionActions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.Hub_more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    color: var(--hub-muted);
    border: 1px solid var(--hub-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.Hub_more:hover { color: var(--hub-accent); border-color: var(--hub-accent); }

.Hub_scrollBtn {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0 0 2px;
    border: 1px solid var(--hub-line);
    border-radius: 50%;
    color: var(--hub-text);
    background: var(--hub-card);
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.Hub_scrollBtn:hover { color: #fff; border-color: var(--hub-accent); background: var(--hub-accent); }

.Hub_row {
    display: flex;
    gap: 12px;
    padding: 3px 2px 11px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 93, 252, .4) transparent;
}

.Hub_row .Hub_card { scroll-snap-align: start; }
.Hub_row::-webkit-scrollbar { height: 5px; }
.Hub_row::-webkit-scrollbar-track { background: transparent; }
.Hub_row::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(109, 93, 252, .35); }

.Hub_library {
    padding-top: 7px;
    border-top: 1px solid var(--hub-line);
}

.Hub_libraryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 13px;
}

.Hub_libraryGrid .Hub_card {
    width: 100%;
    height: auto;
    aspect-ratio: 1.52 / 1;
}

.Hub_libraryAction {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.Hub_recentGrid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.Hub_recentGrid .Hub_card {
    flex: 0 0 190px;
    width: 190px;
    height: 126px;
}

.Hub_about {
    max-width: 960px;
    margin: 50px auto 0;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--hub-line);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--hub-card), var(--hub-surface));
}

.Hub_about h2 {
    margin: 0 0 18px;
    color: var(--hub-text);
    font-size: clamp(25px, 3vw, 40px);
    letter-spacing: -.035em;
}

.Hub_aboutContent {
    color: var(--hub-muted);
    font-size: 15px;
    line-height: 1.75;
}

.Hub_aboutContent p:last-child { margin-bottom: 0; }
.Hub_aboutContent a { color: var(--hub-accent); }

.Hub_ad {
    display: flex;
    justify-content: center;
    margin: 36px auto 0;
}

@media (max-width: 1280px) {
    .Hub_intro {
        grid-template-columns: minmax(260px, .75fr) minmax(480px, 1.25fr);
        padding: 34px;
    }
    .Hub_heroGrid { height: 330px; }
}

@media (max-width: 1023px) {
    .Hub_home { padding: 12px 2px 54px; }
    .Hub_intro {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 32px;
    }
    .Hub_introCopy { text-align: center; }
    .Hub_introCopy > p { margin-left: auto; margin-right: auto; }
    .Hub_introActions, .Hub_stats { justify-content: center; }
    .Hub_heroGrid { height: 350px; }
}

@media (max-width: 700px) {
    .Hub_home { padding-top: 5px; }
    .Hub_intro { margin-bottom: 17px; padding: 27px 18px 18px; border-radius: 21px; }
    .Hub_intro h1 { font-size: clamp(36px, 12vw, 51px); }
    .Hub_introCopy > p { margin: 15px auto 20px; font-size: 14px; }
    .Hub_introActions { flex-direction: column; }
    .Hub_primaryBtn, .Hub_secondaryBtn { width: 100%; }
    .Hub_stats { gap: 10px; margin-top: 22px; }
    .Hub_stats span { padding-right: 10px; }
    .Hub_stats strong { font-size: 14px; }
    .Hub_heroGrid {
        display: flex;
        height: 230px;
        margin-top: 9px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .Hub_heroGrid::-webkit-scrollbar { display: none; }
    .Hub_heroGrid .Hub_card,
    .Hub_heroGrid > .Hub_card:first-child {
        flex: 0 0 82%;
        width: 82%;
        height: 230px;
        min-height: 230px;
        scroll-snap-align: center;
    }
    .Hub_categories { margin-bottom: 25px; }
    .Hub_section { margin-bottom: 27px; }
    .Hub_sectionActions .Hub_scrollBtn { display: none; }
    .Hub_sectionTitle { font-size: 18px; }
    .Hub_more { padding: 6px 9px; font-size: 11px; }
    .Hub_row { gap: 10px; margin-right: -10px; }
    .Hub_row .Hub_card { flex-basis: 158px; height: 106px; }
    .Hub_cardTitle { font-size: 12px; }
    .Hub_cardInfo { right: 39px; left: 9px; bottom: 8px; }
    .Hub_cardPlay { right: 8px; bottom: 8px; width: 27px; height: 27px; }
    .Hub_libraryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .Hub_about { margin-top: 36px; padding: 27px 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .Hub_home *, .Hub_home *::before, .Hub_home *::after { scroll-behavior: auto !important; transition: none !important; }
}
