/* The Marketplace Entertainment — compact, clean storefront */
.tm-ent-app{width:100%;max-width:1440px;margin:0 auto 16px!important;padding:0!important;color:inherit;font-family:inherit;line-height:1.4;isolation:isolate}
.entry-content:has(.tm-ent-app),.site-main:has(.tm-ent-app),.content-area:has(.tm-ent-app){padding-top:0!important;margin-top:0!important}
.entry-content:has(.tm-ent-app)>.tm-ent-app{margin-top:0!important}
.tm-ent-app *{box-sizing:border-box}
.tm-ent-player-wrap{overflow:hidden;margin:0 0 10px;border:1px solid #252b35;border-radius:10px;background:#080b10;color:#fff;box-shadow:none}
.tm-ent-player-screen{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;max-height:68vh;min-height:180px;background:#080b10}
.tm-ent-video{position:relative;z-index:1;display:block;width:100%;height:100%;max-height:68vh;object-fit:contain;background:#05070b}
.tm-ent-placeholder{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;padding:12px;text-align:center;color:#c4cbd5;font-size:12px;pointer-events:none}
.tm-ent-now{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 11px;border-top:1px solid #252b35;background:#11151c}
.tm-ent-now-logo{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid #343c48;border-radius:6px;background:#1b222c;color:#e4bd58;font-size:11px;font-weight:700}
.tm-ent-now-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px}.tm-ent-now-name{overflow:hidden;color:#fff;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.tm-ent-now-meta{color:#a3acb9;font-size:10px}
.tm-ent-now-quality{padding:4px 7px;border:1px solid #343c48;border-radius:5px;color:#c5ccd6;font-size:9px;font-weight:650;white-space:nowrap}
.tm-ent-library{overflow:hidden;padding:10px 0 4px;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}
.tm-ent-tabs-wrap{position:relative;width:100%;overflow:hidden;margin:0 0 10px;border-bottom:1px solid rgba(130,140,155,.25)}
.tm-ent-tabs{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:5px!important;width:100%;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;padding:2px 1px 8px!important;margin:0!important;scrollbar-width:thin;scrollbar-color:#aab1bc transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.tm-ent-tabs::-webkit-scrollbar{height:3px}.tm-ent-tabs::-webkit-scrollbar-thumb{background:#aab1bc;border-radius:8px}
.tm-ent-tab-group-label{display:inline-flex;align-items:center;flex:0 0 auto;padding:0 5px 0 9px;color:#89919d;font-size:9px;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.tm-ent-tab{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;border:1px solid #d9dde4!important;border-radius:5px!important;background:#f6f7f9!important;color:#424b59!important;padding:6px 10px!important;font-family:inherit!important;font-size:11px!important;line-height:1.2!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer}
.tm-ent-tab:hover{border-color:#b38a32!important;background:#fff!important;color:#202733!important}.tm-ent-tab.is-active{border-color:#252b35!important;background:#252b35!important;color:#fff!important}
.tm-ent-tab:focus-visible,.tm-ent-channel:focus-visible,.tm-ent-load-more:focus-visible{outline:2px solid #b58b32;outline-offset:2px}
.tm-ent-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.tm-ent-section-heading h4{margin:0;color:inherit;font-size:13px;line-height:1.25;font-weight:650;letter-spacing:0}.tm-ent-section-count{color:#7d8795;font-size:10px;font-weight:400}
.tm-ent-search-wrap{position:relative;display:block;width:min(230px,48%)}.tm-ent-search-wrap>span{position:absolute;left:10px;top:50%;transform:translateY(-52%);font-size:17px;color:#8b95a5;pointer-events:none}
.tm-ent-search{width:100%;min-height:34px;padding:6px 10px 6px 29px;border:1px solid #d9dde4;border-radius:6px;background:#fff;color:#202a3a;font:inherit;font-size:11px;outline:none}.tm-ent-search:focus{border-color:#a9873e;box-shadow:0 0 0 2px rgba(181,139,50,.1)}
.tm-ent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:7px}
.tm-ent-channel{position:relative;appearance:none;min-width:0;min-height:72px;display:flex;flex-direction:row;align-items:center;gap:9px;padding:8px;border:1px solid #e2e5e9;border-radius:7px;background:#fff;color:#202a3a;text-align:left;cursor:pointer;transition:border-color .12s,background .12s}
.tm-ent-channel:hover,.tm-ent-channel:focus{border-color:#c6a45a;background:#fffdf8;box-shadow:none;transform:none}
.tm-ent-channel-logo{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;overflow:hidden;border:1px solid #edf0f4;border-radius:6px;background:#f6f7f9}.tm-ent-channel img{display:block;width:100%;height:100%;padding:4px;object-fit:contain}.tm-ent-logo-fallback{display:grid;place-items:center;width:100%;height:100%;background:#eceff3;color:#505b69;font-size:17px;font-weight:700}
.tm-ent-channel-info{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:2px}.tm-ent-channel-name{display:block;max-width:100%;overflow:hidden;color:#202a3a;font-size:11px;font-weight:650;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.tm-ent-channel small{max-width:100%;overflow:hidden;color:#7c8795;font-size:9px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.tm-ent-channel-tag{display:inline-block;max-width:100%;overflow:hidden;padding:2px 5px;border-radius:3px;background:#f1f2f4;color:#697382;font-size:8px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}.tm-ent-card-play{display:grid;place-items:center;flex:0 0 21px;width:21px;height:21px;border-radius:50%;background:#edf0f3;color:#394453;font-size:8px;opacity:1}
.tm-ent-empty{padding:14px;border:1px dashed #dce2e9;border-radius:7px;background:#f8fafc;color:#6f7b8d;font-size:11px;text-align:center}.tm-ent-empty[hidden]{display:none!important}
.tm-ent-load-more-wrap{margin:12px 0 0;text-align:center}.tm-ent-load-more{appearance:none;border:1px solid #252b35;border-radius:6px;background:#252b35;color:#fff;padding:8px 13px;font:inherit;font-size:10px;font-weight:600;cursor:pointer}.tm-ent-load-more:hover{background:#3a4350}.tm-ent-load-more:disabled{opacity:.6;cursor:wait}.tm-ent-load-more[hidden]{display:none!important}
.tm-ent-attribution{margin:8px 0 0;color:#89919d;font-size:9px;line-height:1.4}.tm-ent-attribution span{margin-right:3px}
.tm-ent-channel[hidden]{display:none!important}
@media(max-width:650px){
 .tm-ent-app{margin-bottom:12px!important}.tm-ent-player-wrap{border-radius:7px;margin-bottom:8px}.tm-ent-player-screen{min-height:150px;aspect-ratio:16/9}.tm-ent-now{min-height:46px;padding:7px 9px;gap:8px}.tm-ent-now-logo{flex-basis:30px;height:30px}.tm-ent-now-name{font-size:11px}.tm-ent-now-quality{padding:4px 6px;font-size:8px}
 .tm-ent-library{padding:7px 0 2px}.tm-ent-tabs-wrap{margin-bottom:8px}.tm-ent-tab{padding:6px 9px!important;font-size:10px!important}.tm-ent-section-heading{align-items:center;gap:7px}.tm-ent-section-heading h4{font-size:12px}.tm-ent-search-wrap{width:48%;max-width:190px}.tm-ent-search{min-height:32px}.tm-ent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tm-ent-channel{min-height:66px;gap:6px;padding:7px 6px;border-radius:6px}.tm-ent-channel-logo{flex-basis:33px;width:33px;height:33px}.tm-ent-channel-name{font-size:10px}.tm-ent-channel small{font-size:8px}.tm-ent-channel-tag{font-size:7px;padding:2px 4px}.tm-ent-card-play{flex-basis:18px;width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){.tm-ent-app *{scroll-behavior:auto!important;transition:none!important}}

/* Reliable channel selection states */
.tm-ent-channel{cursor:pointer;touch-action:manipulation}
.tm-ent-channel.is-active{border-color:#b58b32!important;background:rgba(181,139,50,.09)!important;box-shadow:inset 0 0 0 1px #b58b32!important}
.tm-ent-channel.is-active .tm-ent-card-play{color:#b58b32}
.tm-ent-placeholder[hidden]{display:none!important}
.tm-ent-placeholder:not([hidden]){inset:0;z-index:3;background:rgba(5,7,11,.58);pointer-events:none}
.tm-ent-video[aria-busy="true"]{cursor:progress}


/* v1.5.4: discreet player watermark and horizontally browsable channel rail */
.tm-ent-player-screen{overflow:hidden}
.tm-ent-player-brand{position:absolute;z-index:4;top:11px;right:13px;padding:5px 8px;border:1px solid rgba(255,255,255,.24);border-radius:4px;background:rgba(5,8,12,.58);color:#fff;font-size:clamp(10px,1.15vw,13px);font-weight:750;letter-spacing:.075em;line-height:1.15;text-shadow:0 1px 3px rgba(0,0,0,.55);pointer-events:none;user-select:none}
.tm-ent-grid{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;width:100%;overflow-x:auto!important;overflow-y:hidden!important;gap:8px!important;padding:2px 1px 9px!important;scrollbar-width:thin;scrollbar-color:#aab1bc transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.tm-ent-grid::-webkit-scrollbar{height:4px}
.tm-ent-grid::-webkit-scrollbar-thumb{background:#aab1bc;border-radius:8px}
.tm-ent-channel{flex:0 0 calc((100% - 24px)/4)!important;width:calc((100% - 24px)/4)!important;max-width:calc((100% - 24px)/4);scroll-snap-align:start}
.tm-ent-grid:focus-visible{outline:2px solid #b58b32;outline-offset:2px}
.tm-ent-scroll-hint{display:flex;align-items:center;gap:6px;margin:0 0 6px;color:#7b8491;font-size:10px;line-height:1.3}
.tm-ent-scroll-hint span{display:inline-grid;place-items:center;width:19px;height:19px;border:1px solid #d9dee5;border-radius:50%;color:#687383;font-size:13px;font-weight:700}
.tm-ent-grid{scrollbar-gutter:stable}
@media(max-width:650px){.tm-ent-player-brand{top:8px;right:9px;padding:4px 6px;font-size:10px;letter-spacing:.06em}.tm-ent-grid{gap:6px!important;padding-bottom:8px!important}.tm-ent-channel{flex:0 0 calc((100% - 6px)/2)!important;width:calc((100% - 6px)/2)!important;max-width:calc((100% - 6px)/2);min-height:66px}}
@media(min-width:651px) and (max-width:900px){.tm-ent-channel{flex-basis:calc((100% - 16px)/3)!important;width:calc((100% - 16px)/3)!important;max-width:calc((100% - 16px)/3)}}


/* v1.5.6: clearer scroll prompt and a two-row horizontal channel browser */
.tm-ent-scroll-hint{display:flex;align-items:center;gap:9px;margin:0 0 8px;padding:9px 11px;border:1px solid #214b3d;border-left:4px solid #e3bd55;border-radius:6px;background:#153d30;color:#fff;font-size:11px;font-weight:650;line-height:1.35;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.tm-ent-scroll-hint span{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#e3bd55;color:#173b2f;font-size:15px;font-weight:800}
.tm-ent-grid{display:grid!important;grid-auto-flow:column!important;grid-template-rows:repeat(2,minmax(66px,auto))!important;grid-auto-columns:calc((100% - 24px)/4)!important;grid-template-columns:none!important;align-items:stretch;column-gap:8px!important;row-gap:8px!important;width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 1px 10px!important;scrollbar-width:thin;scrollbar-color:#aab1bc transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.tm-ent-channel{width:auto!important;max-width:none!important;min-width:0;min-height:66px;scroll-snap-align:start}
.tm-ent-grid::-webkit-scrollbar{height:4px}
.tm-ent-grid::-webkit-scrollbar-thumb{background:#aab1bc;border-radius:8px}
@media(min-width:651px) and (max-width:900px){.tm-ent-grid{grid-auto-columns:calc((100% - 16px)/3)!important}}
@media(max-width:650px){.tm-ent-scroll-hint{gap:8px;margin-bottom:7px;padding:8px 9px;font-size:10px}.tm-ent-scroll-hint span{flex-basis:22px;width:22px;height:22px;font-size:14px}.tm-ent-grid{grid-template-rows:repeat(2,minmax(62px,auto))!important;grid-auto-columns:calc((100% - 6px)/2)!important;column-gap:6px!important;row-gap:6px!important;padding-bottom:9px!important}.tm-ent-channel{min-height:62px}}


/* v1.5.7: clickable previous/next controls beneath the two-row channel rail */
.tm-ent-slider-controls{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:2px 0 12px;padding:5px 0}
.tm-ent-slider-arrow{appearance:none!important;display:inline-grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:34px!important;min-width:38px!important;margin:0!important;padding:0!important;border:1px solid #214b3d!important;border-radius:7px!important;background:#153d30!important;color:#f2cf69!important;font-family:inherit!important;font-size:27px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important;transition:background .15s ease,border-color .15s ease,opacity .15s ease}
.tm-ent-slider-arrow:hover:not(:disabled),.tm-ent-slider-arrow:focus-visible{border-color:#e3bd55!important;background:#20523f!important;color:#fff!important}
.tm-ent-slider-arrow:focus-visible{outline:2px solid #e3bd55!important;outline-offset:2px!important}
.tm-ent-slider-arrow:disabled{opacity:.35!important;cursor:not-allowed!important}
.tm-ent-slider-label{color:#7d8795;font-size:10px;font-weight:600;letter-spacing:.02em}
@media(max-width:650px){.tm-ent-slider-controls{gap:10px;margin:1px 0 10px}.tm-ent-slider-arrow{flex-basis:36px!important;width:36px!important;height:33px!important;min-width:36px!important;font-size:25px!important}.tm-ent-slider-label{font-size:9px}}

/* v1.5.7 refinement: guide users to the Load more button at the end of the rail */
.tm-ent-slider-label{display:inline-block;max-width:min(76%,520px);padding:5px 9px;border-radius:5px;text-align:center;line-height:1.35}
.tm-ent-slider-label.is-at-end{border:1px solid #214b3d;background:#153d30;color:#fff;font-weight:700;box-shadow:inset 3px 0 0 #e3bd55}
