.ca-topic-carousel{display:flex;align-items:center;gap:8px;min-width:0}.ca-topic-carousel .quick-topic-pills{display:flex;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:10px;flex:1;margin:0;padding:8px 0}.ca-topic-carousel .topic-pill{flex:0 0 auto;white-space:nowrap}.ca-topic-carousel>button{flex:0 0 30px;width:30px;height:32px;background:var(--panel,#171717);color:var(--text,#fff);border:1px solid var(--line,#555);border-radius:5px;font-size:24px;cursor:pointer}
.ca-browse-tabs{display:flex;max-width:100%;overflow-x:auto;border:1px solid var(--accent,#f5c518);border-radius:24px;width:max-content}.ca-browse-tabs button{white-space:nowrap;background:transparent;color:var(--text,#fff);border:0;border-radius:22px;padding:7px 20px;font-weight:700;cursor:pointer}.ca-browse-tabs button[aria-pressed=true]{background:var(--accent,#f5c518);color:#080808}.ca-browse-switch [hidden]{display:none!important}.ca-browse-switch .section-head{justify-content:flex-start;gap:22px;flex-wrap:wrap}.ca-free-home-section .title-card{flex:0 0 160px}.ca-latest-trailers{padding:22px 18px;background:linear-gradient(120deg,var(--panel,#191919),var(--bg,#000));border-radius:10px}.ca-latest-trailer-row{display:flex;gap:20px;overflow-x:auto;padding-bottom:14px;scroll-snap-type:x proximity}.ca-latest-trailer{flex:0 0 300px;text-align:center;scroll-snap-align:start}.ca-latest-trailer>button{display:block;width:100%;aspect-ratio:16/9;position:relative;background:#111;padding:0;border:0;border-radius:8px;overflow:hidden;cursor:pointer}.ca-latest-trailer img{width:100%;height:100%;object-fit:cover}.ca-latest-trailer button>span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff;text-shadow:0 2px 10px #000}.ca-latest-trailer button:hover>span{color:var(--accent,#f5c518)}.ca-latest-trailer h3{font-size:17px;margin:12px 0 3px}.ca-latest-trailer p{font-size:14px;color:var(--muted,#aaa);margin:0}.ca-browse-tabs button:focus-visible,.ca-topic-carousel>button:focus-visible{outline:2px solid var(--accent,#f5c518);outline-offset:2px}
@media(max-width:680px){.ca-latest-trailer{flex-basis:260px}.ca-browse-tabs button{padding:7px 14px}.ca-topic-carousel>button{display:none}.ca-topic-carousel .quick-topic-pills{padding:10px 4px}.ca-latest-trailers{padding:18px 10px}}

/* Categories end at the same grid line as the main hero, before Up next. */
@media(min-width:861px){
 .home-main [data-ca-home-block="topics"]{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(300px,1fr);gap:16px}
 .home-main [data-ca-home-block="topics"]>.ca-topic-carousel{grid-column:1;min-width:0;width:100%}
}
@media(min-width:861px) and (max-width:1100px){.home-main [data-ca-home-block="topics"]{grid-template-columns:1.85fr 1fr}}

/* Compact centered category controls, with an actual mouse-drag track. */
.ca-topic-carousel>button{display:grid;place-items:center;flex-basis:32px;width:32px;height:32px;padding:0;line-height:1;border-radius:4px}
.ca-topic-carousel>button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ca-topic-carousel>button:hover{color:var(--accent,#f5c518);border-color:var(--accent,#f5c518)}
.home-main .quick-topic-pills .topic-pill{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:0;min-height:28px;padding:4px 13px;line-height:1.3;transition:color .15s,border-color .15s,background-color .15s;text-decoration:none}
.home-main .quick-topic-pills .topic-pill:hover,.home-main .quick-topic-pills .topic-pill:focus-visible{color:var(--accent,#f5c518);border-color:var(--accent,#f5c518);text-decoration:none}
.home-main .quick-topic-pills .topic-pill.is-selected,.home-main .quick-topic-pills .topic-pill[aria-current=true]{background:var(--accent,#f5c518);border-color:var(--accent,#f5c518);color:#000}
.quick-topic-pills{cursor:grab;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}.quick-topic-pills.ca-is-dragging,.quick-topic-pills.ca-is-dragging .topic-pill{cursor:grabbing}
@media(max-width:680px){.ca-topic-carousel>button{display:none}}

/* The ad occupies the featured row only; both lower shelves span the catalog. */
.home-main [data-ca-home-block="discovery"]{grid-template-areas:"featured advertising" "free free" "trailers trailers";grid-template-rows:auto auto auto;align-items:start}
.home-main [data-ca-home-block="discovery"]>.featured-today-section{grid-area:featured;margin-top:0;min-width:0}
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{grid-area:advertising;margin-top:0;align-self:start;min-width:0}
.home-main [data-ca-home-block="discovery"]>.ca-free-home-section{grid-area:free;min-width:0;width:100%}
.home-main [data-ca-home-block="discovery"]>.ca-latest-trailers{grid-area:trailers;min-width:0;width:100%;box-sizing:border-box}
.home-main .ca-free-home-section .title-card{flex:initial}
.ca-latest-trailer-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 60px)/4);gap:20px}
.ca-latest-trailer{min-width:0}.ca-latest-trailer img{object-fit:contain;background:#080808}
@media(max-width:1000px){.home-main [data-ca-home-block="discovery"]{grid-template-areas:"featured" "advertising" "free" "trailers";grid-template-columns:minmax(0,1fr)}.ca-latest-trailer-row{grid-auto-columns:calc((100% - 40px)/3)}}
@media(max-width:680px){.ca-latest-trailer-row{grid-auto-columns:85%}}
.ca-topic-carousel>button,.ca-free-home-section .scroll-row,.featured-today-section .scroll-row{color:var(--accent,#f5c518)}

/* A fixed 300x250 request cannot turn this row into a tall responsive ad. */
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{min-height:0;align-self:stretch;margin:0;width:300px}
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-height:0;height:100%;margin:0;padding:12px 0;width:300px}
.home-main [data-ca-home-block="discovery"] .ca-fixed-featured-ad{flex:0 0 250px;width:300px!important;height:250px!important}
.home-main [data-ca-home-block="discovery"] .ca-home-ad-space .ca-image-ad img{width:auto;max-width:300px;max-height:250px;object-fit:contain}
@media(max-width:1000px){.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{justify-self:center;align-self:start}.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad{height:auto}}
/* Advertising label aligns with the section heading; the unit is centered below. */
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{display:flex;justify-content:center;min-width:0}
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad{display:grid;grid-template-columns:300px;grid-template-rows:48px minmax(250px,1fr);justify-content:center;justify-items:center;align-items:center;padding:0;border:0;text-align:center}
.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad>span{margin:0;align-self:center;justify-self:center;text-align:center;width:100%;line-height:1.3}
.home-main [data-ca-home-block="discovery"] .ca-fixed-featured-ad{display:block!important;margin:0!important;justify-self:center;align-self:center}
@media(max-width:1000px){.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad{grid-template-rows:32px 250px}}

/* Equal vertical centers for the rail, its pills and both arrow buttons. */
.ca-topic-carousel{align-items:center}
.ca-topic-carousel .quick-topic-pills{position:relative;align-items:center;height:44px;padding:0;line-height:normal;scrollbar-width:none}
.ca-topic-carousel .quick-topic-pills::-webkit-scrollbar{display:none}
.ca-topic-carousel .topic-pill{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:30px;line-height:1.3;text-align:center;white-space:nowrap;gap:0;text-decoration:none}
.ca-topic-carousel .topic-pill:hover,.ca-topic-carousel .topic-pill:focus-visible{color:var(--accent,#f5c518);border-color:var(--accent,#f5c518);text-decoration:none}
.ca-topic-carousel .topic-pill.is-selected,.ca-topic-carousel .topic-pill[aria-current=page]{background:var(--accent,#f5c518);border-color:var(--accent,#f5c518);color:#000}
.ca-topic-catalog{width:100%;margin:16px 0 22px}.ca-topic-catalog .quick-topic-pills{height:52px}.ca-topic-catalog .topic-pill{min-height:40px;padding:8px 18px;font-size:15px}
.home-main [data-ca-home-block="discovery"] .ca-featured-fit-ad{height:100%!important;min-height:250px;align-self:stretch;box-sizing:border-box}
/* Mobile pass is limited to the new discovery shelves and category controls. */
@media(max-width:680px){
 .home-main .ca-browse-switch .section-head{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:16px}
 .home-main .ca-browse-switch .section-head h2,.home-main .ca-popular-shelf .section-head h2{font-size:21px;line-height:1.25;margin:0}
 .ca-browse-tabs{box-sizing:border-box;max-width:100%;min-width:0;scrollbar-width:none;flex-shrink:1}
 .ca-browse-tabs::-webkit-scrollbar,.ca-popular-tabs::-webkit-scrollbar{display:none}
 .ca-browse-tabs button,.ca-popular-tabs a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;font-size:13px;line-height:1.2;box-sizing:border-box;flex-shrink:0}
 .home-main .ca-free-home-section .card-row,.home-main .ca-popular-shelf .card-row{grid-auto-columns:clamp(140px,42vw,180px);gap:12px}
 .home-main .ca-free-home-section .card-body,.home-main .ca-popular-shelf .card-body{padding:10px}
 .home-main .ca-free-home-section .card-body h3,.home-main .ca-popular-shelf .card-body h3{font-size:14px;line-height:1.35}
 .home-main .ca-free-home-section .watch-button,.home-main .ca-free-home-section .trailer-link,.home-main .ca-popular-shelf .watch-button,.home-main .ca-popular-shelf .trailer-link{min-height:40px;font-size:12px}
 .home-main .ca-latest-trailers{padding:18px 12px}
 .ca-latest-trailer-row{grid-auto-columns:minmax(0,88%);gap:14px;scroll-snap-type:x proximity}
 .ca-latest-trailer h3{font-size:15px;line-height:1.3;margin:10px 0 4px}.ca-latest-trailer p{font-size:13px;line-height:1.4}
 .ca-latest-trailer button>span{font-size:38px}
 .ca-topic-carousel .quick-topic-pills{height:46px}.ca-topic-carousel .topic-pill{min-height:36px;font-size:13px;padding:7px 14px}
 .ca-topic-catalog .quick-topic-pills{height:52px}.ca-topic-catalog .topic-pill{min-height:42px;font-size:14px;padding:9px 16px}
 .home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{max-width:100%}
 .home-main [data-ca-home-block="discovery"]{row-gap:24px}
}
@media(max-width:340px){.home-main [data-ca-home-block="discovery"]>.ca-home-ad-space{display:none}}
@media(max-width:680px){.home-main .ca-free-home-section .ca-shelf-wrap,.home-main .ca-popular-shelf .ca-shelf-wrap{overflow:hidden}.home-main .ca-free-home-section .ca-shelf-wrap>.scroll-row,.home-main .ca-popular-shelf .ca-shelf-wrap>.scroll-row{right:0}}
@media(min-width:681px) and (max-width:1000px){.home-main .ca-free-home-section .ca-shelf-wrap,.home-main .ca-popular-shelf .ca-shelf-wrap{overflow:hidden}.home-main .ca-free-home-section .ca-shelf-wrap>.scroll-row,.home-main .ca-popular-shelf .ca-shelf-wrap>.scroll-row{right:0}}

/* Equal, non-shrinking controls and a symmetric category rail. */
.ca-topic-carousel>button[data-ca-topic-dir]{box-sizing:border-box;flex:0 0 32px;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;margin:0;padding:0;align-self:center;justify-self:center}
.ca-topic-carousel>button[data-ca-topic-dir] svg{width:20px;height:20px;margin:0;flex:none}
.ca-topic-carousel .quick-topic-pills{min-width:0;margin:0;padding-block:0;box-sizing:border-box;align-items:center}
.home-main [data-ca-home-block="topics"] .ca-topic-carousel .quick-topic-pills{height:76px;min-height:76px;margin:0;padding:18px 0;align-items:center}
.ca-topic-carousel .quick-topic-pills .topic-pill{margin-block:0;align-self:center;justify-content:center;align-items:center}
@media(max-width:680px){.home-main [data-ca-home-block="topics"] .ca-topic-carousel .quick-topic-pills{height:69px;min-height:69px;padding:12px 0}}

/* Match the featured covers: 28px heading × 1.25 + 18px bottom margin. */
@media(min-width:1001px){
 .home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad{grid-template-rows:53px minmax(250px,1fr)}
 .home-main [data-ca-home-block="discovery"]>.ca-home-ad-space .ca-display-ad>span{position:relative;top:-2.5px}
}

/* Compact touch rail: only the category pills and an accent scroll indicator. */
@media(max-width:680px){
 .home-main [data-ca-home-block="topics"]{border:0!important;padding:0 8px!important;margin:0!important}
 .home-main [data-ca-home-block="topics"] .ca-topic-carousel .quick-topic-pills{height:48px;min-height:48px;padding:5px 0;scrollbar-width:thin;scrollbar-color:var(--accent,#f5c518) transparent}
 .home-main [data-ca-home-block="topics"] .ca-topic-carousel .quick-topic-pills::-webkit-scrollbar{display:block;height:3px}
 .home-main [data-ca-home-block="topics"] .quick-topic-pills::-webkit-scrollbar-thumb{background:var(--accent,#f5c518);border-radius:4px}
 .home-main [data-ca-home-block="topics"] .quick-topic-pills::-webkit-scrollbar-track{background:transparent}
}
.ca-latest-trailer-row{scrollbar-width:thin;scrollbar-color:var(--accent,#f5c518) transparent}
.ca-latest-trailer-row::-webkit-scrollbar{height:5px}.ca-latest-trailer-row::-webkit-scrollbar-thumb{background:var(--accent,#f5c518);border-radius:5px}.ca-latest-trailer-row::-webkit-scrollbar-track{background:transparent}

/* Keep each mobile trailer in its own non-shrinking horizontal card. */
@media(max-width:680px){
 .home-main .ca-latest-trailers [data-ca-browse-panel]{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
 .home-main .ca-latest-trailers .ca-latest-trailer-row{display:flex!important;flex-flow:row nowrap!important;grid-template-columns:none!important;grid-template-rows:none!important;gap:14px;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;align-items:flex-start;box-sizing:border-box;touch-action:pan-x pan-y}
 .home-main .ca-latest-trailers .ca-latest-trailer-row>.ca-latest-trailer{display:block!important;position:relative!important;inset:auto!important;transform:none!important;float:none!important;flex:0 0 88%!important;width:88%!important;min-width:0!important;max-width:none!important;grid-area:auto!important;margin:0!important;box-sizing:border-box;overflow:hidden}
 .home-main .ca-latest-trailers .ca-latest-trailer>button{display:block!important;position:relative!important;width:100%!important;min-height:0;aspect-ratio:16/9;height:auto;padding:0;margin:0;overflow:hidden}
 .home-main .ca-latest-trailers .ca-latest-trailer>button img{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:contain}
 .home-main .ca-latest-trailers .ca-latest-trailer :is(h3,p){position:static!important;inset:auto!important;transform:none!important;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
}

/* Genre rail uses the selected theme accent, including native scrollbar parts. */
.home-main .ca-interest-row{scrollbar-width:thin;scrollbar-color:var(--accent,#f5c518) transparent}
.home-main .ca-interest-row::-webkit-scrollbar{height:5px;background:transparent}
.home-main .ca-interest-row::-webkit-scrollbar-track{background:transparent}
.home-main .ca-interest-row::-webkit-scrollbar-thumb{background:var(--accent,#f5c518);border-radius:5px}
.home-main .ca-interest-row::-webkit-scrollbar-button{display:none;width:0;height:0}
.ca-interest-row .ca-interest-placeholder{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,var(--panel,#121212),var(--raised,#242424))}

.ca-interest-row{cursor:grab;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}
.ca-interest-row.ca-is-dragging,.ca-interest-row.ca-is-dragging a{cursor:grabbing}

/* 2.0.136: consistent homepage section titles and browse destinations. */
.home-main .shelf h2,.home-main .section-head h2,.home-main .imdb-gold-heading{color:#fff}
.home-main .shelf h2 a,.home-main .section-head h2 a,.home-main .imdb-gold-heading a{color:inherit;text-decoration:none}
.home-main .shelf h2:hover,.home-main .section-head h2:hover,.home-main .imdb-gold-heading:hover,.home-main h2:focus-within{color:var(--accent,#f5c518)}
.home-main .section-head>.ca-see-all,.home-main .section-head>.ca-see-all:visited,.home-main .section-head>.ca-see-all:hover{color:var(--accent,#f5c518);margin-left:auto;white-space:nowrap}
.ca-interest-row.ca-interest-grid{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;cursor:auto;user-select:auto}
@media(max-width:680px){
 .home-main .ca-browse-switch .section-head>.ca-see-all{order:3;flex-basis:100%;text-align:right}
 .ca-interest-row.ca-interest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 2.0.137: streaming providers share the popular shelf's pill treatment. */
.home-main .ca-home-streams .section-head{display:flex;align-items:center;justify-content:flex-start;gap:18px;flex-wrap:wrap}
.home-main .ca-home-streams .section-head h2{margin:0;flex:0 0 auto}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs{display:flex;align-items:center;gap:2px;border:1px solid var(--accent);border-radius:24px;padding:2px;margin:0;max-width:100%;overflow-x:auto}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs a{display:block;flex-shrink:0;padding:7px 18px;border:0;border-radius:20px;font-size:13px;font-weight:700;color:var(--text,#fff);white-space:nowrap;text-decoration:none}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs a[aria-current="true"]{background:var(--accent);color:#111}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs a:hover{color:var(--accent)}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs a[aria-current="true"]:hover{color:#111}
:is(.home-main .ca-home-streams,.catalog-main) .ca-stream-tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* 2.0.139: same provider buttons in the full catalog. */
.catalog-main>.ca-stream-tabs{width:max-content;margin-bottom:20px}
