/* V8: detail panel, corrected header and floating sidebar, independent carousels */
:root{--rean-rail:55px}
body.rean-wp .rean-header{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.rean-wp.rean-scrolled .rean-header{background:rgba(0,0,0,.72)!important;backdrop-filter:blur(21px)!important;-webkit-backdrop-filter:blur(21px)!important}
body.rean-wp .header-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
body.rean-wp .rean-sidebar{width:55px!important;background:rgba(0,0,0,.06)!important;border-right:1px solid rgba(255,255,255,.045)!important;box-shadow:none!important;backdrop-filter:none!important;padding-top:82px!important}
body.rean-wp .rean-sidebar .sb-bg{background:transparent!important;opacity:0!important}
body.rean-wp .rean-sidebar:hover,body.rean-wp .rean-sidebar:focus-within,body.rean-wp .rean-sidebar.is-expanded{width:220px!important;background:rgba(5,5,8,.91)!important;backdrop-filter:blur(17px)!important;box-shadow:10px 0 26px #0005!important}
body.rean-wp .rean-sidebar .sb-item{color:#9aa1b0!important}
body.rean-wp .rean-sidebar .sb-item.is-active{color:#fff!important;background:#ffffff10!important}
body.rean-wp .rean-sidebar .sb-marker{background:#c3e95b!important}
body.rean-wp .rean-sidebar .sb-foot{margin-top:auto!important}
body.rean-wp .rean-anime-section .rean-paginate{border:1px solid #ffffff24!important;border-radius:50%!important;width:27px!important;height:27px!important;font-size:17px!important;background:#09090a!important;color:#fff!important}
body.rean-wp .rean-anime-section .rean-paginate:not(:disabled):hover{border-color:#fff9!important;background:#2b2b2d!important}
body.rean-wp .rean-anime-section .rean-paginate:disabled{opacity:.3!important;cursor:not-allowed}
body.rean-wp .rean-page-counter{font:500 10px/1 Inter,Arial,sans-serif;color:#888;padding:0 8px;min-width:42px;text-align:center}
body.rean-wp .rean-anime-grid .rean-card .rean-card-info{background:#050506d9!important;color:#fff!important;display:inline-flex;align-items:center;gap:3px!important}
body.rean-wp .rean-anime-grid .rean-card .rean-card-counts{background:#050506dd!important}
body.rean-wp .rean-anime-grid .rean-card .rean-card-play{opacity:0;transition:opacity .2s!important}
body.rean-wp .rean-anime-grid .rean-card:hover .rean-card-play,body.rean-wp .rean-anime-grid .rean-card:focus-within .rean-card-play{opacity:1!important}
body.rean-wp .rean-trending-item{position:relative!important;transform-origin:left center}
body.rean-wp .rean-trending-item::before{z-index:0!important;opacity:.33!important}
body.rean-wp .rean-trending-item::after{z-index:0!important;background:linear-gradient(90deg,#050506bc 3%,#0505069e 63%,#0505068a 100%)!important}
body.rean-wp .rean-trending-item:hover,body.rean-wp .rean-trending-item:focus-visible{box-shadow:inset 30px 0 65px -30px var(--rean-hover)!important;border-color:#ffffff45!important}
body.rean-wp .rean-trending-item:hover::before{opacity:.72!important}
body.rean-wp .rean-trending-item .rean-trend-number{position:relative!important;z-index:2!important;width:54px!important;min-width:54px!important;font-size:34px!important;font-weight:900!important;font-style:italic!important;color:#fff!important;text-align:center}
body.rean-wp .rean-trending-item .rean-trend-number::before{content:attr(data-num);position:absolute;left:-14px;top:-26px;color:transparent;-webkit-text-stroke:2px var(--rean-hover);font-size:77px;font-weight:900;line-height:1;opacity:.14;z-index:-1;pointer-events:none;transition:transform .65s,opacity .65s}
body.rean-wp .rean-trending-item:hover .rean-trend-number::before{opacity:.37;transform:scale(1.15) translateX(5px)}
body.rean-wp .rean-trending-item .rean-trend-details{z-index:2!important;flex:1;min-width:0}
body.rean-wp .rean-trending-item .rean-trend-play{position:relative;z-index:3}
body.rean-wp .rean-detail-main{padding-bottom:30px!important}
body.rean-wp .rean-detail-backdrop{height:286px!important;opacity:.88!important;filter:brightness(.75) blur(1px)!important}
body.rean-wp .rean-detail-backdrop::before{background:linear-gradient(0deg,#000 2%,#000c 24%,transparent 75%)!important}
body.rean-wp .rean-detail-shell{max-width:1545px!important;margin:0 auto!important;padding:165px 28px 35px!important}
body.rean-wp .rean-detail-grid{grid-template-columns:250px minmax(0,1fr)!important;gap:22px!important;align-items:start!important}
body.rean-wp .rean-detail-aside{display:flex;flex-direction:column;min-width:0!important}
body.rean-wp .rean-detail-poster{width:250px!important;height:350px!important;object-fit:cover!important;border-radius:7px!important}
body.rean-wp .rean-detail-data{width:250px!important;display:flex!important;flex-direction:column;justify-content:space-between!important;padding:15px!important;background:#101115d9!important;border:1px solid #ffffff20!important;border-radius:7px!important;min-height:360px!important;margin-top:24px!important}
body.rean-wp .rean-detail-data-list{display:flex;flex-direction:column;gap:12px}
body.rean-wp .rean-detail-data-list>div{display:flex;flex-direction:column;gap:3px}
body.rean-wp .rean-detail-data small{font-size:11px;color:#9498a4}
body.rean-wp .rean-detail-data span{font-size:12px;color:#ececf1}
body.rean-wp .rean-detail-external{display:flex;flex-direction:column;gap:9px;padding-top:13px;border-top:1px solid #ffffff18;margin-top:auto}
body.rean-wp .rean-detail-external a{font-size:12px;color:#dce0e6!important}
body.rean-wp .rean-detail-info{width:100%;min-width:0!important;padding-top:4px!important}
body.rean-wp .rean-detail-info h1{font-size:clamp(20px,2vw,25px)!important;line-height:1.35!important;color:#fff!important;font-weight:750!important;margin:0 0 8px!important}
body.rean-wp .rean-detail-native{font-size:16px!important;font-style:italic!important;color:#eee!important;margin:0 0 17px!important}
body.rean-wp .rean-detail-description{font-size:14px!important;line-height:1.75!important;color:#d3d3d9!important;max-height:112px;overflow:hidden;text-align:left!important}
body.rean-wp .rean-detail-description.is-expanded{max-height:unset!important}
body.rean-wp .rean-detail-genres{margin:18px 0!important;display:flex;gap:10px;flex-wrap:wrap}
body.rean-wp .rean-detail-genres a{padding:4px 8px;color:#e6e6e9!important;font-size:13px!important;background:#1b1c20!important;border:1px solid transparent!important;border-radius:4px!important}
body.rean-wp .rean-detail-genres a:hover{border-color:#ffffff40!important}
body.rean-wp .rean-detail-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;align-items:center!important;margin:15px 0 13px!important;position:relative!important;z-index:5}
body.rean-wp .rean-detail-watch{min-height:41px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;background:#a3e635!important;color:#000!important;border:1px solid #b1e64e!important;padding:10px 16px!important;font-size:13px!important;font-weight:800!important;opacity:1!important;visibility:visible!important;box-shadow:0 0 0 1px #d2f4911c,0 3px 15px #a3e63524!important;border-radius:6px!important;text-decoration:none!important}
body.rean-wp .rean-detail-watch:hover{background:#c5f36b!important;filter:none!important}
body.rean-wp .rean-watch-unavailable{background:#191b1a!important;color:#aaa!important;border-color:#ffffff20!important;box-shadow:none!important;cursor:not-allowed}
body.rean-wp .rean-detail-add-list,body.rean-wp .rean-detail-share{min-height:41px!important;border:1px solid #ffffff41!important;border-radius:5px!important;background:#0b0b0c!important;color:#fff!important;font-size:13px!important;padding:9px 12px!important;cursor:pointer}
body.rean-wp .rean-detail-add-list:hover,body.rean-wp .rean-detail-share:hover{background:#252629!important}
body.rean-wp .rean-detail-facts{gap:7px!important;margin:0 0 17px!important}
body.rean-wp .rean-detail-facts span{font-size:11px!important;background:#151619!important;padding:5px 8px!important}
body.rean-wp .rean-detail-panel{margin-top:18px!important;border:1px solid #5e6066!important;border-radius:8px!important;background:#0a0b0fdb!important;overflow:hidden!important;min-height:330px}
body.rean-wp .rean-detail-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:46px;border-bottom:1px solid #ffffff20!important}
body.rean-wp .rean-detail-tabs button{display:flex;align-items:center;justify-content:center;color:#92949d;background:transparent;border:0;border-bottom:2px solid transparent;padding:11px;font-size:13px;font-weight:650;cursor:pointer}
body.rean-wp .rean-detail-tabs button.is-active{color:#fff!important;border-bottom-color:#a3e635!important}
body.rean-wp .rean-detail-tabs button:hover{color:#fff!important;background:#ffffff08!important}
body.rean-wp .rean-tab-body{padding:16px!important;color:#d3d4dd!important}
body.rean-wp .rean-tab-body[hidden]{display:none!important}
body.rean-wp .rean-tab-body h3{font-size:16px;font-weight:700;color:#f7f7f9;margin:9px 0 11px}
body.rean-wp .rean-info-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px}
body.rean-wp .rean-info-chips>span{background:#1b1d21!important;color:#d8d9df;font-size:12px;padding:6px 9px;border-radius:4px}
body.rean-wp .rean-detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0 19px}
body.rean-wp .rean-detail-stats>div{background:#1a1b1f!important;padding:12px 8px!important;text-align:center;border-radius:6px;display:flex;flex-direction:column;gap:4px}
body.rean-wp .rean-detail-stats small{color:#a9aab0;font-size:11px}
body.rean-wp .rean-detail-stats strong{font-size:19px;font-weight:850;color:#fff}
body.rean-wp .rean-detail-section{border-top:1px solid #ffffff18!important;padding:18px 0 8px!important;margin:20px 0 0!important}
body.rean-wp .rean-detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:13px}
body.rean-wp .rean-detail-section-head h3{margin:0!important;font-size:13px!important;color:#eee!important}
body.rean-wp .rean-detail-section-head span{color:#a9aab3;font-size:10px}
body.rean-wp .rean-episode-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
body.rean-wp .rean-episode-entry{min-width:0;min-height:48px;background:#15171c!important;border:1px solid #ffffff19!important;border-radius:6px;padding:10px!important;display:flex;align-items:center;gap:7px;color:#dfdfe5!important;text-decoration:none;transition:background .2s,border-color .2s}
body.rean-wp .rean-episode-entry[hidden]{display:none!important}
body.rean-wp .rean-episode-entry:hover{background:#25282f!important;border-color:#bbec6899!important}
body.rean-wp .rean-episode-entry .rean-ep-number{font-size:11px;font-weight:800;color:#c8ee8c}
body.rean-wp .rean-episode-entry strong{font-size:11px;font-weight:550;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;flex:1}
body.rean-wp .rean-episode-entry small{font-size:10px;color:#95979e;white-space:nowrap}
body.rean-wp .rean-episode-entry .rean-ep-arrow{font-size:12px;color:#fff}
body.rean-wp .rean-episode-showmore{display:flex;margin:13px auto 0;border:1px solid #ffffff28;background:#171819;border-radius:5px;color:#fff;padding:9px 14px;cursor:pointer}
body.rean-wp .rean-episode-showmore:hover{background:#292b30}
body.rean-wp .rean-episodes-empty,body.rean-wp .rean-tab-empty{font-size:13px;color:#9d9da9;padding:12px 0}
body.rean-wp .rean-related-strip{display:flex;gap:13px;overflow-x:auto;padding:3px 3px 7px;scrollbar-width:thin}
body.rean-wp .rean-related-entry{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;flex:0 0 180px;height:74px;color:#fff!important;border:1px solid #ffffff26!important;overflow:hidden;border-radius:7px;padding:10px 12px!important;text-decoration:none!important}
body.rean-wp .rean-related-entry::before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--rean-related-bg);background-size:cover;background-position:center 36%;opacity:.84;transition:transform .3s}
body.rean-wp .rean-related-entry::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080808bd,#0909098c)}
body.rean-wp .rean-related-entry:hover::before{transform:scale(1.08)}
body.rean-wp .rean-related-entry.is-current{border-color:#ffffffbb!important}
body.rean-wp .rean-related-entry small{font-size:8px;font-weight:850;letter-spacing:.1em}
body.rean-wp .rean-related-entry strong{font-size:10px;margin:3px 0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.rean-wp .rean-related-entry span{font-size:9px;color:#d7d7d9}
body.rean-wp .rean-recommend-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
@media(min-width:1024px){body.rean-wp .rean-sidebar .sb-nav{transform:none!important;margin-top:min(21vh,185px)!important}body.rean-wp .rean-sidebar .sb-foot{margin-top:auto!important}body.rean-wp .rean-detail-shell{padding-left:28px!important;padding-right:28px!important}}
@media(max-width:1100px){body.rean-wp .rean-detail-shell{padding-top:145px!important}body.rean-wp .rean-episode-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.rean-wp .rean-recommend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){body.rean-wp .rean-detail-grid{display:flex!important;flex-direction:column!important;gap:16px!important}body.rean-wp .rean-detail-aside{width:100%!important;align-items:center;justify-content:center}body.rean-wp .rean-detail-data{display:none!important}body.rean-wp .rean-detail-shell{padding:115px 17px 20px!important}body.rean-wp .rean-detail-info{text-align:center}body.rean-wp .rean-detail-genres,body.rean-wp .rean-detail-actions,body.rean-wp .rean-detail-facts{justify-content:center}body.rean-wp .rean-detail-tabs{margin-top:0}body.rean-wp .rean-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.rean-wp .rean-recommend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){body.rean-wp .rean-detail-shell{padding:107px 13px 15px!important}body.rean-wp .rean-detail-poster{width:195px!important;height:273px!important}body.rean-wp .rean-detail-actions{justify-content:center!important}body.rean-wp .rean-detail-watch{min-height:43px!important}body.rean-wp .rean-detail-tabs button{font-size:12px!important;padding:12px 2px!important}body.rean-wp .rean-tab-body{padding:12px!important}body.rean-wp .rean-episode-list{grid-template-columns:1fr!important}body.rean-wp .rean-recommend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Single page header menu stays at the header baseline, not over the cover. */
@media(min-width:1024px){body.single-anime.rean-wp .rean-menu-btn{top:19px!important;left:19px!important;opacity:.8!important}body.single-anime.rean-wp .rean-header-logo{margin-left:31px!important}}
/* The separate browse drawer is available on mobile; the narrow floating rail remains a desktop control. */
@media(max-width:1023px){body.rean-wp .rean-menu-btn{display:flex!important;opacity:1!important}body.rean-wp .rean-browse-menu:not([hidden]){pointer-events:auto!important}}
