.row-browse-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 17px;border:1px solid rgba(183,255,0,.42);border-radius:999px;background:linear-gradient(135deg,rgba(183,255,0,.12),rgba(183,255,0,.03));color:#b7ff00;font:700 14px/1.2 system-ui;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,transform .18s;}
.row-browse-button:hover{background:rgba(183,255,0,.19);border-color:#b7ff00;transform:translateY(-1px)}
.row-browse-button:focus-visible,.row-browse-close:focus-visible{outline:3px solid #b7ff00;outline-offset:4px}
.section-head{gap:14px}.section-head h2{min-width:0}
#tonflixRowBrowse{box-sizing:border-box;width:min(1200px,calc(100% - 32px));max-height:90dvh;padding:24px;border:1px solid #404040;border-radius:18px;background:#111;color:white;}
#tonflixRowBrowse::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(5px)}
.row-browse-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.row-browse-head h2{margin:0}.row-browse-close{width:44px;height:44px;flex-shrink:0;border:1px solid #555;border-radius:50%;background:#222;color:#fff;font-size:20px;cursor:pointer}
.row-browse-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:24px 18px}.row-browse-grid .card{width:100%;min-width:0}
@media(max-width:600px){.row-browse-button{padding:9px 12px;font-size:12px;gap:6px}.row-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}#tonflixRowBrowse{padding:16px}.section-head h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.row-browse-button{transition:none}.row-browse-button:hover{transform:none}}
.row-browse-grid .rank-card{width:100%;min-width:0}.row-browse-grid .rank-card .rank-number{display:none}

/* Browse grids must override the fixed carousel card sizes. */
#tonflixRowBrowse{max-width:calc(100vw - 32px);overflow-x:hidden;overflow-y:auto;margin:auto}
#tonflixRowBrowse .row-browse-grid{min-width:0}
#tonflixRowBrowse .rank-card{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important}
#tonflixRowBrowse .rank-num{display:none!important}
#tonflixRowBrowse .card{width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;box-sizing:border-box!important}
#tonflixRowBrowse .card .poster{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:5/7!important;box-sizing:border-box!important}
#tonflixRowBrowse .card-info{min-width:0!important;width:100%!important;box-sizing:border-box!important}
#tonflixRowBrowse .card-info h4{white-space:normal!important;overflow-wrap:anywhere;line-height:1.35}

/* Standalone browse page, matching the catalog navigation. */
body.row-browse-open #homeContent{display:none!important}
#tonflixRowBrowse{width:100%;max-width:none;max-height:none;margin:0;padding:110px 3vw 48px;border:0;border-radius:0;overflow:visible;min-height:100vh;background:#111}
#tonflixRowBrowse[hidden],body.detail-open #tonflixRowBrowse{display:none!important}
#tonflixRowBrowse .row-browse-head h2{font-size:clamp(28px,4vw,48px)}
.row-browse-count{margin:0 0 24px;color:#bdbdbd}
@media(max-width:600px){#tonflixRowBrowse{padding:95px 16px 32px}.row-browse-head{align-items:flex-start;gap:12px;flex-wrap:wrap}}
