/* R5 detail panels stay below the complete information block. */
html body .page-detail .sv-detail-wrap.sv5-detail{display:grid!important;grid-template-columns:minmax(160px,250px) minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:26px!important;align-items:start!important;width:100%!important;max-width:1500px!important;margin:0 auto!important;padding:24px!important;min-height:0!important;height:auto!important;position:relative!important;overflow:visible!important}
html body .sv5-detail>.sv-detail-poster{grid-column:1!important;grid-row:1!important;position:relative!important;width:100%!important;max-width:none!important;inset:auto!important;align-self:start!important}
html body .sv5-detail>.sv-detail-main{grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;height:auto!important;overflow:visible!important}
html body .sv5-detail .sv-detail-overview{max-height:none!important;-webkit-line-clamp:unset!important;overflow:visible!important;display:block!important;line-height:1.65!important}
html body .sv5-detail .sv-detail-hero-bg{position:absolute!important;inset:0 0 auto!important;height:600px!important;pointer-events:none!important}
html body .sv5-detail .sv-detail-poster img{width:100%;height:auto;object-fit:contain}
html body .sv5-detail>.sv5-below-area{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;min-width:0;position:relative;z-index:1;clear:both}
.sv5-panel{display:flex;flex-direction:column;background:rgba(15,17,30,.97);border:1px solid #333042;border-radius:15px;min-width:0;overflow:hidden;max-height:560px;max-height:clamp(280px,56vh,560px)}
.sv5-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-bottom:1px solid #343047;flex-shrink:0}
.sv5-panel-head h2{font-size:18px;margin:0}.sv5-panel-head span{font-size:14px;color:#b9b0ce}
.sv5-scroll{min-height:0;overflow:auto;flex:1;padding:10px;scrollbar-width:thin;scrollbar-color:#7656ac #151320;overscroll-behavior:contain}
.sv5-note{font-size:13px;line-height:1.6;color:#bbb4c8;padding:0 14px}.sv5-error{color:#efb0af;overflow-wrap:anywhere}
.sv5-source{display:block!important;width:100%!important;margin:0 0 9px!important;text-align:left!important;border-radius:10px!important;padding:13px!important;white-space:normal!important;min-height:70px!important;background:#222032!important;color:#eee!important;border:1px solid #413a53!important}
.sv5-source .sv-source-sub{white-space:pre-line!important;line-height:1.5!important;overflow-wrap:anywhere;max-height:100px;overflow:auto;font-size:13px!important;color:#c7bed7!important}
.sv5-source .sv-source-row{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.sv5-source small{color:#ac9dbe}
.sv5-season,.sv5-episode{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important;width:100%!important;min-height:72px!important;border-radius:10px!important;padding:12px!important;margin:0 0 8px!important;border:1px solid #413a53!important;background:#232032!important;color:#eee!important}
.sv5-season{justify-content:space-between!important}.sv5-season small,.sv5-episode small{color:#b3a7c5;display:block;font-size:12px;margin-top:5px}
.sv5-episode img{width:100px!important;height:58px!important;object-fit:cover!important;border-radius:6px;flex-shrink:0}.sv5-episode strong{font-size:14px;line-height:1.5}
.sv5-movie-play{padding:24px;align-self:start}.sv5-movie-play h2{margin-top:0;font-size:20px}.sv5-movie-play p{color:#bbb4c8;line-height:1.6}.sv5-movie-play .sv-action{align-self:start}
.sv5-detail button:focus-visible{outline:3px solid #c4b5fd!important;outline-offset:2px!important}.sv5-detail .sv-link-tabs{flex-wrap:wrap;display:flex;flex-shrink:0}.sv5-detail .sv-link-tab{min-height:42px!important}
@media(max-width:760px){html body .page-detail .sv-detail-wrap.sv5-detail{padding:14px!important;gap:18px!important;grid-template-columns:110px minmax(0,1fr)!important}html body .sv5-detail>.sv5-below-area{grid-template-columns:minmax(0,1fr)}html body .sv5-detail .sv-detail-title{font-size:24px!important}.sv5-panel{max-height:480px;max-height:60vh}.sv5-source .sv-source-sub{font-size:12px!important}}
@media(max-width:480px){html body .page-detail .sv-detail-wrap.sv5-detail{grid-template-columns:minmax(0,1fr)!important}html body .sv5-detail>.sv-detail-poster{display:none!important}html body .sv5-detail>.sv-detail-main{grid-column:1!important}.sv5-panel{max-height:520px}}

html body .sv5-movie-play .sv-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;height:auto!important;padding:12px 20px!important;flex-shrink:0!important;border-radius:14px!important}

/* Keep the existing three main destinations visible on narrow screens. */
@media(max-width:600px){
  html body .sv-topbar .sv-topbar-inner{height:auto!important;min-height:100px!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand tools" "nav nav"!important;gap:8px!important;padding:5px 14px 10px!important}
  html body .sv-topbar .sv-logo-btn{grid-area:brand!important;min-width:0!important}
  html body .sv-topbar .sv-logo{width:94px!important;height:auto!important}
  html body .sv-topbar .sv-top-actions{grid-area:tools!important}
  html body .sv-topbar .sv-nav{grid-area:nav!important;display:flex!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important}
  html body .sv-topbar .sv-nav-btn{flex:1!important;min-width:0!important;max-width:none!important;height:42px!important;padding:0 7px!important;justify-content:center!important;white-space:nowrap!important;font-size:14px!important}
}
