/* YabancıDizi V2.32 — only additions for V2. Existing V1/auth/scraper unchanged. */
/* Posters: fallback is under the actual image. Never display an empty black rectangle. */
body.frontend-v2 .v2-poster-img,
body.frontend-v2 .v2-recent-art{position:relative!important;background:linear-gradient(140deg,#212735,#121821 75%)!important;isolation:isolate}
body.frontend-v2 .v2-poster-fallback{position:absolute;inset:0;z-index:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:100%;padding:16px;color:#acb8ca;font-size:13px;text-align:center;font-weight:520;line-height:1.4;overflow:hidden;overflow-wrap:anywhere}
body.frontend-v2 .v2-poster-fallback svg{width:42px;height:42px;opacity:.5;flex:none}
body.frontend-v2 .v2-poster-img > img,
body.frontend-v2 .v2-recent-art > img{position:relative;z-index:1;display:block;width:100%!important;height:100%!important;object-fit:cover!important}
body.frontend-v2 .v2-poster-missing > img{display:none!important}
body.frontend-v2 .v2-recent-art .v2-poster-fallback{padding:8px;font-size:10px}
/* Recent episodes: fixed frame and background, no hover border transitions. */
body.frontend-v2 section.v2-recent-episodes .v2-recent-grid > a.v2-recent-card,
body.frontend-v2 section.v2-recent-episodes .v2-recent-grid > a.v2-recent-card:hover,
body.frontend-v2 section.v2-recent-episodes .v2-recent-grid > a.v2-recent-card:focus-visible{
 background:var(--v2-panel,#181e27)!important;border:1px solid #37414f!important;box-shadow:none!important;transform:none!important;filter:none!important;transition:none!important;
}
body.frontend-v2 section.v2-recent-episodes .v2-recent-body small{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.frontend-v2 section.v2-recent-episodes .v2-recent-time{display:block;margin-top:7px;color:var(--v2-muted,#a6b0c0)!important;-webkit-text-fill-color:var(--v2-muted,#a6b0c0)!important;font-size:10px;font-weight:420;line-height:1.25;white-space:nowrap}
body.frontend-v2 section.v2-recent-episodes .v2-recent-time::before{content:'◷';margin-right:5px;font-size:11px;vertical-align:-.5px}
/* Header: an obvious click-to-search control, not a disabled input. */
body.frontend-v2 .v2-topbar .v2-search-link,
body.frontend-v2 .v2-topbar .v2-search-link:hover{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;min-width:214px!important;max-width:275px!important;width:auto!important;min-height:43px!important;padding:0 13px!important;
 border:1px solid #3a4455!important;border-radius:12px!important;background:color-mix(in srgb,var(--v2-panel) 92%,#202a3a)!important;
 color:#e8edf7!important;font-weight:520!important;font-size:12px!important;letter-spacing:0!important;text-decoration:none!important;box-shadow:0 4px 18px #0002!important;
}
body.frontend-v2 .v2-topbar .v2-search-link:hover{border-color:color-mix(in srgb,var(--v2-accent) 40%,#465064)!important}
body.frontend-v2 .v2-topbar .v2-search-link-label{display:block!important;flex:1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.2!important;font-size:12px!important;font-weight:500!important;margin:0!important}
body.frontend-v2 .v2-topbar .v2-search-link svg.v32-search-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;opacity:.78}
body.frontend-v2 .v2-topbar .v32-search-arrow{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.055);font-size:15px;color:#d9e0ed;flex:0 0 22px}
/* Auth: keep existing onclick/modal actions untouched; only presentation. */
body.frontend-v2 .v2-topbar .v32-auth-login,
body.frontend-v2 .v2-topbar .v32-auth-register{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:43px!important;padding:0 16px!important;border-radius:12px!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;line-height:1!important;box-shadow:none!important;transform:none!important}
body.frontend-v2 .v2-topbar .v32-auth-login{background:transparent!important;border:1px solid #434c5d!important;color:#ecf0fa!important}
body.frontend-v2 .v2-topbar .v32-auth-login:hover{background:rgba(255,255,255,.055)!important;border-color:#697385!important}
body.frontend-v2 .v2-topbar .v32-auth-register,
body.frontend-v2 .v2-topbar .v32-auth-register:hover{background:var(--v2-accent)!important;border:1px solid var(--v2-accent)!important;color:#fff!important;filter:none!important}
body.frontend-v2 .v2-topbar .v32-auth-register svg,body.frontend-v2 .v2-topbar .v32-auth-login svg{width:16px!important;height:16px!important;flex:0 0 16px!important}
@media(max-width:1050px){body.frontend-v2 .v2-topbar .v2-search-link{min-width:0!important;max-width:190px!important}body.frontend-v2 .v2-topbar .v32-auth-login,body.frontend-v2 .v2-topbar .v32-auth-register{padding:0 12px!important}}
@media(max-width:790px){body.frontend-v2 .v2-topbar .v2-search-link{min-width:0!important;max-width:none!important}body.frontend-v2 .v2-topbar .v32-search-arrow{display:none!important}}
@media(max-width:520px){body.frontend-v2 section.v2-recent-episodes .v2-recent-time{font-size:10px}body.frontend-v2 .v2-topbar .v32-auth-login svg,body.frontend-v2 .v2-topbar .v32-auth-register svg{display:none!important}}

/* Preserve the original V2 compact-header intent on smaller screens. */
@media(max-width:990px){body.frontend-v2 .v2-topbar .v32-auth-register{display:none!important}}
@media(max-width:550px){
 body.frontend-v2 .v2-topbar .v32-auth-login{display:none!important}
 body.frontend-v2 .v2-topbar .v2-search-link{width:41px!important;min-width:41px!important;max-width:41px!important;height:41px!important;min-height:41px!important;padding:0!important;justify-content:center!important}
 body.frontend-v2 .v2-topbar .v2-search-link-label{display:none!important}
 body.frontend-v2 .v2-topbar .v2-search-link svg.v32-search-icon{margin:0!important}
}
