/* Deep Drama — My list (v2) */
.ddwl-svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ddwl-svg.is-fill{fill:currentColor}

/* header button — same pill language as the search box */
.ddwl-head{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--border-light,#2a2a2a);border-radius:50%;background:var(--bg-card,#121212);color:var(--text-main,#fff);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s}
.ddwl-head:hover{background:#1c1c1c;border-color:#3a3a3a}
.ddwl-head:focus-visible{outline:2px solid var(--primary,#e50914);outline-offset:2px}
.ddwl-head .ddwl-svg{width:19px;height:19px}
.ddwl-head__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ddwl-badge{position:absolute;top:1px;inset-inline-start:1px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--primary,#e50914);color:#fff;font-size:.66rem;font-weight:700;line-height:17px;text-align:center;box-shadow:0 0 0 2px var(--bg-main,#050505)}
.ddwl-badge[hidden]{display:none}
.ddwl-head.is-bump{animation:ddwl-bump .5s ease}
@keyframes ddwl-bump{0%,100%{transform:scale(1)}40%{transform:scale(1.12)}}
@media(max-width:420px){#site-header .dd-language-links a[aria-current=true]{display:none}}

/* save button under the title */
.ddwl-bar{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 4px}
.ddwl-save{display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 18px 0 14px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:.92rem;font-weight:700;cursor:pointer;transition:background-color .2s,border-color .2s,transform .12s}
[dir=rtl] .ddwl-save,.rtl .ddwl-save{padding:0 14px 0 18px}
.ddwl-save:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3)}
.ddwl-save:active{transform:scale(.97)}
.ddwl-save:focus-visible{outline:2px solid var(--primary,#e50914);outline-offset:2px}
.ddwl-save__icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#000}
.ddwl-save__icon .ddwl-svg{width:15px;height:15px;stroke-width:2.6}
.ddwl-save[aria-pressed=true]{background:rgba(229,9,20,.12);border-color:rgba(229,9,20,.55)}
.ddwl-save[aria-pressed=true] .ddwl-save__icon{background:var(--primary,#e50914);color:#fff}
.ddwl-save.is-docked{height:40px;font-size:.88rem}
.dd-embed-toolbar.ddwl-has{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dd-preview-duration-note.ddwl-resume-note{color:#fff;opacity:.85;white-space:nowrap}
@media(max-width:480px){.dd-preview-duration-note.ddwl-resume-note{display:none}}

/* drawer */
html.ddwl-lock{overflow:hidden}
.ddwl-drawer{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff;overflow:hidden}
.ddwl-drawer::backdrop{background:rgba(0,0,0,0);transition:background-color .23s}
.ddwl-drawer.is-open::backdrop{background:rgba(0,0,0,.72)}
.ddwl-panel{position:absolute;top:0;bottom:0;inset-inline-end:0;display:flex;flex-direction:column;width:min(440px,100%);background:#0d0d0f;border-inline-start:1px solid #222;box-shadow:0 0 60px rgba(0,0,0,.6);transform:translateX(100%);transition:transform .23s cubic-bezier(.2,.8,.2,1)}
[dir=rtl] .ddwl-panel{transform:translateX(-100%)}
.ddwl-drawer.is-open .ddwl-panel{transform:none}
.ddwl-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #1f1f22}
.ddwl-top__title{display:flex;align-items:center;gap:10px;min-width:0}
.ddwl-top__title .ddwl-svg{color:var(--primary,#e50914);width:22px;height:22px}
.ddwl-top h2{margin:0;font-size:1.2rem;font-weight:800;color:#fff}
.ddwl-count{min-width:26px;height:24px;padding:0 8px;border-radius:12px;background:#1f1f22;color:#bbb;font-size:.8rem;font-weight:700;line-height:24px;text-align:center}
.ddwl-count:empty{display:none}
.ddwl-x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#1a1a1d;color:#ddd;cursor:pointer;transition:background-color .2s,color .2s}
.ddwl-x:hover{background:#26262a;color:#fff}

.ddwl-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;align-content:start;margin:0;padding:18px 20px;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#333 transparent}
.ddwl-grid[hidden]{display:none}
.ddwl-card{position:relative;min-width:0;transition:opacity .18s,transform .18s}
.ddwl-card.is-leaving{opacity:0;transform:scale(.92)}
.ddwl-card__link{display:block;color:inherit;text-decoration:none}
.ddwl-card__poster{position:relative;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:linear-gradient(160deg,#2a0d10,#141416 60%);box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.ddwl-card__poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.ddwl-card__poster.is-blank::before{content:attr(data-letter);position:absolute;inset:0;display:grid;place-items:center;font-size:2.4rem;font-weight:800;color:rgba(255,255,255,.18)}
.ddwl-card__poster::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),transparent 45%);opacity:0;transition:opacity .25s}
.ddwl-card__play{position:absolute;z-index:1;top:50%;left:50%;display:grid;place-items:center;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;background:var(--primary,#e50914);color:#fff;opacity:0;transform:scale(.8);transition:opacity .25s,transform .25s}
.ddwl-card__play .ddwl-svg{width:18px;height:18px;stroke-width:0;margin-inline-start:2px}
[dir=rtl] .ddwl-card__play .ddwl-svg{margin:0 2px 0 0}
.ddwl-card__link:hover img,.ddwl-card__link:focus-visible img{transform:scale(1.05)}
.ddwl-card__link:hover .ddwl-card__poster::after,.ddwl-card__link:focus-visible .ddwl-card__poster::after{opacity:1}
.ddwl-card__link:hover .ddwl-card__play,.ddwl-card__link:focus-visible .ddwl-card__play{opacity:1;transform:none}
.ddwl-card__link:focus-visible{outline:none}
.ddwl-card__link:focus-visible .ddwl-card__poster{box-shadow:0 0 0 2px var(--primary,#e50914)}
.ddwl-card__tag{position:absolute;z-index:1;bottom:6px;inset-inline-start:6px;padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.72);color:#ddd;font-size:.68rem;font-weight:600;backdrop-filter:blur(4px)}
.ddwl-card__info{display:flex;flex-direction:column;gap:2px;padding:8px 2px 0}
.ddwl-card__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.82rem;font-weight:700;line-height:1.35;color:#f2f2f2}
.ddwl-card__time{font-size:.72rem;color:#8a8a8f}
.ddwl-card__rm{position:absolute;z-index:2;top:6px;inset-inline-end:6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;backdrop-filter:blur(4px)}
.ddwl-card__rm .ddwl-svg{width:14px;height:14px;stroke-width:2.4}
.ddwl-card:hover .ddwl-card__rm,.ddwl-card__rm:focus-visible{opacity:1}
.ddwl-card__rm:hover{background:var(--primary,#e50914)}
@media(hover:none){.ddwl-card__rm{opacity:1}}

.ddwl-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:40px 32px;text-align:center}
.ddwl-empty[hidden]{display:none}
.ddwl-empty__icon{display:grid;place-items:center;width:72px;height:72px;margin-bottom:6px;border-radius:50%;background:rgba(229,9,20,.1);color:var(--primary,#e50914)}
.ddwl-empty__icon .ddwl-svg{width:32px;height:32px;stroke-width:1.6}
.ddwl-empty strong{font-size:1.05rem;color:#fff}
.ddwl-empty p{max-width:300px;margin:0;color:#9a9aa0;font-size:.88rem;line-height:1.7}
.ddwl-note{margin:0;padding:4px 20px 14px;color:#6f6f75;font-size:.75rem;line-height:1.6;text-align:center}
.ddwl-tools{display:flex;gap:8px;padding:12px 20px 6px;border-top:1px solid #1f1f22}
.ddwl-tool{flex:1;height:38px;padding:0 12px;border:1px solid #2a2a2e;border-radius:10px;background:#16161a;color:#e6e6e6;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;transition:background-color .2s,border-color .2s}
.ddwl-tool:hover{background:#1f1f24;border-color:#3a3a40}
.ddwl-tool.is-primary{flex:none;background:var(--primary,#e50914);border-color:var(--primary,#e50914);color:#fff}
.ddwl-tool:disabled{opacity:.6;cursor:wait}
.ddwl-restore{display:flex;gap:8px;padding:12px 20px 0;border-top:1px solid #1f1f22}
.ddwl-restore[hidden]{display:none}
.ddwl-restore input{flex:1;min-width:0;height:38px;padding:0 12px;border:1px solid #2a2a2e;border-radius:10px;background:#0b0b0d;color:#fff;font:600 .85rem/1 ui-monospace,Consolas,monospace}
.ddwl-restore input:focus{outline:2px solid var(--primary,#e50914);outline-offset:1px}

@media(max-width:600px){
  .ddwl-panel{top:auto;inset-inline:0;width:100%;height:min(86vh,720px);border:0;border-top:1px solid #222;border-radius:18px 18px 0 0;transform:translateY(100%)}
  [dir=rtl] .ddwl-panel{transform:translateY(100%)}
  .ddwl-top{padding:16px 16px 14px;position:relative}
  .ddwl-top::before{content:"";position:absolute;top:7px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#333}
  .ddwl-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;padding:16px}
  .ddwl-card__name{font-size:.78rem}
}
@media(max-width:340px){.ddwl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* toast */
.ddwl-toast{position:fixed;z-index:2147483000;bottom:24px;left:50%;width:max-content;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:10px 10px 10px 14px;border:1px solid #2a2a2e;border-radius:14px;background:rgba(22,22,25,.96);color:#fff;font-size:.9rem;font-weight:600;box-shadow:0 12px 40px rgba(0,0,0,.55);backdrop-filter:blur(8px);transform:translate(-50%,140%);opacity:0;pointer-events:none;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .3s}
.ddwl-toast[dir=rtl]{padding:10px 14px 10px 10px}
.ddwl-toast.is-on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.ddwl-toast__mark{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:var(--primary,#e50914)}
.ddwl-toast__mark .ddwl-svg{width:14px;height:14px;stroke-width:2.8}
.ddwl-toast__msg{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddwl-toast__btn{flex:none;height:32px;padding:0 14px;border:0;border-radius:9px;background:#fff;color:#000;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer}
.ddwl-toast__btn:hover{background:#e6e6e6}

@media(prefers-reduced-motion:reduce){.ddwl-panel,.ddwl-toast,.ddwl-card,.ddwl-card__poster img{transition:none}.ddwl-head.is-bump{animation:none}}
