.home-theme {
    --home-canvas: #151717;
    --home-panel: #0f1111;
    --home-input: #090b0b;
    --home-text: #eeeef0;
    --home-muted: #989d9f;
    --home-blue: #3ab7ff;
    --home-pink: #ff6acd;
    --home-accent: var(--home-pink);
    --home-accent-gradient: linear-gradient(90deg, var(--home-blue), var(--home-pink));
    --home-sidebar-width: 212px;
    --home-gutter: 30px;
    --home-header-height: 88px;
    background: var(--home-canvas) !important;
    color: var(--home-text);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.home-theme #siteContent { min-height: 100vh; }
.home-theme a { text-decoration: none; }
.home-theme [hidden] { display: none !important; }
.home-theme button { font-family: inherit; }

.home-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    width: var(--home-sidebar-width);
    background: var(--home-panel);
    display: flex;
    flex-direction: column;
}

.home-sidebar-brand {
    min-height: var(--home-header-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--home-blue);
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -1px;
    white-space: nowrap;
}

.home-brand:hover { color: var(--home-blue); }
.home-brand span { color: var(--home-accent); }
.home-sidebar-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #272a2a transparent; }
.home-sidebar-group { padding: 6px 14px 20px; }
.home-sidebar-group + .home-sidebar-group { padding-top: 22px; position: relative; }
.home-sidebar-group + .home-sidebar-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 1px;
    background: #202323;
}

