/* BUILD295: the catalog page (page padding, search, tabs, rows, poster cards) is back to the Build293 layout (full width, larger cards,
   no side gutters). Only the Build294 detail/player/server-chooser rules below are kept, plus the custom sort dropdowns. */
#appContent .gyowatch-page{--gw-card:#12142b;--gw-line:rgba(255,255,255,.1);--gw-text:#f2f3ff;--gw-mute:#9ba1c9;--gw-a:#8b5cf6;--gw-b:#ec4899;--gw-grad:linear-gradient(135deg,#8b5cf6,#ec4899)}
#appContent .gyowatch-page:has(#gyowatchDetail:not(.hidden)) .gyowatch-tabs{position:static!important}
#appContent .gyowatch-detail{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important}
#appContent #gyowatchBack{align-self:flex-start!important;height:36px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.06)!important;color:#e9eaff!important;font-size:12.5px!important;font-weight:700!important}
#appContent .gyowatch-detail-head{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:14px!important;align-items:start!important;padding:12px!important;border-radius:18px!important;border:1px solid var(--gw-line)!important;background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(236,72,153,.08))!important}
#appContent .gyowatch-detail-head img{display:block!important;width:92px!important;height:auto!important;aspect-ratio:2/3!important;object-fit:cover!important;border-radius:12px!important;background:#1a1c3a!important;box-shadow:0 8px 20px rgba(0,0,0,.45)!important}
#appContent .gyowatch-detail-head>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;min-width:0!important}
#appContent .gyowatch-detail-head h3{margin:0!important;font-size:18px!important;font-weight:800!important;line-height:1.2!important;color:#fff!important;overflow-wrap:anywhere!important}
#appContent .gyowatch-detail-head p{margin:0!important;font-size:12px!important;color:var(--gw-mute)!important}
#appContent .gyowatch-detail-head small{font-size:11.5px!important;color:#d9dcf7!important}
#appContent .gyowatch-detail-head .gyowatch-id{display:inline-block!important;padding:2px 9px!important;border-radius:999px!important;background:rgba(251,191,36,.14)!important;color:#fbbf24!important;font-weight:700!important}
#appContent #gyowatchFavorite{height:34px!important;margin-top:4px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid rgba(167,139,250,.55)!important;background:rgba(139,92,246,.16)!important;color:#e9e2ff!important;font-size:12.5px!important;font-weight:700!important}
#appContent .gyowatch-detail .gyowatch-synopsis{margin:16px 0 0!important;font-size:13px!important;line-height:1.65!important;color:#c9cdea!important}
#appContent .gyowatch-detail .gyowatch-genres{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:14px 0 0!important}
#appContent .gyowatch-genres span{padding:4px 11px!important;border-radius:999px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.05)!important;font-size:11.5px!important;font-weight:600!important;color:#d5d8f3!important}
#appContent .gyowatch-detail .gyowatch-player-section-head{margin:30px 0 12px!important;padding:0!important}
#appContent .gyowatch-player-section-head h3{margin:0!important;font-size:14px!important;font-weight:800!important;color:#fff!important}
#appContent .gyowatch-page .gyowatch-player{border:1px solid var(--gw-line)!important;background:#05060f!important;box-shadow:0 14px 34px rgba(0,0,0,.5)!important}
#appContent .gyowatch-player-empty{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:150px!important;padding:18px!important;text-align:center!important;color:var(--gw-mute)!important}
#appContent .gyowatch-player-empty i{font-size:34px!important;color:#a78bfa!important}
#appContent .gyowatch-player-empty strong{font-size:13px!important;font-weight:600!important;color:#d9dcf7!important}
#appContent .gyowatch-playing-title{padding:10px 14px!important;border-top:1px solid var(--gw-line)!important;background:#0a0b1a!important;font-size:12.5px!important;font-weight:600!important;color:#e9eaff!important}
#appContent .gyowatch-servers{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin:12px 0 0!important;padding:12px!important;border-radius:14px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.04)!important}
#appContent .gyowatch-servers.hidden{display:none!important}
#appContent .gyowatch-servers-label{display:block!important;margin:0!important;font-size:11px!important;font-weight:800!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:var(--gw-mute)!important}
#appContent .gyowatch-server-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))!important;gap:8px!important}
#appContent .gyowatch-server{min-height:40px!important;min-width:0!important;padding:0 12px!important;text-align:center!important;white-space:nowrap!important;border-radius:999px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.06)!important;color:#d9dcff!important;font-size:12.5px!important;font-weight:700!important;line-height:1!important;touch-action:manipulation!important}
#appContent .gyowatch-server.is-active{border-color:transparent!important;background:var(--gw-grad)!important;color:#fff!important;box-shadow:0 6px 16px rgba(139,92,246,.4)!important}
#appContent .gyowatch-episodes.gyowatch-episode-tiles{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(48px,1fr))!important;gap:8px!important;padding:12px!important;border-radius:16px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.04)!important}
#appContent .gyowatch-episode-tile{min-width:0!important;height:44px!important;padding:0 4px!important;border-radius:12px!important;border:1px solid var(--gw-line)!important;background:rgba(255,255,255,.06)!important;color:#fff!important;font-size:14px!important;font-weight:800!important;box-shadow:none!important}
#appContent .gyowatch-episode-tile.is-playing{border-color:transparent!important;background:var(--gw-grad)!important;box-shadow:0 6px 16px rgba(139,92,246,.4)!important}
#appContent .gyowatch-no-source{grid-column:1/-1!important;padding:14px!important;font-size:12.5px!important;text-align:center!important;color:var(--gw-mute)!important}
@media(max-width:340px){#appContent .gyowatch-page{padding-inline:11px!important}#appContent .gyowatch-detail-head{grid-template-columns:78px minmax(0,1fr)!important;gap:11px!important}#appContent .gyowatch-detail-head img{width:78px!important}#appContent .gyowatch-card{flex-basis:108px!important;width:108px!important}}
@media(prefers-reduced-motion:no-preference){#appContent .gyowatch-card img,#appContent .gyowatch-server,#appContent .gyowatch-episode-tile{transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important}}

#appContent .gyowatch-page:has(#gyowatchDetail:not(.hidden)) .gyowatch-season-filters{display:none!important}

/* ---- custom sort dropdowns (replace native <select>, whose option list rendered light text on a white popup) ---- */
#appContent .gyowatch-season-filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;max-width:none!important;margin:10px 0 2px!important;padding:0!important;overflow:visible!important;position:relative!important;z-index:6!important}
#appContent .gyowatch-season-filters.hidden{display:none!important}
#appContent .gw-dd{position:relative!important;min-width:0!important}
#appContent .gw-dd-btn{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;padding:0 12px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.14)!important;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04))!important;color:#f2f3ff!important;font-size:13.5px!important;font-weight:600!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
#appContent .gw-dd-btn>i:first-child{flex:0 0 auto!important;color:#a78bfa!important;font-size:13px!important}
#appContent .gw-dd-label{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#f2f3ff!important}
#appContent .gw-dd-caret{flex:0 0 auto!important;font-size:11px!important;color:#a8aed6!important;transition:transform .18s ease}
#appContent .gw-dd.open .gw-dd-caret{transform:rotate(180deg)}
#appContent .gw-dd.open .gw-dd-btn,#appContent .gw-dd-btn:focus-visible{border-color:#a78bfa!important;box-shadow:0 0 0 3px rgba(139,92,246,.22)!important;outline:0!important}
#appContent .gw-dd.has-value .gw-dd-btn{border-color:rgba(167,139,250,.55)!important;background:linear-gradient(135deg,rgba(139,92,246,.30),rgba(236,72,153,.16))!important}
#appContent .gw-dd-list{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;z-index:40!important;max-height:min(264px,52vh)!important;overflow-y:auto!important;padding:6px!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.16)!important;background:#15172f!important;box-shadow:0 18px 40px rgba(0,0,0,.62)!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#appContent .gw-dd-list[hidden]{display:none!important}
#appContent .gw-dd-opt{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-height:42px!important;padding:0 12px!important;margin:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#e9eaff!important;font-size:13.5px!important;font-weight:600!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
#appContent .gw-dd-opt>span{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;color:inherit!important}
#appContent .gw-dd-opt>span i{width:16px!important;text-align:center!important;color:#a78bfa!important;font-size:12px!important}
#appContent .gw-dd-opt>i{visibility:hidden;color:#a78bfa!important;font-size:12px!important}
#appContent .gw-dd-opt.is-selected{background:rgba(139,92,246,.24)!important;color:#fff!important}
#appContent .gw-dd-opt.is-selected>i{visibility:visible}
#appContent .gw-dd-opt:hover,#appContent .gw-dd-opt:focus-visible{background:rgba(255,255,255,.09)!important;outline:0!important}
@media(max-width:340px){#appContent .gw-dd-btn{padding:0 9px!important;gap:7px!important;font-size:12.5px!important}}
/* Build296: vertical rhythm of the detail page (the flex gap of .gyowatch-detail does not apply here, so use explicit margins). */
#appContent .gyowatch-detail>#gyowatchBack{margin:0 0 14px!important}
#appContent .gyowatch-detail>.gyowatch-detail-head{margin:0!important}
#appContent .gyowatch-page .gyowatch-detail .gyowatch-player{margin:0!important}
#appContent .gyowatch-detail>.gyowatch-episodes{margin:12px 0 0!important}

/* Build297: preserve synopsis line breaks and avoid layout jank. */
#appContent .gyowatch-detail .gyowatch-synopsis{white-space:pre-line!important;overflow-wrap:anywhere!important}
#appContent .gyowatch-card img{content-visibility:auto}

/* Build298: in-app player preferences */

/* Build303 - profil GyoWatch (riwayat / favorit / pengaturan) */
.gw-hub-list{display:flex;flex-direction:column;gap:6px}
.gw-hub-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:rgba(255,255,255,.04);color:inherit;border-radius:12px;padding:6px;cursor:pointer}
.gw-hub-item img{width:38px;height:54px;object-fit:cover;border-radius:7px;flex-shrink:0;background:#222}
.gw-hub-item span{display:flex;flex-direction:column;gap:3px;min-width:0}
.gw-hub-item strong{font-size:12px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gw-hub-item small{font-size:10px;opacity:.65}
.gw-hub-empty{padding:26px 8px;text-align:center;font-size:12px;opacity:.7}
.gw-hub-clear{margin-top:10px;width:100%}

/* Build304 - profil lebih penuh, pengaturan kartu + switch, tab bar flat */
.gw-hub-profile{display:flex;align-items:center;gap:12px;margin:12px 0 10px}
.gw-hub-avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:19px;color:#fff;background:linear-gradient(135deg,#8b5cf6,#ec4899);flex-shrink:0}
.gw-hub-who{display:flex;flex-direction:column;gap:2px;min-width:0}.gw-hub-who strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gw-hub-who small{font-size:11px;opacity:.65}
.gw-hub-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:6px}
.gw-hub-stats div{background:rgba(255,255,255,.05);border-radius:12px;padding:9px 6px;text-align:center;display:flex;flex-direction:column;gap:2px;min-width:0}
.gw-hub-stats b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gw-hub-stats span{font-size:10px;opacity:.6}
.gw-hub-continue{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid rgba(139,92,246,.35);background:rgba(139,92,246,.12);color:inherit;border-radius:12px;padding:10px 12px;margin-bottom:8px;cursor:pointer}
.gw-hub-continue>i{font-size:24px;color:#a78bfa}.gw-hub-continue span{display:flex;flex-direction:column;gap:2px;min-width:0}.gw-hub-continue small{font-size:10px;opacity:.7}.gw-hub-continue strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gw-set-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:4px 12px;margin-bottom:10px}
.gw-set-card h4{margin:0;padding:10px 0 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.7;display:flex;align-items:center;gap:6px}
.gw-set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.06)}
.gw-set-row>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}.gw-set-row strong{font-size:13px}.gw-set-row small{font-size:11px;opacity:.65;line-height:1.35}
.gw-set-row select{max-width:128px;padding:7px 8px;border-radius:9px;font-size:12px;flex-shrink:0}
.gw-switch{position:relative;width:40px;height:23px;flex-shrink:0}.gw-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.gw-switch i{position:absolute;inset:0;border-radius:99px;background:rgba(255,255,255,.2);transition:background .15s}.gw-switch i::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:transform .15s}
.gw-switch input:checked+i{background:#8b5cf6}.gw-switch input:checked+i::after{transform:translateX(17px)}
.gw-set-note{font-size:11px;line-height:1.5;color:#f5bd75;margin:2px 2px 4px}
/* tab bar GyoWatch: rata (flat), tanpa blur, menempel penuh di atas */
html body #appContent .gyowatch-page .gyowatch-tabs{top:-12px!important;margin:-6px -12px 0!important;padding:15px 14px 7px!important;border-radius:0!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--bg,#080b16)!important;width:calc(100% + 24px)!important;max-width:none!important;align-self:auto!important}

/* Build305 - profil GyoWatch: halaman penuh di dalam ponsel (bukan popup di luar cloudphone) */
#appContent .gyowatch-page.is-profile>:not(#gyowatchProfile){display:none!important}
#appContent .gwp{display:block;padding:4px 0 30px;color:var(--text,#f2f3ff)}
#appContent .gwp.hidden{display:none!important}
#appContent .gwp-bar{display:flex;justify-content:flex-end;gap:14px;margin:0 0 6px}
#appContent .gwp-act{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:58px;padding:0;border:0;background:none;color:#d9dcff;cursor:pointer;touch-action:manipulation}
#appContent .gwp-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);transition:transform .15s ease,background .15s ease}
#appContent .gwp-act-fav .gwp-ico{color:#fbbf24;background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.38)}
#appContent .gwp-act-set .gwp-ico{color:#c4b5fd;background:rgba(139,92,246,.16);border-color:rgba(167,139,250,.42)}
#appContent .gwp-act:active .gwp-ico{transform:scale(.93)}
#appContent .gwp-lbl{font-size:11px;font-weight:700;letter-spacing:.02em}
#appContent .gwp-title{margin:4px 0 14px;font-size:28px;line-height:1.1;font-weight:800;color:#fff}
#appContent .gwp-sub{margin:-8px 0 14px;font-size:12.5px;color:#9ba1c9}
#appContent .gwp-card{margin:0 0 6px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(236,72,153,.08))}
#appContent .gwp-card .gw-hub-profile{margin:0 0 12px}
#appContent .gwp-card .gw-hub-avatar{width:54px;height:54px;font-size:22px;box-shadow:0 0 0 3px rgba(139,92,246,.3)}
#appContent .gwp-sec{margin:24px 0 10px;font-size:17px;font-weight:800;color:#fff}
#appContent .gwp .gw-hub-item strong{font-size:13.5px}
#appContent .gwp .gw-hub-item small{font-size:11px}
#appContent .gwp-fav{display:flex;align-items:stretch;gap:8px;margin-bottom:8px}
#appContent .gwp-fav-open{flex:1;min-width:0}
#appContent .gwp-fav-open img{width:52px;height:74px}
#appContent .gwp-fav-del{flex:0 0 46px;display:grid;place-items:center;padding:0;border-radius:12px;border:1px solid rgba(251,191,36,.38);background:rgba(251,191,36,.12);color:#fbbf24;cursor:pointer}
#appContent .gwp .gw-set-row.gw-set-stack{flex-direction:column;align-items:stretch;gap:8px}
#appContent .gwp-seg{display:flex;width:100%;padding:3px;border-radius:12px;background:rgba(255,255,255,.08)}
#appContent .gwp-seg button{flex:1;min-height:38px;border:0;border-radius:9px;background:transparent;color:#cfd2f0;font-size:13px;font-weight:700}
#appContent .gwp-seg button.is-on{background:linear-gradient(135deg,#8b5cf6,#ec4899);color:#fff}
#appContent .gwp-foot{display:flex;gap:10px;margin-top:10px}
#appContent .gwp-foot button{flex:1;min-height:46px}
/* ikon profil di header GyoWatch */
#appWindow #appMore.is-profile{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;color:#fff;background:linear-gradient(135deg,#8b5cf6,#ec4899);border:1px solid rgba(255,255,255,.38);box-shadow:0 0 0 3px rgba(139,92,246,.25),0 4px 12px rgba(139,92,246,.45)}
#appWindow #appMore.is-profile svg{display:block}
/* tanpa teks hitungan konten (dikosongkan di Beranda) */
#appContent #gyowatchStatus:empty{display:none!important}
#appContent .gwp .gw-hub-stats b{white-space:normal;overflow-wrap:anywhere;line-height:1.2}


/* ===== Build306: tombol pengait "kembali" profil menyembunyikan dirinya sendiri.
   Sebelumnya hanya disembunyikan oleh nav-back.css; bila file itu masih versi lama di cache browser, tombol kosongnya tampil
   sebagai garis pendek di kiri atas halaman Profil. ===== */
#appContent .gwp-backhook,#appContent #gyowatchProfileBack{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;pointer-events:none!important;opacity:0!important}

/* ---- Build316: separate title / synopsis translation settings with flag icons ---- */
.gw-flag{display:block;flex:0 0 auto;width:28px;height:19px;border-radius:4px;box-shadow:0 0 0 1px rgba(255,255,255,.3),0 2px 6px rgba(0,0,0,.35)}
#appContent .gw-lang-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#appContent .gw-lang-seg button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:62px;padding:9px 4px;min-width:0}
#appContent .gw-lang-seg button span{font-size:12px;line-height:1.15;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appContent .gw-lang-seg button.is-on .gw-flag{box-shadow:0 0 0 2px #fff,0 3px 10px rgba(0,0,0,.4)}
#appContent .gw-syn-note{display:flex;align-items:center;gap:8px;margin:2px 2px 0;font-size:11.5px;line-height:1.3;color:#aab0d8}
#appContent .gw-syn-note[hidden]{display:none!important}
#appContent .gw-syn-note .gw-flag{width:20px;height:14px;border-radius:3px}
#appContent .gw-syn-note span{min-width:0;flex:1 1 auto}
#appContent .gw-syn-toggle{flex:0 0 auto;margin-left:auto;padding:5px 11px;border-radius:99px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#eceeff;font-size:11.5px;font-weight:700;cursor:pointer}
#appContent .gw-syn-toggle[aria-pressed="true"]{background:linear-gradient(135deg,#8b5cf6,#ec4899);border-color:transparent;color:#fff}
@media(max-width:340px){#appContent .gw-lang-seg button{min-height:56px}#appContent .gw-lang-seg button span{font-size:11px}}

