/* V2.30 targeted fixes. Loaded with a new filename to bypass old theme.css cache.
   All styles scoped to V2. No changes to player, auth, scraper, TMDB or V1. */

/* SEARCH: real button-like link; no second line that runs into the first. */
body.frontend-v2 .v2-topbar .v2-search-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  min-height:42px!important;gap:13px!important;padding:0 16px!important;
  border:1px solid var(--v2-line)!important;border-radius:11px!important;
  background:#20252e!important;color:#fff!important;text-decoration:none!important;
  box-shadow:none!important;white-space:nowrap!important;line-height:1!important;
}
body.frontend-v2 .v2-topbar .v2-search-link .v2-search-link-label{
  display:inline!important;flex:none!important;position:static!important;
  font-size:12px!important;line-height:1.2!important;letter-spacing:0!important;
  font-weight:580!important;white-space:nowrap!important;color:#fff!important;
}
body.frontend-v2 .v2-topbar .v2-search-link svg{flex:none!important;width:17px!important;height:17px!important;opacity:.85!important}
body.frontend-v2 .v2-topbar .v2-search-link:hover{border-color:#8790a0!important;background:#2a303b!important}

/* LUCKY: strictly neutral/graphite, regardless of the accent set for the rest of the site. */
body.frontend-v2 .v2-lucky-entry.luck-banner.random-banner{
  background:linear-gradient(115deg,#1a1f28,#151b23 64%,#1b2028)!important;
  border:1px solid #303845!important;color:#eaf0f8!important;
  box-shadow:none!important;filter:none!important;
}
body.frontend-v2 .v2-lucky-entry.luck-banner.random-banner::before,
body.frontend-v2 .v2-lucky-entry.luck-banner.random-banner::after{
  background:none!important;box-shadow:none!important;border-color:transparent!important;
}
body.frontend-v2 .v2-lucky-entry .luck-banner-icon,
body.frontend-v2 .v2-lucky-entry .luck-banner-left .luck-banner-icon{
  background:#28313c!important;color:#e5eaf0!important;border:1px solid #424d5b!important;box-shadow:none!important;
}
body.frontend-v2 .v2-lucky-entry .luck-banner-left b{color:#f8f9fb!important;font-weight:610!important}
body.frontend-v2 .v2-lucky-entry .luck-banner-left small{color:#aeb8c6!important}
body.frontend-v2 .v2-lucky-entry .luck-banner-button,
body.frontend-v2 .v2-lucky-entry .luck-banner-right .luck-banner-button{
  background:#344151!important;border:1px solid #617085!important;
  color:#f8fafc!important;box-shadow:none!important;
}
body.frontend-v2 .v2-lucky-entry .luck-banner-button:hover{background:#48586b!important;border-color:#8392a5!important}
body.frontend-v2 .v2-lucky-entry .luck-banner-fan span{border:1px solid #414d59!important}
body.frontend-v2 .v2-lucky-entry.luck-banner.random-banner{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
body.frontend-v2 .v2-lucky-entry .luck-banner-left,body.frontend-v2 .v2-lucky-entry .luck-banner-right{min-width:0!important;max-width:100%!important}

/* RECENT EPISODES: season and episode must always be WHITE. */
body.frontend-v2 .v2-recent-episodes .v2-recent-grid .v2-recent-card .v2-recent-body small{
 color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
 font-size:11px!important;font-weight:500!important;line-height:1.4!important;
}

/* CONTINUE WATCHING: V2 card keeps dark overlay, explicit playable hover affordance. */
body.frontend-v2 #cw52-section .cw52-card .cw52-art{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
}
body.frontend-v2 #cw52-section .cw52-card .cw52-art::after{
  content:'▶'!important;display:grid!important;place-items:center!important;
  position:absolute!important;left:50%!important;top:50%!important;
  width:54px!important;height:54px!important;border-radius:50%!important;
  transform:translate(-50%,-50%)!important;
  font-size:19px!important;line-height:1!important;color:#fff!important;
  background:rgba(9,12,17,.78)!important;border:1px solid rgba(255,255,255,.32)!important;
  box-shadow:0 5px 20px rgba(0,0,0,.48)!important;
  opacity:0!important;visibility:visible!important;pointer-events:none!important;z-index:8!important;
  transition:opacity .18s ease!important;
}
body.frontend-v2 #cw52-section .cw52-card .cw52-art:hover::after,
body.frontend-v2 #cw52-section .cw52-card .cw52-art:focus-visible::after{opacity:1!important}
body.frontend-v2 #cw52-section .cw52-heading h2{font-weight:620!important}

/* DISCOVER WALL: entirely independent from V2.9 poster-strip selectors. */
body.frontend-v2 section.v2-discover.v2-discover-v30{
  display:block!important;position:relative!important;height:365px!important;min-height:365px!important;
  max-height:none!important;width:100%!important;max-width:100%!important;
  padding:0!important;margin:30px 0!important;overflow:hidden!important;
  border-radius:22px!important;background:#10141a!important;border:1px solid #29313c!important;
}
body.frontend-v2 .v2-discover-v30 .v30-wall{
  position:absolute!important;inset:-42px -20px!important;display:flex!important;
  flex-direction:column!important;justify-content:center!important;gap:14px!important;
  overflow:hidden!important;pointer-events:none!important;transform:rotate(-8deg) scale(1.10);
}
body.frontend-v2 .v2-discover-v30 .v30-wall-track{
  display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;
  gap:14px!important;width:max-content!important;min-width:max-content!important;
  animation:v30-wall-flow 56s linear infinite!important;
  will-change:transform;
}
body.frontend-v2 .v2-discover-v30 .v30-wall-track-2{animation-direction:reverse!important;animation-duration:62s!important;margin-left:-110px!important}
body.frontend-v2 .v2-discover-v30 .v30-wall-poster{display:block!important}
body.frontend-v2 .v2-discover-v30 .v30-wall-poster,
body.frontend-v2 .v2-discover-v30 .v30-wall-poster img{
  max-width:130px!important;min-width:130px!important;max-height:195px!important;
  min-height:195px!important;object-fit:cover!important;
}
body.frontend-v2 .v2-discover-v30 .v30-wall-shade{
  position:absolute!important;inset:0!important;z-index:1!important;
  background:linear-gradient(90deg,rgba(12,15,20,.95) 0%,rgba(12,15,20,.70) 46%,rgba(12,15,20,.36) 100%),
  linear-gradient(0deg,rgba(12,15,20,.88),transparent 78%)!important;
}
body.frontend-v2 .v2-discover-v30 .v30-wall-copy{
  position:absolute!important;z-index:2!important;left:42px!important;bottom:35px!important;
  display:block!important;max-width:520px!important;padding:0!important;margin:0!important;
  color:#fff!important;
}
body.frontend-v2 .v2-discover-v30 .v30-wall-copy h2{
  font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(34px,4vw,55px)!important;
  line-height:1.04!important;font-weight:400!important;letter-spacing:-1px!important;
  margin:11px 0 9px!important;color:#fff!important;
}
body.frontend-v2 .v2-discover-v30 .v30-wall-copy p{color:#d1d7e0!important;font-size:13px!important;line-height:1.55!important;margin:0!important}
body.frontend-v2 .v2-discover-v30 .v30-wall-actions{display:flex!important;gap:11px!important;margin-top:18px!important;flex-wrap:wrap!important}
body.frontend-v2 .v2-discover-v30 .v30-wall-actions a{font-size:12px!important}
@keyframes v30-wall-flow{
 from{transform:translate3d(0,0,0)}
 to{transform:translate3d(-50%,0,0)}
}
@media(prefers-reduced-motion:reduce){body.frontend-v2 .v2-discover-v30 .v30-wall-track{animation:none!important}}

/* PROFILE: actual existing DOM classes (.prf-header/.prf-badge-grid), no imagined elements.
   Grid positions preserve every existing link, tab event handler and notification action. */
body.frontend-v2:has(.prf-wrap) .ortala{
  width:calc(100% - 32px)!important;max-width:1200px!important;margin:0 auto!important;
  padding:20px 0 32px!important;
}
body.frontend-v2:has(.prf-wrap) .prf-wrap{
  display:grid!important;grid-template-columns:minmax(0,1fr) 290px!important;
  grid-template-rows:auto auto minmax(220px,auto)!important;
  align-items:start!important;gap:18px!important;position:relative!important;
  padding:0!important;margin:0!important;border:0!important;background:none!important;
  border-radius:0!important;box-shadow:none!important;
}
body.frontend-v2:has(.prf-wrap) .prf-header{
  grid-column:1/-1!important;grid-row:1!important;display:flex!important;
  flex-direction:row!important;text-align:left!important;align-items:center!important;
  gap:22px!important;padding:24px 220px 24px 28px!important;min-height:138px!important;
  margin:0!important;background:linear-gradient(120deg,#1a1f28,#151922 70%)!important;
  border:1px solid var(--v2-line)!important;border-radius:20px!important;
  overflow:visible!important;
}
body.frontend-v2:has(.prf-wrap) .prf-header::before{content:none!important}
body.frontend-v2:has(.prf-wrap) .prf-header .prf-ava{
  width:92px!important;height:92px!important;min-width:92px!important;object-fit:cover!important;
  border:3px solid #5f7386!important;border-radius:50%!important;box-shadow:none!important;
}
body.frontend-v2:has(.prf-wrap) .prf-info{
  flex:1!important;display:block!important;min-width:0!important;padding:0!important;
  text-align:left!important;align-items:flex-start!important;
}
body.frontend-v2:has(.prf-wrap) .prf-top{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:12px!important;width:100%!important;
}
body.frontend-v2:has(.prf-wrap) .prf-handle{
  font-size:23px!important;font-weight:700!important;letter-spacing:-.3px!important;
  color:#fff!important;line-height:1.22!important;margin:0!important;
}
body.frontend-v2:has(.prf-wrap) .prf-stats{
  display:flex!important;gap:9px!important;flex-wrap:wrap!important;align-items:center!important;
}
body.frontend-v2:has(.prf-wrap) .prf-stat{
  display:inline-flex!important;flex-direction:row!important;gap:5px!important;align-items:center!important;
  width:auto!important;min-height:0!important;padding:0!important;
  font-size:11px!important;font-weight:450!important;line-height:1.45!important;
  color:#bbc5d2!important;background:none!important;border:0!important;border-radius:0!important;
  text-align:left!important;letter-spacing:0!important;text-transform:none!important;
}
body.frontend-v2:has(.prf-wrap) .prf-stat:not(:first-child)::before{content:'•';color:#536275;margin-right:3px}
body.frontend-v2:has(.prf-wrap) .prf-stat strong{
  margin:0!important;display:inline!important;font-size:12px!important;font-weight:700!important;color:#fff!important;
}
body.frontend-v2:has(.prf-wrap) .prf-actions{
  position:absolute!important;grid-column:auto!important;top:24px!important;right:24px!important;z-index:5!important;
  display:flex!important;gap:8px!important;justify-content:flex-end!important;
}
body.frontend-v2:has(.prf-wrap) .prf-actions .tabbtn{
  background:#f3f6fa!important;color:#13171c!important;font-weight:600!important;
  border:1px solid #e3e7eb!important;border-radius:10px!important;padding:10px 14px!important;
  box-shadow:none!important;
}
body.frontend-v2:has(.prf-wrap) .prf-actions .tabbtn.logout-btn{background:#222933!important;color:#e6ebf1!important;border-color:#3b4552!important}
body.frontend-v2:has(.prf-wrap) .prf-tabs{
  grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:center!important;
  flex-wrap:wrap!important;gap:6px!important;margin:0!important;padding:7px!important;
  background:#20262e!important;border:1px solid var(--v2-line)!important;
  border-radius:15px!important;overflow-x:auto!important;
}
body.frontend-v2:has(.prf-wrap) .prf-tab-btn{
  flex:0 0 auto!important;display:inline-flex!important;justify-content:center!important;
  padding:11px 15px!important;border-radius:9px!important;font-size:13px!important;
  font-weight:580!important;color:#bcc6d3!important;background:none!important;border:0!important;
}
body.frontend-v2:has(.prf-wrap) .prf-tab-btn.active{
  background:#4a5666!important;color:#fff!important;
}
body.frontend-v2:has(.prf-wrap) .prf-tab-content{
  grid-column:1!important;grid-row:3!important;min-width:0!important;
  margin:0!important;padding:17px!important;
  border:1px solid var(--v2-line)!important;border-radius:16px!important;
  background:#181d25!important;max-height:none!important;overflow:visible!important;
}
body.frontend-v2:has(.prf-wrap) .prf-tab-content:not(.active){display:none!important}
body.frontend-v2:has(.prf-wrap) .prf-tab-content.active{display:block!important}
body.frontend-v2:has(.prf-wrap) .prf-badges{
  grid-column:2!important;grid-row:3!important;display:block!important;
  margin:0!important;padding:18px!important;
  background:#181d25!important;border:1px solid var(--v2-line)!important;
  border-radius:16px!important;box-shadow:none!important;
}
body.frontend-v2:has(.prf-wrap) .prf-badges h2{
  font-size:15px!important;font-weight:680!important;color:#e7edf6!important;
  margin:0 0 14px!important;padding:0!important;
}
body.frontend-v2:has(.prf-wrap) .prf-badge-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
}
body.frontend-v2:has(.prf-wrap) .prf-badge{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  min-width:0!important;gap:6px!important;padding:12px 7px!important;
  border-radius:12px!important;border:1px solid #303945!important;
  background:#222934!important;text-align:center!important;
}
body.frontend-v2:has(.prf-wrap) .prf-badge-art{width:36px!important;height:36px!important;flex:0 0 36px!important;margin:0 auto!important}
body.frontend-v2:has(.prf-wrap) .prf-badge-art img{width:34px!important;height:34px!important;object-fit:contain!important}
body.frontend-v2:has(.prf-wrap) .prf-badge strong{
  max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:11px!important;font-weight:590!important;line-height:1.3!important;
}
body.frontend-v2:has(.prf-wrap) .prf-list-item{
  padding:14px 15px!important;margin:0 0 9px!important;background:#242a33!important;
  border:1px solid #343e4b!important;border-radius:12px!important;
}
body.frontend-v2:has(.prf-wrap) .prf-list-item:hover{transform:none!important;border-color:#657488!important}
body.frontend-v2:has(.prf-wrap) .prf-list-item a{font-size:13px!important;font-weight:550!important}

@media(max-width:900px){
 body.frontend-v2:has(.prf-wrap) .prf-wrap{grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto!important}
 body.frontend-v2:has(.prf-wrap) .prf-header{grid-column:1!important;grid-row:1!important;padding:24px 20px!important}
 body.frontend-v2:has(.prf-wrap) .prf-actions{top:15px!important;right:16px!important}
 body.frontend-v2:has(.prf-wrap) .prf-tabs{grid-column:1!important;grid-row:2!important;flex-wrap:nowrap!important}
 body.frontend-v2:has(.prf-wrap) .prf-tab-content{grid-column:1!important;grid-row:3!important}
 body.frontend-v2:has(.prf-wrap) .prf-badges{grid-column:1!important;grid-row:4!important}
 body.frontend-v2:has(.prf-wrap) .prf-badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:600px){
 body.frontend-v2 .v2-topbar .v2-search-link{padding:0 11px!important;gap:8px!important;min-height:36px!important}
 body.frontend-v2 .v2-topbar .v2-search-link .v2-search-link-label{font-size:11px!important}
 body.frontend-v2 .v2-discover-v30{height:320px!important;min-height:320px!important}
 body.frontend-v2 .v2-discover-v30 .v30-wall-copy{left:18px!important;bottom:20px!important;right:18px!important}
 body.frontend-v2 .v2-discover-v30 .v30-wall-copy h2{font-size:33px!important}
 body.frontend-v2 .v2-discover-v30 .v30-wall-copy p{font-size:12px!important}
 body.frontend-v2 .v2-discover-v30 .v30-wall-poster{width:94px!important;height:141px!important;flex-basis:94px!important}
 body.frontend-v2:has(.prf-wrap) .ortala{width:calc(100% - 18px)!important;padding:10px 0 22px!important}
 body.frontend-v2:has(.prf-wrap) .prf-header{
  flex-direction:column!important;align-items:flex-start!important;gap:14px!important;
  padding:56px 16px 18px!important;text-align:left!important;
 }
 body.frontend-v2:has(.prf-wrap) .prf-header .prf-ava{width:74px!important;height:74px!important;min-width:74px!important}
 body.frontend-v2:has(.prf-wrap) .prf-handle{font-size:20px!important}
 body.frontend-v2:has(.prf-wrap) .prf-actions{top:12px!important;right:12px!important}
 body.frontend-v2:has(.prf-wrap) .prf-actions .tabbtn{padding:7px 9px!important;font-size:11px!important}
 body.frontend-v2:has(.prf-wrap) .prf-stat{font-size:10px!important}
 body.frontend-v2:has(.prf-wrap) .prf-tabs{white-space:nowrap!important}
 body.frontend-v2:has(.prf-wrap) .prf-tab-btn{font-size:11px!important;padding:10px 12px!important}
 body.frontend-v2:has(.prf-wrap) .prf-tab-content{padding:12px!important}
 body.frontend-v2:has(.prf-wrap) .prf-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
