/* VelaStory’s rounded cinema system.  Kept last in the cascade so the
   decorative treatment is consistent across the catalogue, player and handoff. */
:root{--vela-radius-card:16px;--vela-radius-control:14px;--vela-radius-panel:24px}

/* The few visible scroll rails use the same restrained coral as the brand. */
.vela-site .collection-shelf .rail,#discovery-modal .category-options{scrollbar-width:thin;scrollbar-color:rgb(255 98 87 / 30%) transparent}
@supports selector(::-webkit-scrollbar){
 .vela-site .collection-shelf .rail,#discovery-modal .category-options{scrollbar-width:auto;scrollbar-color:auto}
 .vela-site .collection-shelf .rail::-webkit-scrollbar,#discovery-modal .category-options::-webkit-scrollbar{display:block;width:4px;height:4px}
 .vela-site .collection-shelf .rail::-webkit-scrollbar-track,#discovery-modal .category-options::-webkit-scrollbar-track{background:transparent}
 .vela-site .collection-shelf .rail::-webkit-scrollbar-thumb,#discovery-modal .category-options::-webkit-scrollbar-thumb{background:rgb(255 98 87 / 30%);border-radius:999px}
 .vela-site .collection-shelf .rail::-webkit-scrollbar-thumb:hover,#discovery-modal .category-options::-webkit-scrollbar-thumb:hover{background:rgb(255 98 87 / 45%)}
}

