/* corefilms plus — accounts, AI, trending, networks, quality badges and motion polish.
 * Loaded after style.css; every rule is namespaced (.pl-*) or a deliberate motion layer on existing classes. */

:root {
  --pl-imdb: #f5c518;
  --pl-spring: cubic-bezier(.2, 1.15, .3, 1);
  --pl-ai: #b99cff;
  --pl-ai-2: #7dd3fc;
}
.pl-hide { display: none !important; }

/* ------------------------------------------------------------------ motion layer */
@keyframes plRoute { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes plCardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes plFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes plPop { from { opacity: 0; transform: translateY(22px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes plToast { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes plDrop { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes plMenu { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes plPulse { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .45); transform: scale(.985); } 60% { box-shadow: 0 0 0 10px rgba(167, 139, 250, 0); transform: scale(1.012); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); transform: none; } }
@keyframes plRipple { to { transform: scale(1); opacity: 0; } }
@keyframes plBadgeIn { from { opacity: 0; transform: translateY(6px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes plShimmer { to { transform: translateX(100%); } }
@keyframes plFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -26px, 0) scale(1.08); } }
@keyframes plDrift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes plDriftDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes plDots { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }

#view.pl-route { animation: plFade .2s var(--ease) both; }
.card.pl-in { animation: plCardIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); }
.section.pl-in, .pl-block.pl-in { animation: plCardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

.modal-backdrop { animation: plFade .24s ease both; }
.modal { animation: plPop .42s var(--pl-spring) both; }
.toast:not([hidden]) { animation: plToast .42s var(--pl-spring) both; }
.search-suggest:not([hidden]) { animation: plDrop .24s var(--ease) both; transform-origin: top center; }
.player-menu:not([hidden]) { animation: plMenu .24s var(--ease) both; transform-origin: bottom right; }
.episode-row.active { animation: plPulse .6s var(--ease); }
.server-row.selected { animation: plPulse .6s var(--ease); }
.chip.active, .segmented button.active { animation: plBadgeIn .3s var(--ease); }

.card, .chip, .btn, .server-row, .episode-row, .icon-btn, .segmented button, .nav-item, .catalog-tile, .suggest-row, .player-icon, .round-control, .play-control {
  transition-property: transform, background-color, border-color, color, box-shadow, opacity, filter;
  transition-duration: .28s;
  transition-timing-function: var(--ease);
}
.card:hover { transform: translateY(-5px); }
.card:active { transform: translateY(-1px) scale(.985); }
.btn:hover { transform: translateY(-1px); }
.btn:active, .chip:active, .segmented button:active, .icon-btn:active, .player-icon:active { transform: scale(.94); transition-duration: .1s; }
.server-row:active, .episode-row:active { transform: scale(.985); transition-duration: .1s; }
.server-row:hover, .episode-row:hover { transform: translateX(3px); }
.nav-item:hover { transform: translateX(3px); }
.catalog-tile:hover { transform: translateY(-4px) scale(1.01); }
.play-control:active, .round-control:active { transform: scale(.9); }

.btn, .chip, .server-row, .episode-row, .segmented button, .icon-btn { position: relative; overflow: hidden; }
.pl-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .34); transform: scale(0); opacity: .9; pointer-events: none; animation: plRipple .62s ease-out forwards; }
.btn-light .pl-ripple, .chip.active .pl-ripple { background: rgba(0, 0, 0, .18); }

body.pl-reduced *, body.pl-reduced *::before, body.pl-reduced *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ badges */
.pl-imdb { display: inline-flex; align-items: center; gap: 7px; color: #f3f3f5; font-weight: 700; font-size: 13px; line-height: 1; }
.pl-imdb b { display: inline-grid; place-items: center; background: var(--pl-imdb); color: #000; border-radius: 4px; padding: 3px 5px 2px; font: 800 10.5px/1 var(--font); letter-spacing: -.02em; }
.pl-imdb small { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: -3px; }
.pl-imdb.sm { font-size: 11.5px; gap: 5px; }
.pl-imdb.sm b { font-size: 9px; padding: 2px 4px 1px; }
.card-meta .star { color: var(--pl-imdb) !important; font-weight: 600; }

.pl-q {
  position: absolute; right: 9px; bottom: 9px; z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 6px; font: 800 9.5px/1 var(--font); letter-spacing: .07em;
  color: #fff; background: rgba(10, 10, 12, .66); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: plBadgeIn .38s var(--pl-spring) both; pointer-events: none;
}
.card-poster:has(.card-progress) .pl-q { bottom: 21px; }
.pl-q.q4k { color: #160722; background: linear-gradient(135deg, #ede9fe, #a78bfa 55%, #7c3aed); border-color: rgba(237, 233, 254, .75); box-shadow: 0 4px 14px rgba(167, 139, 250, .4); }
.pl-q.qfhd { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); }
.pl-q.qhd { color: #d4d4dc; }
.pl-q.qsd { color: #8e8e99; }
.pl-q i { font-style: normal; font-size: 8.5px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .78); color: #e9d5ff; }

.pl-qbadge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px;
  font: 800 11px/1 var(--font); letter-spacing: .06em; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-strong);
  animation: plBadgeIn .4s var(--pl-spring) both;
}
.pl-qbadge.q4k { color: #160722; background: linear-gradient(135deg, #ede9fe, #a78bfa 55%, #7c3aed); border-color: transparent; box-shadow: 0 6px 20px rgba(167, 139, 250, .35); }
.pl-qbadge.hdr { color: #0a0a0c; background: #fff; border-color: #fff; }
.pl-qbadge.checking { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.pl-qbadge.checking::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: plSpin .8s linear infinite; }

.pl-metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.pl-metarow .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.pl-metarow .txt { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ nav additions */
.nav-item.pl-new::after { content: "NEW"; margin-left: auto; font: 800 8px/1 var(--font); letter-spacing: .08em; color: #160e26; background: linear-gradient(135deg, #d6c2ff, #7dd3fc); padding: 3px 5px; border-radius: 4px; }
.pl-ai-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #e9e1ff;
  background: linear-gradient(135deg, rgba(185, 156, 255, .18), rgba(125, 211, 252, .12)); border: 1px solid rgba(185, 156, 255, .32);
}
.pl-ai-pill:hover { color: #fff; border-color: rgba(185, 156, 255, .6); box-shadow: 0 8px 28px rgba(185, 156, 255, .22); transform: translateY(-1px); }
.pl-ai-pill .ic { width: 15px; height: 15px; color: var(--pl-ai); }
.pl-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 5px; box-shadow: 0 0 0 3px rgba(110, 231, 168, .14); }
.pl-sync-dot.off { background: var(--muted-2); box-shadow: none; }
.pl-sync-dot.busy { background: var(--accent); animation: plGlow 1s infinite; }
.pl-sync-dot.err { background: var(--red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .14); }
.pl-suggest-ai {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 12px); margin: 6px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 12px; font-weight: 500; color: #e9e1ff;
  background: linear-gradient(135deg, rgba(185, 156, 255, .14), rgba(125, 211, 252, .08)); border: 1px solid rgba(185, 156, 255, .26);
}
.pl-suggest-ai:hover { border-color: rgba(185, 156, 255, .55); transform: translateY(-1px); }
.pl-suggest-ai .ic { width: 16px; height: 16px; color: var(--pl-ai); flex: none; }
.pl-suggest-ai span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ auth gate */
.pl-gate { position: fixed; inset: 0; z-index: 400; overflow: auto; background: #060608; display: grid; place-items: center; padding: 28px 18px; animation: plFade .4s ease both; }
.pl-gate.closing { animation: plFade .35s ease reverse both; pointer-events: none; }
.pl-gate-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.pl-gate-bg::before, .pl-gate-bg::after { content: ""; position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(90px); opacity: .5; animation: plFloat 18s ease-in-out infinite; }
.pl-gate-bg::before { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 65%); }
.pl-gate-bg::after { right: -20vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(139, 108, 255, .5), transparent 65%); animation-delay: -7s; }
.pl-wall { position: absolute; inset: -10%; display: flex; gap: 14px; justify-content: center; transform: rotate(-9deg) scale(1.1); opacity: .2; filter: saturate(1.1); }
.pl-wall-col { width: 150px; flex: none; display: flex; flex-direction: column; gap: 14px; animation: plDrift 70s linear infinite; }
.pl-wall-col:nth-child(even) { animation-name: plDriftDown; animation-duration: 85s; }
.pl-wall-col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #15151a; }
.pl-gate-shade { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(6, 6, 8, .35), rgba(6, 6, 8, .94) 72%), linear-gradient(180deg, rgba(6, 6, 8, .6), transparent 30%, rgba(6, 6, 8, .85)); }
.pl-gate-inner { position: relative; z-index: 2; width: min(440px, 100%); }
.pl-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.pl-brand .mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font: 400 26px/1 var(--serif); font-style: italic; color: #160722; background: linear-gradient(145deg, #e9d5ff, #a78bfa); box-shadow: 0 10px 34px rgba(167, 139, 250, .4); }
.pl-brand .word { font-size: 25px; font-weight: 700; letter-spacing: .14em; }
.pl-brand .word span { color: var(--accent); }
.pl-card {
  position: relative; border-radius: 26px; padding: 30px 28px 26px; background: linear-gradient(180deg, rgba(24, 24, 30, .86), rgba(14, 14, 18, .9));
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); animation: plPop .6s var(--pl-spring) both;
}
.pl-card h1 { font-size: 27px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.pl-card h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent-strong); }
.pl-card .lead { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.pl-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 4px; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pl-tabs button { position: relative; z-index: 1; height: 36px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-radius: 10px; transition: color .25s; }
.pl-tabs button.active { color: #111; }
.pl-tabs .glider { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #f4f4f6; transition: transform .38s var(--pl-spring); }
.pl-tabs[data-tab="register"] .glider { transform: translateX(100%); }
.pl-field { position: relative; margin-top: 14px; }
.pl-field label { display: block; margin-bottom: 7px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.pl-field label span { text-transform: none; letter-spacing: 0; color: var(--muted-2); opacity: .8; margin-left: 4px; }
.pl-input { position: relative; display: flex; align-items: center; }
.pl-input > .ic { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; transition: color .2s; }
.pl-input input {
  width: 100%; height: 48px; padding: 0 44px 0 42px; border-radius: 13px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 14px; outline: none; transition: border-color .22s, background .22s, box-shadow .22s;
}
.pl-input input::placeholder { color: var(--muted-2); }
.pl-input input:focus { border-color: rgba(167, 139, 250, .6); background: rgba(167, 139, 250, .05); box-shadow: 0 0 0 4px rgba(167, 139, 250, .1); }
.pl-input:focus-within > .ic { color: var(--accent); }
.pl-input .eye { position: absolute; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--muted-2); }
.pl-input .eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pl-input .eye .ic { width: 16px; height: 16px; }
.pl-error { min-height: 18px; margin-top: 12px; font-size: 12px; color: #fca5a5; line-height: 1.5; }
.pl-error:empty { min-height: 0; margin: 0; }
.pl-error.show { animation: plShake .4s ease; }
@keyframes plShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pl-submit { width: 100%; height: 50px; margin-top: 16px; border-radius: 14px; font-size: 14px; font-weight: 700; color: #160722; background: linear-gradient(135deg, #e9d5ff, #a78bfa); box-shadow: 0 14px 36px rgba(167, 139, 250, .3); display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.pl-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(167, 139, 250, .42); }
.pl-submit:active { transform: scale(.98); }
.pl-submit[disabled] { opacity: .65; pointer-events: none; }
.pl-submit .spinner { border-top-color: #160722; border-color: rgba(22, 7, 34, .2); }
.pl-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pl-or::before, .pl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pl-guest { width: 100%; height: 44px; margin-top: 10px; border-radius: 13px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); }
.pl-guest:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.pl-perks { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pl-perks li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.pl-perks .ic { width: 15px; height: 15px; color: var(--green); flex: none; }
.pl-gate-close { position: fixed; top: 18px; right: 18px; z-index: 5; }

/* account modal */
.pl-acct-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.pl-acct-head .avatar { width: 56px; height: 56px; font-size: 19px; }
.pl-acct-head strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.pl-acct-head small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 11.5px; }
.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pl-stat { padding: 13px 10px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.pl-stat b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.pl-stat span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pl-sync-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 11.5px; color: var(--muted); background: rgba(110, 231, 168, .06); border: 1px solid rgba(110, 231, 168, .16); }
.pl-sync-line.off { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.pl-acct-actions { display: grid; gap: 8px; margin-top: 16px; }
.pl-acct-actions .btn { justify-content: center; width: 100%; }
.pl-inline-form { display: flex; gap: 8px; margin-top: 12px; }
.pl-inline-form input { flex: 1; height: 40px; padding: 0 12px; border-radius: 11px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong); color: var(--text); font-size: 13px; outline: none; }
.pl-inline-form input:focus { border-color: rgba(167, 139, 250, .5); }

/* ------------------------------------------------------------------ toolbar (sort / quality) */
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 18px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); animation: plCardIn .5s var(--ease) both; }
.pl-bar .grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-bar .lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pl-bar .chip { height: 30px; font-size: 11.5px; }
.pl-bar .spacer { flex: 1; }
.pl-bar .status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pl-bar .status .spinner { width: 12px; height: 12px; }
.pl-bar .meter { width: 90px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pl-bar .meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }

/* ------------------------------------------------------------------ blocks on home / pages */
.pl-block { margin-bottom: 8px; }
.pl-why { margin-top: 5px; font-size: 10.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-ai-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 9px; border-radius: 999px; font: 700 9.5px/1.6 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #e9e1ff; background: linear-gradient(135deg, rgba(185, 156, 255, .2), rgba(125, 211, 252, .12)); border: 1px solid rgba(185, 156, 255, .3); vertical-align: middle; }
.pl-refresh { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); }
.pl-refresh:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pl-refresh .ic { width: 12px; height: 12px; }
.pl-refresh.spin .ic { animation: plSpin .9s linear infinite; }
.pl-cta { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(185, 156, 255, .14), rgba(125, 211, 252, .07)), var(--panel); border: 1px solid rgba(185, 156, 255, .24); margin: 0 0 34px; }
.pl-cta .glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #d6c2ff, #7dd3fc); color: #160e26; }
.pl-cta .glyph .ic { width: 22px; height: 22px; }
.pl-cta h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pl-cta p { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.pl-cta .btn { margin-left: auto; flex: none; }

/* networks */
.pl-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pl-net {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .1); background: var(--net-bg, #111); transition: transform .4s var(--pl-spring), box-shadow .4s var(--ease), border-color .3s;
}
.pl-net::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, var(--net-glow, rgba(255, 255, 255, .12)), transparent 60%); opacity: .9; transition: opacity .3s, transform .6s var(--ease); }
.pl-net:hover { transform: translateY(-5px) scale(1.025); border-color: rgba(255, 255, 255, .28); box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 0 1px var(--net-ring, transparent); }
.pl-net:hover::before { transform: scale(1.15); }
.pl-net:active { transform: scale(.98); }
.pl-net .logo { font-weight: 800; letter-spacing: -.02em; font-size: clamp(22px, 2.3vw, 30px); line-height: 1; color: var(--net-fg, #fff); text-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.pl-net .logo small { display: block; margin-top: 5px; text-align: center; font-size: 9px; font-weight: 600; letter-spacing: .24em; color: rgba(255, 255, 255, .6); text-transform: uppercase; }
.pl-net .name { position: absolute; left: 14px; bottom: 11px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.pl-net .go { position: absolute; right: 12px; bottom: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.pl-net:hover .go { opacity: 1; transform: none; }
.pl-net .go .ic { width: 12px; height: 12px; }
.pl-net.nfx { --net-bg: linear-gradient(145deg, #1a0306, #0b0b0d 70%); --net-glow: rgba(229, 9, 20, .5); --net-fg: #e50914; --net-ring: rgba(229, 9, 20, .5); }
.pl-net.nfx .logo { letter-spacing: .06em; font-weight: 900; }
.pl-net.hbo { --net-bg: linear-gradient(145deg, #0a0a14, #000 75%); --net-glow: rgba(150, 120, 255, .4); --net-fg: #fff; --net-ring: rgba(190, 170, 255, .45); }
.pl-net.hbo .logo { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: .02em; font-weight: 900; }
.pl-net.osn { --net-bg: linear-gradient(145deg, #1c0a26, #0c0612 75%); --net-glow: rgba(255, 47, 179, .45); --net-fg: #fff; --net-ring: rgba(255, 47, 179, .5); }
.pl-net.osn .logo { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.04em; }
.pl-net.osn .logo b { color: #ff2fb3; font-weight: 800; }
.pl-net.dnp { --net-bg: linear-gradient(145deg, #07123a, #040918 75%); --net-glow: rgba(60, 130, 255, .5); --net-fg: #eaf1ff; --net-ring: rgba(80, 140, 255, .5); }
.pl-net.dnp .logo { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); }
.pl-net.amp { --net-bg: linear-gradient(145deg, #031a2b, #02080f 75%); --net-glow: rgba(0, 168, 225, .5); --net-fg: #fff; --net-ring: rgba(0, 168, 225, .5); }
.pl-net.amp .logo b { color: #00a8e1; }
.pl-net.atp { --net-bg: linear-gradient(145deg, #1b1b1f, #050506 75%); --net-glow: rgba(255, 255, 255, .2); --net-fg: #fff; --net-ring: rgba(255, 255, 255, .35); }
.pl-net-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px 32px 28px; margin-bottom: 22px; border-radius: 26px; overflow: hidden; isolation: isolate; background: var(--net-bg, #111); border: 1px solid rgba(255, 255, 255, .1); animation: plCardIn .55s var(--ease) both; }
.pl-net-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 140% at 90% 0%, var(--net-glow), transparent 62%); }
.pl-net-hero .logo { font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -.03em; color: var(--net-fg, #fff); line-height: 1; }
.pl-net-hero .logo b { color: var(--net-accent, inherit); }
.pl-net-hero p { margin-top: 10px; max-width: 520px; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.65; }
.pl-net-hero.nfx { --net-bg: linear-gradient(145deg, #1d0307, #0b0b0d 70%); --net-glow: rgba(229, 9, 20, .5); --net-fg: #e50914; }
.pl-net-hero.hbo { --net-bg: linear-gradient(145deg, #0d0d1a, #000 75%); --net-glow: rgba(150, 120, 255, .42); }
.pl-net-hero.osn { --net-bg: linear-gradient(145deg, #230b30, #0c0612 75%); --net-glow: rgba(255, 47, 179, .45); --net-accent: #ff2fb3; }
.pl-net-hero.dnp { --net-bg: linear-gradient(145deg, #08154a, #040918 75%); --net-glow: rgba(60, 130, 255, .5); --net-fg: #eaf1ff; }
.pl-net-hero.dnp .logo { font-family: var(--serif); font-style: italic; font-weight: 400; }
.pl-net-hero.amp { --net-bg: linear-gradient(145deg, #031f33, #02080f 75%); --net-glow: rgba(0, 168, 225, .5); --net-accent: #00a8e1; }
.pl-net-hero.atp { --net-bg: linear-gradient(145deg, #202026, #050506 75%); --net-glow: rgba(255, 255, 255, .22); }
.pl-net-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-more { display: flex; justify-content: center; margin: 28px 0 10px; }
.pl-more .btn { min-width: 180px; justify-content: center; }

/* trending */
.pl-top10 { display: flex; gap: 6px; overflow-x: auto; padding: 4px 4px 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pl-top10::-webkit-scrollbar { display: none; }
.pl-t10 { position: relative; flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; padding-left: 62px; }
.pl-t10 .rank {
  position: absolute; left: -2px; bottom: 36px; z-index: 0; font-size: 142px; line-height: .78; font-weight: 900; letter-spacing: -.09em; font-family: var(--font);
  color: #0a0a0c; -webkit-text-stroke: 3px rgba(255, 255, 255, .42); pointer-events: none; transition: -webkit-text-stroke-color .3s, transform .5s var(--pl-spring);
}
.pl-t10:hover .rank { -webkit-text-stroke-color: var(--accent); transform: translateX(-4px) scale(1.04); }
.pl-t10 .card { position: relative; z-index: 1; width: 158px; }
.pl-trend-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.pl-heat { display: inline-flex; align-items: center; gap: 5px; font: 800 9.5px/1 var(--font); letter-spacing: .08em; color: #ddd6fe; padding: 3px 7px; border-radius: 5px; background: rgba(167, 139, 250, .16); border: 1px solid rgba(167, 139, 250, .3); }
.pl-heat .ic { width: 10px; height: 10px; fill: currentColor; stroke: none; }

/* AI page */
.pl-ai-wrap { max-width: 1080px; }
.pl-ai-hero { position: relative; padding: 34px 32px 30px; margin-bottom: 26px; border-radius: 28px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #15121f, #0c0c11 70%); border: 1px solid rgba(185, 156, 255, .22); animation: plCardIn .55s var(--ease) both; }
.pl-ai-hero::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(185, 156, 255, .38), transparent 65%); filter: blur(30px); animation: plFloat 14s ease-in-out infinite; }
.pl-ai-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -140px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(125, 211, 252, .26), transparent 65%); filter: blur(30px); animation: plFloat 18s ease-in-out infinite reverse; }
.pl-ai-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--pl-ai); }
.pl-ai-hero h1 { margin-top: 10px; font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.pl-ai-hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; background: linear-gradient(135deg, #d6c2ff, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-ai-hero p.sub { margin-top: 10px; max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pl-prompt { position: relative; margin-top: 22px; border-radius: 20px; padding: 2px; background: linear-gradient(135deg, rgba(185, 156, 255, .55), rgba(125, 211, 252, .35), rgba(167, 139, 250, .4)); background-size: 200% 200%; animation: plGlowShift 8s ease infinite; }
@keyframes plGlowShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.pl-prompt-inner { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 18px; background: #0d0d12; }
.pl-prompt textarea { flex: 1; min-height: 28px; max-height: 140px; padding: 9px 0; resize: none; background: none; border: 0; outline: none; color: var(--text); font: 400 15px/1.5 var(--font); }
.pl-prompt textarea::placeholder { color: var(--muted-2); }
.pl-send { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #160e26; background: linear-gradient(135deg, #d6c2ff, #7dd3fc); transition: transform .3s var(--pl-spring), box-shadow .3s; }
.pl-send:hover { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 12px 30px rgba(185, 156, 255, .4); }
.pl-send:active { transform: scale(.92); }
.pl-send[disabled] { opacity: .55; pointer-events: none; }
.pl-send .ic { width: 19px; height: 19px; }
.pl-ai-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.pl-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pl-idea { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 11.5px; color: #d9d2ec; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pl-idea:hover { color: #fff; border-color: rgba(185, 156, 255, .5); background: rgba(185, 156, 255, .12); transform: translateY(-2px); }
.pl-bubble { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 22px; border-radius: 18px; background: rgba(185, 156, 255, .07); border: 1px solid rgba(185, 156, 255, .2); animation: plCardIn .5s var(--ease) both; }
.pl-bubble .ava { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #d6c2ff, #7dd3fc); color: #160e26; }
.pl-bubble .ava .ic { width: 17px; height: 17px; }
.pl-bubble p { font-size: 13.5px; line-height: 1.7; color: #dedbea; }
.pl-bubble small { display: block; margin-top: 6px; font-size: 10.5px; color: var(--muted-2); }
.pl-think { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pl-think .dots { display: inline-flex; gap: 5px; }
.pl-think .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-ai); animation: plDots 1.2s infinite ease-in-out; }
.pl-think .dots i:nth-child(2) { animation-delay: .15s; }
.pl-think .dots i:nth-child(3) { animation-delay: .3s; }
.pl-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; }
.pl-pick .card { width: 100%; }
.pl-history { margin-top: 30px; }
.pl-history h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }

/* ------------------------------------------------------------------ detail additions */
.pl-spot { position: relative; max-width: 760px; margin-top: 18px; padding: 15px 18px 15px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(167, 139, 250, .09), rgba(255, 255, 255, .02)); border: 1px solid rgba(167, 139, 250, .2); overflow: hidden; animation: plCardIn .5s var(--ease) both; }
.pl-spot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent-strong), var(--accent)); }
.pl-spot .kick { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--accent-strong); text-transform: uppercase; }
.pl-spot .kick .air { margin-left: auto; color: var(--muted-2); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11px; }
.pl-spot h4 { margin-top: 7px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.pl-spot p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: #c3c4cc; }
.pl-spot p.none { color: var(--muted-2); font-style: italic; }
.pl-spot.swap { animation: plCardIn .45s var(--ease) both; }
.pl-rate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pl-rate-row .lbl { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.pl-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 1px; }
.pl-star { width: 24px; height: 24px; display: grid; place-items: center; color: rgba(255, 255, 255, .2); transition: transform .25s var(--pl-spring), color .15s; }
.pl-star .ic { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.pl-star:hover, .pl-star:hover ~ .pl-star, .pl-star.on { color: var(--pl-imdb); }
.pl-star:hover { transform: scale(1.3) rotate(-8deg); }
.pl-rate-val { min-width: 54px; font-size: 12px; color: var(--muted); }
.pl-rate-val b { color: #fff; font-size: 14px; }
.pl-share-btn .ic { width: 15px; height: 15px; }

/* share modal */
.pl-share-box { display: flex; gap: 8px; margin-top: 16px; }
.pl-share-box input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 13px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong); color: var(--text); font-size: 12.5px; outline: none; }
.pl-share-box input:focus { border-color: rgba(167, 139, 250, .5); }
.pl-share-box .btn { flex: none; }
.pl-share-opts { display: grid; gap: 4px; margin-top: 14px; }
.pl-share-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 12.5px; }
.pl-share-opt small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.pl-share-note { margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 11.5px; line-height: 1.6; color: #ddd6fe; background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .2); }
.pl-share-title { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.pl-share-title img { width: 42px; height: 62px; object-fit: cover; border-radius: 8px; background: #17171c; }
.pl-share-title strong { display: block; font-size: 14px; font-weight: 600; }
.pl-share-title small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 11.5px; }

/* ------------------------------------------------------------------ player additions */
.pl-synopsis { max-width: min(620px, 58vw); margin-top: 7px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); animation: plFade .4s ease both; }
.pl-synopsis:empty { display: none; }
.pl-synopsis b { color: #fff; font-weight: 600; }

@media (max-width: 760px) {
  .pl-card { padding: 24px 20px 22px; border-radius: 22px; }
  .pl-ai-hero, .pl-net-hero { padding: 24px 20px; border-radius: 22px; }
  .pl-cta { flex-wrap: wrap; }
  .pl-cta .btn { margin-left: 0; width: 100%; justify-content: center; }
  .pl-t10 { padding-left: 46px; }
  .pl-t10 .rank { font-size: 112px; }
  .pl-t10 .card { width: 132px; }
  .pl-ai-pill span { display: none; }
  .pl-ai-pill { padding: 0 11px; }
  .pl-synopsis { max-width: 86vw; -webkit-line-clamp: 2; }
  .pl-bar { padding: 10px; }
  .pl-wall-col { width: 110px; }
}

/* ------------------------------------------------------------------
   HOME EXTRA ROWS + NETWORK TILES
   These classes are emitted by plus-discover.js. They intentionally mirror
   the base .section/.row layout so injected rows line up with native rows.
   ------------------------------------------------------------------ */
.pl-home-extras { display: block; margin-top: 36px; }
.row-section { position: relative; margin-top: 42px; }
.row-section:first-child, .pl-home-extras > .row-section:first-child { margin-top: 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.row-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.row-head h2 .ic { width: 17px; height: 17px; color: var(--accent); }
.row-head .btn { flex: none; }
.row-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 2px 10px;
  margin: -2px;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
.pl-section { animation: plFade .3s ease both; }
.pl-ai-loading .row-scroll { min-height: 244px; }
.pl-net-section .row-scroll { padding-bottom: 8px; }
.pl-net-row { gap: 12px; }
.pl-net-tile {
  position: relative;
  flex: 0 0 174px;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 15px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--net-c) 34%, transparent);
  background:
    radial-gradient(130% 130% at 100% 0%, color-mix(in srgb, var(--net-c) 20%, transparent), transparent 64%),
    var(--panel-2);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pl-net-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--net-c) 62%, transparent); box-shadow: 0 16px 34px rgba(0, 0, 0, .38), 0 0 0 1px color-mix(in srgb, var(--net-c) 25%, transparent); }
.pl-net-tile:active { transform: scale(.98); }
.pl-net-logo {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--net-c);
  background: color-mix(in srgb, var(--net-c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--net-c) 32%, transparent);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.pl-net-name { position: static; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--text); }
.pl-top10 { gap: 6px; padding: 4px 4px 18px; }
.pl-top10 .card.pl-t10 { display: block; width: 158px; flex-basis: 158px; padding-left: 62px; align-items: initial; }
.pl-top10 .card.pl-t10 .card-poster { width: 158px; }

@media (max-width: 720px) {
  .pl-home-extras { margin-top: 28px; }
  .row-section { margin-top: 34px; }
  .row-head { margin-bottom: 12px; }
  .row-head h2 { font-size: 17px; }
  .row-scroll { gap: 12px; }
  .pl-net-tile { flex-basis: 152px; height: 76px; padding: 0 12px; }
  .pl-net-logo { width: 32px; height: 32px; font-size: 15px; }
  .pl-net-name { font-size: 11.5px; }
}

.pl-provider-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pl-provider-links .btn { justify-content: flex-start; }

/* ------------------------------------------------------------------
   large anime libraries (WitAnime + Anime Vault)
   ------------------------------------------------------------------ */
.pl-lib-toolbar { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; }
.pl-lib-toolbar .mini-input { max-width: 420px; height: 40px; font-size: 12px; }
.pl-lib-count { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.pl-lib-more { display: flex; justify-content: center; padding: 26px 0 8px; }
.pl-anime-library .card-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.pl-anime-library .card-poster { aspect-ratio: 2 / 3; }
.pl-anime-library .card-poster img { object-fit: cover; }
.pl-anime-library .page-header { max-width: 780px; }
.pl-anime-library .page-header .sub { max-width: 680px; line-height: 1.65; }
@media (max-width: 720px) {
  .pl-lib-toolbar { flex-wrap: wrap; }
  .pl-lib-toolbar .mini-input { max-width: none; width: 100%; }
  .pl-lib-count { margin-left: 0; }
  .pl-anime-library .card-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}