.home-sidebar-label {
    margin: 0 12px 12px;
    color: #b8bdbf;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 10px 12px;
    color: #bfc2c4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.home-sidebar-link svg { flex-shrink: 0; }
.home-sidebar-link span { min-width: 0; overflow-wrap: anywhere; }
.home-sidebar-link:hover { color: var(--home-blue); }
.home-sidebar-link.is-active { color: #fff; }
.home-sidebar-link.is-active svg { color: var(--home-blue); }
.home-sidebar-link.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(var(--home-blue), var(--home-pink));
}

.home-category-nav .home-sidebar-link { font-weight: 500; }
.home-category-nav svg { width: 19px; height: 19px; color: #7e8587; }
.home-category-nav .home-browse-all { color: #e3e5e5; font-weight: 600; }
.home-sidebar-footer { padding: 0 26px 26px; color: var(--home-muted); }
.home-sidebar-footer span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.home-sidebar-footer small { font-size: 10px; }

.home-topbar {
    min-height: var(--home-header-height);
    margin-left: var(--home-sidebar-width);
    padding: 20px var(--home-gutter);
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-topbar-brand { display: flex; align-items: center; gap: 12px; }
.home-mobile-brand { display: none; }
.home-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c9cdce;
    cursor: pointer;
}

.home-icon-button:hover { color: #fff; }
.home-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    border-radius: 10px;
    background: var(--home-input);
}

.home-search button:hover { color: var(--home-pink); }
.home-search button {
    align-self: stretch;
    width: 54px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: transparent;
    color: #e1e4e5;
}

.home-search input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 16px 0 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    color: var(--home-text);
    font: inherit;
    font-size: 14px;
    color-scheme: dark;
}

.home-search input::placeholder { color: #989d9f; opacity: 1; }
.home-search input:-webkit-autofill { -webkit-text-fill-color: var(--home-text); box-shadow: 0 0 0 1000px var(--home-input) inset; }
.home-theme #mainContent,
.home-theme .site-footer {
    margin-left: var(--home-sidebar-width);
    padding-left: var(--home-gutter);
    padding-right: var(--home-gutter);
}

.home-theme #mainContent { min-height: calc(100vh - 195px); }
.home-theme .global-banner-ad {
    margin-left: var(--home-sidebar-width);
    width: calc(100% - var(--home-sidebar-width));
}

/* Placeholder sizing is separate from network creatives, which must not be scaled. */
.home-theme .global-banner-ad.has-ad-placeholder {
    padding: 0 var(--home-gutter) 20px;
}
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .015) 12px 13px), #1b1f20;
    color: var(--home-muted);
    text-align: center;
}
.ad-placeholder-label { color: #c6ced1; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.5; text-transform: uppercase; }
.ad-placeholder-detail { font-size: 11px; line-height: 1.5; }
.ad-placeholder-detail > span { margin: 0 5px; color: var(--home-blue); }
.ad-placeholder-full-width { width: 100%; min-height: 90px; }
.ad-placeholder-250x250 { width: 250px; height: 250px; }
.ad-placeholder-468x60 { width: 468px; height: 60px; }
.home-theme .video-ad-row .has-ad-placeholder { width: 468px; max-width: 100%; }

.home-library {
    background: var(--home-panel);
    padding: 28px;
    border-radius: 14px;
}

.home-library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 9px; }
.home-library-heading > div { min-width: 0; }
.home-library-heading h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.4px; line-height: 1.45; }
.home-library-lead { margin: 8px 0 6px; max-width: 760px; color: var(--home-muted); font-size: 13px; overflow-wrap: anywhere; }
.home-result-count { flex-shrink: 0; font-size: 12px; color: var(--home-muted); font-variant-numeric: tabular-nums; }
.home-listing-tabs { display: flex; gap: 32px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.home-listing-tabs::-webkit-scrollbar { display: none; }
.home-listing-tab { position: relative; padding: 13px 0 15px; white-space: nowrap; font-size: 13px; color: var(--home-muted); }
.home-listing-tab:hover { color: var(--home-blue); }
.home-listing-tab.is-active { color: #fff; font-weight: 650; }
.home-listing-tab.is-active::after { content: ""; position: absolute; height: 2px; background: var(--home-accent-gradient); bottom: 0; left: 0; right: 0; }
.home-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.home-video-card { min-width: 0; }
.home-video-link { display: block; color: var(--home-text); }
.home-video-link:hover { color: var(--home-blue); }
.home-video-preview { position: relative; }
.home-video-image { overflow: hidden; border-radius: 9px; background: #1e2222; }
.home-video-image img, .home-video-image video { object-fit: cover; }
.home-video-duration {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 3px 9px;
    border-radius: 7px 0 8px 0;
    background: rgba(10, 12, 12, .8);
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
    letter-spacing: .7px;
    font-variant-numeric: tabular-nums;
}

.home-video-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 14px 0 5px; font-size: 14px; font-weight: 650; line-height: 1.45; }
.home-video-meta { color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.home-scroll-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; text-align: center; }
.home-scroll-controls[hidden], .home-scroll-controls button[hidden] { display: none; }
.home-scroll-status { margin: 0; min-height: 1.5em; color: var(--home-muted); font-size: 13px; }
.home-scroll-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.home-scroll-actions button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 0; box-shadow: none; background: var(--home-panel); color: var(--home-text); font-size: 13px; }
.home-scroll-actions button:hover { color: var(--home-blue); }
.home-scroll-actions button[aria-pressed="true"] { color: var(--home-pink); }
.home-scroll-actions button[aria-disabled="true"] { color: var(--home-muted); cursor: wait; }
.home-theme .pager-dark { margin: 30px 0 12px; }
.home-theme .pager-dark .pagination { gap: 8px; }
.home-theme .pager-dark .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 40px; text-align: center; padding: 8px 12px; background: transparent !important; color: #b8bfc0; }
.home-theme .pager-dark .page-item.active .page-link { background: var(--home-panel) !important; color: #fff; border-bottom: 2px solid var(--home-accent) !important; }
.home-theme .pager-dark .page-item.disabled .page-link { color: #71797b; }
.home-theme .pager-dark a.page-link:hover { color: #fff; background: var(--home-panel) !important; }
.home-theme .site-footer { background: transparent !important; }
.home-theme .site-footer > .container { max-width: none; padding-left: 0; padding-right: 0; }
.home-theme .site-footer .text-secondary { color: var(--home-muted) !important; font-size: 11px; }
.home-theme .site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
.home-empty-state { padding: 60px 10px 80px; text-align: center; }
.home-empty-state h2 { font-size: 22px; }
.home-empty-state p { color: var(--home-muted); margin: 12px auto 24px; max-width: 380px; font-size: 14px; }
.home-empty-state a { color: #fff; font-size: 14px; }
.home-empty-state a span { margin-left: 8px; color: var(--home-accent); }
.home-skip-link { position: fixed; left: 20px; top: -100px; z-index: 1200; padding: 12px 18px; background: #fff; color: #111; }
.home-skip-link:focus { top: 12px; }
body.home-theme :is(a, button, [tabindex]):not(input, textarea, select):focus-visible { outline-color: var(--home-blue) !important; }

.home-history .home-library-heading { flex-wrap: wrap; align-items: center; }
.home-history .home-library-heading > div { flex: 1 1 260px; }
.home-history-clear { margin: 0; flex-shrink: 0; }
.home-history-clear button { min-height: 44px; padding: 10px 16px; border: 0; background: #202424; color: var(--home-pink); font-size: 13px; font-weight: 600; }
.home-history-clear button:hover { background: #2b3030; color: #fff; }
.home-history-note { max-width: 760px; margin: 12px 0 24px; color: var(--home-muted); font-size: 12px; line-height: 1.6; }
.home-history-summary { margin-bottom: 24px; }

.home-section-heading { margin-bottom: 28px; flex-wrap: wrap; }
.home-category-grid > .home-empty-state { grid-column: 1 / -1; }
.home-category-card { min-width: 0; }
.home-category-link { display: block; color: var(--home-text); }
.home-category-link:hover { color: var(--home-blue); }
.home-category-placeholder { border-radius: 9px; background: linear-gradient(135deg, #19262d, #28202a); }
.home-category-placeholder > div { display: grid; place-items: center; }
.home-category-placeholder svg { width: 34px; height: 34px; color: var(--home-blue); }
.home-category-details h2 { margin: 14px 0 6px; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.home-category-details p { margin: 0; color: var(--home-muted); font-size: 12px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-document .legal-page { max-width: 850px; margin: 0 auto; }
.home-document .legal-content { font-size: 15px; line-height: 1.8; color: #c3cacc; }
.home-document .legal-content h2 { margin: 32px 0 14px; font-size: 20px; color: var(--home-text); }
.home-document .legal-content h3 { margin: 24px 0 12px; font-size: 17px; color: var(--home-text); }
.home-document .legal-content a { color: var(--home-blue); text-decoration: underline; text-underline-offset: 3px; }
.home-document .legal-content a:hover { color: var(--home-pink); }
.home-document .legal-content li { margin-bottom: 8px; }
.home-document .legal-content img { max-width: 100%; height: auto; }
.home-document .text-secondary { color: var(--home-muted) !important; }
.home-error-state h1 { font-size: 24px; font-weight: 650; }
.home-error-code { display: block; margin-bottom: 18px; color: var(--home-blue); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -3px; }
.home-theme .btn-primary { background: var(--home-blue); color: #09131a; font-weight: 600; padding: 10px 16px; }
.home-theme .btn-primary:hover, .home-theme .btn-primary:active { background: #70caff; color: #09131a; }
.home-theme .btn-primary:disabled { background: #4d6e81; color: #dee6e9; }
.home-theme .btn-outline-light { background: #242929; color: var(--home-text); padding: 10px 16px; }
.home-theme .btn-outline-light:hover { background: #333a3a; color: #fff; }
.home-theme .age-gate-card { background: var(--home-panel) !important; }

@media (min-width: 992px) {
    .home-topbar { gap: 0; }
    .home-menu-toggle { position: fixed; left: 14px; top: 25px; z-index: 1150; width: 30px; }
    .home-nav-ready .home-sidebar-brand { padding-left: 54px; padding-right: 12px; }
    .home-nav-ready .home-sidebar-brand .home-brand { font-size: 19px; }
    .home-nav-collapsed .home-theme { --home-sidebar-width: 0px; }
    .home-nav-collapsed .home-sidebar { visibility: hidden; }
    .home-nav-collapsed .home-menu-toggle { position: static; width: 40px; }
    .home-nav-collapsed .home-mobile-brand { display: inline-flex; }
    .home-nav-collapsed .home-topbar { gap: 18px; }
}

@media (max-width: 1279.98px) {
    .home-theme { --home-gutter: 22px; --home-sidebar-width: 200px; }
    .home-library { padding: 24px; }
    .home-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (max-width: 991.98px) {
    .home-theme { --home-sidebar-width: 0px; --home-gutter: 22px; }
    .home-sidebar { position: static; width: 100%; }
    .home-sidebar-brand { display: none; }
    .home-sidebar-scroll { overflow: visible; }
    .home-sidebar-group { display: flex; flex-wrap: wrap; padding: 10px 12px; }
    .home-category-nav, .home-information-nav, .home-sidebar-footer { display: none; }
    .home-topbar { flex-wrap: wrap; gap: 14px; padding-top: 16px; padding-bottom: 20px; }
    .home-topbar-brand { width: 100%; }
    .home-search { flex-basis: 100%; }
    .home-search input { font-size: 16px; }
    .home-mobile-brand { display: inline-flex; }
    .home-icon-button { width: 44px; height: 44px; }
    .home-nav-ready .home-sidebar { position: fixed; width: 260px; transform: translateX(-100%); visibility: hidden; }
    .home-nav-ready .home-sidebar-brand { display: flex; padding: 0 18px; }
    .home-nav-ready .home-sidebar-scroll { overflow-y: auto; }
    .home-nav-ready .home-sidebar-group { display: block; padding: 6px 14px 20px; }
    .home-nav-ready .home-sidebar-group + .home-sidebar-group { padding-top: 22px; }
    .home-nav-ready .home-sidebar-footer { display: block; }
    .home-nav-open .home-sidebar { transform: none; visibility: visible; }
    .home-nav-open { overflow: hidden; }
    .home-nav-open body { overflow: hidden; }
    .home-sidebar-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .65); border: 0; padding: 0; }
}

@media (max-width: 767.98px) {
    .home-theme { --home-gutter: 16px; }
    .home-topbar { flex-wrap: wrap; padding-top: 16px; padding-bottom: 20px; gap: 14px; }
    .home-topbar-brand { width: 100%; }
    .home-search { flex-basis: 100%; }
    .home-search input { font-size: 16px; }
    .home-library { padding: 20px; }
    .home-library-heading h1 { font-size: 18px; }
    .home-result-count { font-size: 11px; }
    .home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}

@media (max-width: 479.98px) {
    .home-theme { --home-gutter: 12px; }
    .home-library { padding: 16px 12px; border-radius: 10px; }
    .home-library-heading { display: block; }
    .home-result-count { display: block; margin-top: 6px; }
    .home-listing-tabs { gap: 26px; margin-bottom: 20px; }
    .home-video-grid { gap: 24px 12px; }
    .home-video-title { font-size: 12px; margin-top: 10px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .home-video-meta { font-size: 10px; }
    .home-video-duration { padding: 2px 6px; font-size: 10px; }
    .home-theme .pager-dark .pagination { gap: 4px; }
    .home-theme .pager-dark .page-link { padding: 8px; min-width: 32px; font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    .home-library { animation: home-appear .28s ease-out both; }
    @keyframes home-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