/* Browsing */
.vela-site .card,.vela-site .card-art,.vela-site .card img{border-radius:var(--vela-radius-card)}
.vela-site .card{overflow:visible}.vela-site .card-art{box-shadow:0 8px 24px #0004}
.vela-site .card:hover .card-art{box-shadow:0 16px 34px #0008}
.vela-site .primary,.handoff-page .primary{border-radius:16px}
.vela-site .quiet,.handoff-page .quiet,.vela-site .search-box{border-radius:14px}
.vela-site .header-actions .quiet{border-radius:12px}
.vela-site .shelf-arrow,.vela-site .feature-controls .icon-button,.vela-site .close{border-radius:50%}
.vela-site .search-box{padding-right:5px}
.vela-site .search-box input{border-radius:10px}
.vela-site .story-spotlight,.vela-site .plans{border-radius:var(--vela-radius-panel)}

/* Keep the hero cinematic, but give it the same deliberate soft frame as the rest
   of the product.  The art, fade and sampled ambient backdrop are untouched. */
.vela-site #featured-stories.feature-carousel{border-radius:28px}
.vela-site #featured-stories .feature-slide{border-radius:inherit}
.vela-site #featured-stories .feature-primary{border-radius:16px}
.vela-site #featured-stories .feature-controls .icon-button{background:#1f1f1f;border:1px solid #ffffff22}
.vela-site #featured-stories .feature-controls .icon-button:hover{background:#313131;border-color:#ffffff55}

/* Details and the library are sheets, not square windows. */
.vela-site .detail-dialog,.vela-site .account-dialog,.vela-site .library-dialog{border-radius:var(--vela-radius-panel)}
.vela-site .detail-layout>img,.vela-site .library-story>img{border-radius:16px}
.vela-site .detail-art-shell{position:relative;overflow:hidden;aspect-ratio:2/3;border-radius:16px;background:#202020;min-height:0}
.vela-site .detail-art-shell>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.vela-site .episodes button{border-radius:12px}
.vela-site .detail-episode-button{border-radius:12px!important}
.vela-site .detail-episode-button>.coin-price-chip{border-radius:0 12px 0 10px}
.vela-site .library-tabs .quiet{border-radius:12px}
.vela-site .viewer-toast{border-radius:16px}

/* Handoff uses the same dark/coral cinema language. */
.handoff-page .handoff-phone,.handoff-page .handoff-poster{border-radius:18px}
.handoff-page .handoff-phone-play{border-radius:12px}
.handoff-page .handoff-actions>a{border-radius:16px}

/* Full-screen playback remains edge-to-edge.  Its transient surfaces are rounded. */
#player-modal .hud-episode-panel{border-radius:20px}
#player-modal .hud-episode{border-radius:12px}
#player-modal .player-message .hook-poster{border-radius:16px}
#player-modal .player-message .primary,#player-modal .player-message .quiet{border-radius:14px}

@media(max-width:700px){
 .vela-site #featured-stories.feature-carousel{border-radius:22px}
 .vela-site .card,.vela-site .card-art,.vela-site .card img{border-radius:14px}
 .vela-site .detail-dialog,.vela-site .account-dialog,.vela-site .library-dialog{border-radius:22px}
}

/* One loading surface stays mounted from the HTML response until hero decode.
   The highlight exits completely before restarting: no alternating direction. */
@keyframes velaArtworkShimmer{from{background-position:200% 0}to{background-position:-200% 0}}
#featured-stories .feature-placeholder,
.vela-site .shelf-skeleton>div,.vela-site .skeleton-card,.vela-site .poster-skeleton,
.vela-site .card.art-loading,.vela-site .story-spotlight.art-loading,.vela-site .detail-art-shell.art-loading,
.vela-site .loading-line,#account-modal .account-skeleton span{
 background-color:#202020;background-image:linear-gradient(100deg,transparent 35%,#ffffff08 44%,#ffffff17 50%,#ffffff08 56%,transparent 65%);
 background-size:220% 100%;background-repeat:no-repeat;animation:velaArtworkShimmer 2s linear infinite;
 border-radius:var(--vela-radius-card);
}
#featured-stories .feature-placeholder{position:absolute;inset:0;z-index:5;width:100%;height:100%;padding:0;border-radius:inherit;pointer-events:none}
#featured-stories .feature-placeholder[hidden]{display:none}
#featured-stories .hero-skeleton-copy{position:absolute;left:32px;bottom:92px;width:min(42%,430px);display:flex;flex-direction:column;gap:16px}
#featured-stories .hero-skeleton-copy span{display:block;height:14px;width:30%;background:#ffffff09;border-radius:12px}
#featured-stories .hero-skeleton-copy span:nth-child(2){width:100%;height:88px}
#featured-stories .hero-skeleton-copy span:nth-child(3){width:180px;max-width:100%;height:54px;margin-top:12px}
#featured-stories .hero-skeleton-poster{position:absolute;inset:20px 20px 20px auto;width:44%;border-radius:22px;background:#ffffff04}
#featured-stories.is-loading .feature-heading,#featured-stories.is-loading .feature-navigation{visibility:hidden;pointer-events:none}
#featured-stories .feature-slide.art-loading .feature-story,#featured-stories .feature-slide.art-loading .feature-visual{visibility:hidden;animation:none}
#featured-stories .feature-slide.art-loading .feature-backdrop{opacity:0}
.vela-site .card.art-loading .card-art{background:transparent;box-shadow:none;border-color:transparent}
.card.art-loading .card-art>img,.detail-art-shell.art-loading>img{opacity:0}
.card.art-loading>h3,.card.art-loading>p{opacity:0}
.card>h3,.card>p,.card .card-art>img,.detail-art-shell>img{transition:opacity .2s ease}
.card.art-failed .card-art,.detail-art-shell.art-failed{background:#202020}
.card.art-failed>h3,.card.art-failed>p{opacity:1}
#featured-stories .feature-placeholder::after,.vela-site .shelf-skeleton>div::after,.vela-site .poster-skeleton::after,.vela-site .loading-line::after,.vela-site .card-art::before{content:none;animation:none}
body.vela-site .header-actions .quiet{border:0!important;border-radius:14px!important;background:transparent;box-shadow:none;outline:none}
body.vela-site .header-actions .quiet:hover{background:#ffffff0c}
body.vela-site .header-actions .quiet:focus-visible{outline:2px solid #ff857b;outline-offset:3px}
#featured-stories .feature-controls .icon-button{border-radius:50%!important}
@media(max-width:700px){
 #featured-stories .hero-skeleton-copy{left:20px;right:20px;bottom:78px;width:auto;z-index:1}
 #featured-stories .hero-skeleton-copy span:nth-child(2){height:66px;width:90%}
 #featured-stories .hero-skeleton-poster{inset:16px 16px 180px;width:auto;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){
 #featured-stories .feature-placeholder,.vela-site .shelf-skeleton>div,.vela-site .skeleton-card,.vela-site .poster-skeleton,
 .vela-site .card.art-loading,.vela-site .story-spotlight.art-loading,.vela-site .detail-art-shell.art-loading,.vela-site .loading-line,#account-modal .account-skeleton span{animation:none;background-image:none}
 .card>h3,.card>p,.card .card-art>img,.detail-art-shell>img{transition:none}
}

/* Discovery is a centered, bounded sheet with the same rounded controls. */
body.vela-site #discovery-modal{inset:0;margin:auto;width:min(1040px,calc(100% - 48px));height:min(820px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);padding:28px;border:1px solid #ffffff18;border-radius:28px;box-shadow:0 28px 100px #0009;scrollbar-width:none}
body.vela-site #discovery-modal::backdrop{background:#000b;backdrop-filter:blur(12px)}
body.vela-site #discovery-modal .discovery-heading{padding-bottom:18px;margin-bottom:8px}
body.vela-site #discovery-modal .discovery-heading button{width:44px;height:44px;padding:0;border-radius:50%}
body.vela-site #discovery-modal .search-box{border-radius:18px;border:1px solid #ffffff30;transition:border-color .18s,box-shadow .18s}
body.vela-site #discovery-modal .search-box:focus-within{border-color:#ff625799;box-shadow:0 0 0 3px #ff625712}
body.vela-site #discovery-modal .category-options{gap:8px;padding:4px 3px 12px;max-height:156px}
body.vela-site #discovery-modal .category-options button{border-radius:999px;min-height:40px;padding:9px 15px;border-color:#ffffff20;transition:background .18s,border-color .18s}
body.vela-site #discovery-modal .category-options button:hover{border-color:#ffffff55;background:#333}
body.vela-site #discovery-modal .category-options button[aria-pressed=true]{background:#fff;border-color:#fff;color:#111}
@media(max-width:700px){body.vela-site #discovery-modal{width:calc(100% - 24px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:20px 16px;border-radius:24px}body.vela-site #discovery-modal .discovery-heading h2{font-size:22px}body.vela-site #discovery-modal .category-options button{font-size:12px;padding:8px 12px}}

/* Source home sections: bounded rails, compact double rows and a paginated catalog. */
.vela-site .home-section .home-section-items{align-items:start;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.vela-site .home-section .home-section-card{scroll-snap-align:start}
.vela-site .home-section-trending .home-section-items,.vela-site .home-section-releases .home-section-items{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:270px;gap:18px 16px;overflow-x:auto}
.vela-site .home-section-trending .home-section-card{width:270px;min-width:0}
.vela-site .home-section-trending .card-art,.vela-site .home-section-trending .card img{aspect-ratio:16/9}
.vela-site .home-section-trending .card img{object-position:50% 30%}
.vela-site .home-watch-count{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#000a;color:#fff;font-size:11px;font-weight:650;line-height:1}
.vela-site .home-watch-count svg{width:12px;height:12px}
.vela-site .home-section-ranked .card-art{isolation:isolate}
.vela-site .home-rank{position:absolute;z-index:1;left:0;top:0;display:grid;place-items:center;min-width:36px;height:36px;padding:0 8px;border-radius:16px 0 14px 0;background:linear-gradient(145deg,#ff8974,#e84339);color:#fff;font-size:21px;font-weight:850;box-shadow:0 3px 15px #0005}
.vela-site .home-card-play{position:absolute;bottom:10px;right:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#0009;color:#fff}
.vela-site .home-card-play svg{width:15px;height:15px}
.vela-site .home-section-releases .home-section-items{grid-auto-columns:340px;grid-template-rows:repeat(2,126px);gap:16px}
.vela-site .home-section-releases .home-section-card{width:340px;min-width:0;min-height:0;height:126px;display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center}
.vela-site .home-section-releases .card-art,.vela-site .home-section-releases .card img{height:126px;aspect-ratio:2/3}
.vela-site .home-release-copy{display:flex;min-width:0;flex-direction:column;gap:7px;padding-right:6px}
.vela-site .home-section-releases .home-release-copy h3{font-size:14px;line-height:1.35;min-height:0;margin:0;-webkit-line-clamp:2}
.vela-site .home-section-releases .home-release-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#ff8b82}
.vela-site .home-release-synopsis{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#aaa;font-size:12px;line-height:1.45}
.vela-site .home-section-releases .card-cue{display:none}
.vela-site .home-section-releases .home-card-play{width:24px;height:24px;right:7px;bottom:7px}
.vela-site .home-section-grid .home-section-items{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 14px;overflow:visible;scroll-snap-type:none}
.vela-site .home-section-grid .home-section-card{width:100%;min-width:0;flex-basis:auto}
.vela-site .home-catalog-footer{display:flex;align-items:center;justify-content:center;gap:12px;min-height:76px;flex-wrap:wrap;padding-top:14px}
.vela-site .home-catalog-status{font-size:13px;color:#aaa}
.vela-site .home-catalog-more{border-radius:999px;font-size:13px}
@media(max-width:1050px){.vela-site .home-section-grid .home-section-items{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 .vela-site .home-section-trending .home-section-items{grid-auto-columns:220px;gap:14px 12px}
 .vela-site .home-section-trending .home-section-card{width:220px}
 .vela-site .home-section-releases .home-section-items{grid-auto-columns:min(290px,calc(100vw - 48px));grid-template-rows:repeat(2,114px);gap:14px 12px}
 .vela-site .home-section-releases .home-section-card{width:100%;grid-template-columns:76px minmax(0,1fr);height:114px;gap:10px}
 .vela-site .home-section-releases .card-art,.vela-site .home-section-releases .card img{height:114px}
 .vela-site .home-section-releases .home-release-copy h3{font-size:13px}
 .vela-site .home-section-grid .home-section-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
}

.vela-site .home-view-all{border:0;background:transparent;padding:8px 4px;font-size:12px;font-weight:600;color:#bcbcbc;white-space:nowrap}
.vela-site .home-view-all:hover{color:#fff}
.vela-site .home-section-grid .home-section-items{scroll-margin-top:108px}
.vela-site .home-collection-dialog{inset:0;margin:auto;width:min(1040px,calc(100% - 48px));max-height:calc(100dvh - 64px);padding:26px;border:1px solid #ffffff20;border-radius:28px;background:#131313;color:#fff;overscroll-behavior:contain}
.vela-site .home-collection-dialog::backdrop{background:#000b;backdrop-filter:blur(12px)}
.vela-site .home-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.vela-site .home-collection-heading h2{font-size:26px;margin:0}
.vela-site .home-collection-close{border:0;border-radius:50%;padding:0;width:42px;height:42px;min-width:42px;font-size:28px;line-height:1}
.vela-site .home-collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 14px}
.vela-site .home-collection-grid .card{width:100%;min-width:0;flex-basis:auto}
@media(max-width:700px){.vela-site .home-view-all{font-size:11px}.vela-site .home-section .shelf-controls{gap:7px}.vela-site .home-collection-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:20px 16px;border-radius:24px}.vela-site .home-collection-heading h2{font-size:22px}.vela-site .home-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}}

/* Balance the navigation around Search, independently of the logo/account widths. */
body.vela-site .site-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
body.vela-site .site-header>.logo{justify-self:start}
body.vela-site .site-header>.header-actions{justify-self:end}
body.vela-site .site-header nav{display:grid;grid-template-columns:1fr auto 1fr;gap:24px;justify-content:center}
body.vela-site .site-header nav>#nav-discover{justify-self:end}
body.vela-site .site-header nav>a{justify-self:start}
body.vela-site #discovery-modal .section-heading{width:100%;margin-inline:auto}
body.vela-site #discovery-modal .search-box{width:min(100%,760px);margin-inline:auto}
@media(max-width:1000px){
 body.vela-site .site-header{grid-template-columns:minmax(0,1fr) auto;gap:6px 14px}
 body.vela-site .site-header nav{grid-row:2;grid-column:1/-1;width:100%;gap:24px}
}

/* Editorial Spotlight has its own lazy image and keeps its frame before decode. */
.vela-site .story-spotlight{padding:24px;gap:28px;border:0;border-radius:24px}
.vela-site .spotlight-art{width:180px;height:270px;aspect-ratio:2/3;border-radius:16px;overflow:hidden;background:#ffffff04}
.vela-site .spotlight-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;transition:opacity .24s ease}
.vela-site .story-spotlight.art-loading .spotlight-art img{opacity:0}
.vela-site .story-spotlight.art-loading .spotlight-copy{visibility:hidden}
.vela-site .story-spotlight.art-failed .spotlight-art::after{content:'Artwork unavailable';position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#aaa;text-align:center}
.vela-site .spotlight-art{position:relative}
@media(max-width:700px){
 .vela-site .story-spotlight{padding:18px;gap:18px;grid-template-columns:108px minmax(0,1fr)}
 .vela-site .spotlight-art{width:108px;height:162px;border-radius:14px}
}
@media(prefers-reduced-motion:reduce){.vela-site .spotlight-art img{transition:none}}
