/* Only loaded by the opt-in AI homepage templates. */
/* The desktop nav otherwise overflows between its existing 680px breakpoint
   and the width needed by its links and account actions. */
@media (max-width: 960px) {
    #sp-nav .sp-nav-links,#sp-nav .sp-nav-right { display: none; }
    #sp-nav .sp-hamburger { display: flex; }
    #sp-nav .sp-search { max-width: none; flex: 1; }
}
.vd-preview-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.vd-feature.vd-fullbleed {
    --hero-gutter: max(72px, calc((100% - 1152px) / 2));
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0 0 24px;
}
.vd-fullbleed .vd-slides { gap: 0; border-radius: 0; }
.vd-fullbleed .vd-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 480px;
    border-radius: 0;
    background: #171719;
}
.vd-fullbleed .vd-hero-backdrop {
    filter: blur(24px) saturate(.8);
    opacity: .72;
    object-position: center 30%;
}
.vd-fullbleed .vd-hero-cover {
    position: absolute;
    inset: 0 0 0 44%;
    margin: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    z-index: -1;
}
.vd-fullbleed .vd-hero-cover img {
    padding: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
}
.vd-fullbleed .vd-hero::after {
    z-index: 0;
    background: linear-gradient(90deg,#121212 0%,rgba(18,18,18,.94) 27%,rgba(18,18,18,.65) 46%,rgba(18,18,18,.06) 68%),linear-gradient(0deg,rgba(18,18,18,.8),transparent 28%);
}
.vd-fullbleed .vd-hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 48px var(--hero-gutter) 72px;
    pointer-events: none;
}
.vd-fullbleed .vd-hero-copy a { pointer-events: auto; }
.vd-fullbleed .vd-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    font-size: 12px;
    letter-spacing: .08em;
    margin: 0 0 18px;
}
.vd-fullbleed .vd-eyebrow strong { color: #fff; font-size: 14px; letter-spacing: .02em; }
.vd-fullbleed .vd-eyebrow strong::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    margin-right: 9px;
    background: var(--accent,#e63946);
}
.vd-fullbleed .vd-hero h3 {
    max-width: 520px;
    font-size: clamp(32px,3.3vw,48px);
    line-height: 1.25;
    margin: 0 0 18px;
    text-wrap: balance;
    text-shadow: 0 2px 20px #0008;
}
.vd-fullbleed .vd-summary { max-width: 440px; margin-bottom: 14px; color: #ddd; }
.vd-fullbleed .vd-summary:empty { display: none; }
.vd-fullbleed .vd-meta { color: #ccc; }
.vd-fullbleed .vd-card-tags { max-width: 440px; }
.vd-fullbleed .vd-actions { margin-top: 24px; gap: 24px; }
.vd-fullbleed .vd-more { color: #eee; }
.vd-fullbleed .vd-slider-controls { z-index: 2; }
.vd-fullbleed .vd-slider-controls [data-vd-prev] { left: 16px; }
.vd-fullbleed .vd-slider-controls [data-vd-next] { right: 16px; }
.vd-fullbleed .vd-slider-status { right: var(--hero-gutter); bottom: 20px; color: #eee; }
@media (max-width: 900px) and (min-width: 601px) {
    .vd-fullbleed .vd-hero h3 { max-width: 55%; font-size: 34px; }
    .vd-fullbleed .vd-summary { max-width: 50%; }
}
@media (max-width: 600px) {
    .vd-feature.vd-fullbleed { --hero-gutter: 22px; margin-bottom: 12px; }
    .vd-fullbleed .vd-hero {
        min-height: 480px;
        min-height: clamp(440px,65svh,520px);
        align-items: end;
    }
    .vd-fullbleed .vd-hero-cover { inset: 0 0 auto; height: 100%; grid-row: auto; }
    .vd-fullbleed .vd-hero-cover img { object-fit: cover; object-position: center 24%; }
    .vd-fullbleed .vd-hero::after {
        background: linear-gradient(0deg,#121212 0%,rgba(18,18,18,.94) 17%,rgba(18,18,18,.72) 36%,rgba(18,18,18,.08) 68%,rgba(18,18,18,.12) 100%);
    }
    .vd-fullbleed .vd-hero-copy { align-self: end; padding: 210px 22px 52px; }
    .vd-fullbleed .vd-eyebrow { margin-bottom: 10px; font-size: 11px; }
    .vd-fullbleed .vd-hero h3 { max-width: 100%; font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
    .vd-fullbleed .vd-summary,.vd-fullbleed .vd-card-tags { display: none; }
    .vd-fullbleed .vd-meta { margin: 0; gap: 6px 12px; }
    .vd-fullbleed .vd-actions { margin-top: 18px; gap: 16px; }
    .vd-fullbleed .vd-primary { padding: 12px 20px; }
    .vd-fullbleed .vd-slider-controls button { top: 35%; background: #12121280; }
    .vd-fullbleed .vd-slider-controls [data-vd-prev] { left: 12px; }
    .vd-fullbleed .vd-slider-controls [data-vd-next] { right: 12px; }
    .vd-fullbleed .vd-slider-status { bottom: 12px; padding: 3px 8px; font-size: 12px; }
}
@media (max-width: 360px) {
    .vd-fullbleed .vd-hero-copy { padding-inline: 18px; }
    .vd-fullbleed .vd-hero h3 { font-size: 25px; }
    .vd-fullbleed .vd-actions { gap: 12px; }
}

/* A compact editorial shelf bridges the full-bleed feature and the catalog. */
.hp-preview { --content-width: 1200px; }
.hp-preview .vd-feature.vd-fullbleed { margin-bottom: 0; }
.hp-shelf { padding-top: 28px; padding-bottom: 28px; }
.hp-shelf-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hp-shelf-header h2 { margin: 0; color: #f5f5f5; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; }
.hp-shelf-actions { display: flex; align-items: center; gap: 24px; }
.hp-shelf-actions > a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; color: #bdbdbd; white-space: nowrap; }
.hp-shelf-controls { display: flex; gap: 8px; }
.hp-shelf-controls[hidden] { display: none; }
.hp-shelf-controls button { width: 44px; height: 44px; border: 1px solid #ffffff26; border-radius: 50%; background: transparent; color: #eee; font-size: 28px; cursor: pointer; }
.hp-shelf-controls button:disabled { opacity: .3; cursor: default; }
.hp-shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #ffffff30 transparent; padding-bottom: 12px; }
.hp-video { display: block; min-width: 0; color: #eee; text-decoration: none; scroll-snap-align: start; }
.hp-video-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #202023; }
.hp-video-cover > img,.hp-video-cover .cropped { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hp-video-cover .canvas-fit { object-fit: contain; }
.hp-video-title { margin-top: 12px; font-size: 15px; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hp-video:focus-visible,.hp-shelf-track:focus-visible,.hp-shelf-actions a:focus-visible,.hp-shelf-controls button:focus-visible { outline: 2px solid #f07079; outline-offset: 3px; }
.hp-content-split { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 32px; align-items: start; }
.hp-rank { padding-top: 48px; min-width: 0; }
.hp-preview .sp-section { margin-top: 32px; }
.hp-preview .sp-section-title { font-size: 22px; letter-spacing: -.02em; }
.hp-preview .sp-section-title::before { display: none; }
.hp-preview .sp-card { background: transparent; }
.hp-preview .sp-card-cover { border-radius: 8px; }
@media (hover: hover) {
    .hp-video:hover .hp-video-title,.hp-shelf-actions > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
    .hp-shelf-controls button:hover:not(:disabled) { background: #ffffff12; }
}
@media (max-width: 1000px) {
    .hp-content-split { grid-template-columns: minmax(0,1fr); }
    .hp-rank { padding-top: 0; }
    .hp-shelf-track { grid-auto-columns: calc((100% - 48px) / 3.4); gap: 16px; }
}
@media (max-width: 600px) {
    .hp-preview .sp-container { padding-inline: 20px; }
    .hp-shelf { padding-top: 22px; padding-bottom: 12px; }
    .hp-shelf-header { gap: 12px; margin-bottom: 12px; }
    .hp-shelf-header h2,.hp-preview .sp-section-title { font-size: 21px; }
    .hp-shelf-actions { gap: 0; }
    .hp-shelf-controls { display: none; }
    .hp-shelf-track { grid-auto-columns: 44%; gap: 12px; margin-right: -20px; padding-right: 20px; scroll-padding-left: 0; }
    .hp-video-title { font-size: 14px; margin-top: 10px; }
    .hp-preview .sp-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 8px; padding: 16px 0; }
    .hp-preview .sp-tag { flex-shrink: 0; min-height: 40px; display: inline-flex; align-items: center; }
    .hp-preview .sp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
    .hp-preview .pc_gg_div { display: block; border-block: 1px solid #ffffff12; padding-block: 16px; }
    .hp-preview .pc_gg_div_18 { width: auto; margin-bottom: 12px; }
    .hp-preview .pc_gg_li { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .hp-preview .pc_gg_li li { float: none; width: auto; margin: 0; padding: 0; line-height: 1.4; }
    .hp-preview .sp-friendship-sub { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}

.hp-video-meta { margin-top: 5px; color: #aaa; font-size: 12px; line-height: 1.5; }
.hp-video-play { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #121212b3; color: #fff; font-size: 12px; }
.hp-video-cover.vd-cover,.hp-video-cover.vd-cover img { background: #202023; }
