:root{--bg: #fbf5ea;--surface: #fffcf7;--segment-active: #fffcf7;--text: #1c1712;--muted: #6d6152;--border: #e9dcc7;--accent: #c4420c;--accent-text: #ffffff;--accent-soft: #fbdcc8;--danger: #a8321f;--star: #c77d00;--shadow: 0 1px 2px rgb(60 40 20 / .06), 0 4px 14px rgb(60 40 20 / .06);--radius: 14px;--tabbar-height: 62px;color-scheme:light}:root[data-theme=dark]{--bg: #17130f;--surface: #221c16;--segment-active: #4a3d31;--text: #f6ecdd;--muted: #a8998a;--border: #3a3027;--accent: #ff7d3c;--accent-text: #1f0d02;--accent-soft: #3d2416;--danger: #ff9a85;--star: #ffc04d;--shadow: none;color-scheme:dark}@media (prefers-color-scheme: dark){:root:not([data-theme]){--bg: #17130f;--surface: #221c16;--segment-active: #4a3d31;--text: #f6ecdd;--muted: #a8998a;--border: #3a3027;--accent: #ff7d3c;--accent-text: #1f0d02;--accent-soft: #3d2416;--danger: #ff9a85;--star: #ffc04d;--shadow: none;color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}h1,h2,p{margin:0}button,input{font:inherit;color:inherit}a{color:var(--accent)}.app{max-width:640px;margin:0 auto;min-height:100dvh}.app--signed-in{padding-bottom:calc(var(--tabbar-height) + env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 16px 6px}.topbar__title{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}.account-button{display:grid;place-items:center;width:44px;height:44px;margin-right:-5px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;align-items:flex-end;justify-content:center}.sheet__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000073}.sheet__panel{position:relative;display:grid;gap:12px;width:100%;max-width:640px;padding:10px 16px calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--border);border-radius:20px 20px 0 0;background:var(--bg)}.sheet__handle{justify-self:center;width:40px;height:4px;border-radius:999px;background:var(--border)}.sheet__user{display:flex;align-items:center;gap:12px;padding:4px 2px;overflow-wrap:anywhere}.sheet__user small{display:block;color:var(--muted);font-size:.85rem}.avatar{flex:none;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:700;line-height:1;text-transform:uppercase}.avatar img{width:100%;height:100%;object-fit:cover}.sheet__group{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.sheet__item{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:0 16px;border:0;background:none;color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}.sheet__item+.sheet__item{border-top:1px solid var(--border)}.sheet__item svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}.sheet__item.router-link-exact-active{color:var(--accent);font-weight:600}.sheet__item.router-link-exact-active svg,.sheet__item--danger svg{color:inherit}.sheet__item--danger{color:var(--danger)}.sheet-enter-active,.sheet-leave-active{transition:opacity .2s}.sheet-enter-active .sheet__panel,.sheet-leave-active .sheet__panel{transition:translate .22s ease-out}.sheet-enter-from,.sheet-leave-to{opacity:0}.sheet-enter-from .sheet__panel,.sheet-leave-to .sheet__panel{translate:0 100%}.content{padding:12px 16px 24px}.tabbar{position:fixed;inset:auto 0 0;display:flex;justify-content:center;height:calc(var(--tabbar-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--border)}.tabbar__item{display:flex;flex:1;max-width:200px;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.75rem;text-decoration:none}.tabbar__item svg{box-sizing:content-box;width:24px;height:24px;padding:2px 16px;border-radius:999px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tabbar__item.router-link-exact-active{color:var(--accent);font-weight:600}.tabbar__item.router-link-exact-active svg{background:var(--accent-soft)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-text);font-weight:600;text-decoration:none;cursor:pointer}.button:disabled{opacity:.6}.button--secondary{background:var(--accent-soft);color:var(--text)}.button--ghost{border:1px solid var(--border);background:transparent;color:var(--text)}.button--small{min-height:38px;padding:0 14px;font-size:.9rem}label{font-size:.9rem;font-weight:600}input[type=text],input[type=password],input[type=search]{width:100%;min-height:46px;padding:0 18px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-size:1rem}input[type=date]{min-height:42px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-size:1rem}textarea{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);font:inherit;color:inherit;resize:vertical}select{min-height:40px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:inherit;font-size:.9rem}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.segments{display:flex;gap:4px;padding:4px;border-radius:var(--radius);background:var(--border)}.segments__item{flex:1;min-height:36px;border:0;border-radius:calc(var(--radius) - 4px);background:none;color:var(--muted);cursor:pointer}.segments__item--active{background:var(--segment-active);color:var(--text);font-weight:600;box-shadow:0 1px 3px #0000001f}.hint{color:var(--muted)}.error{color:var(--danger)}.badge{padding:1px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:.75rem;font-weight:600}.login{display:flex;flex-direction:column;gap:8px;max-width:360px;margin:18vh auto 0}.login h1{margin-bottom:16px;font-size:2.2rem;text-align:center}.login .button{margin-top:12px}.account{display:grid;gap:8px;max-width:340px}.account h1{margin-bottom:8px;font-size:1.3rem}.account .button{margin-top:12px}.account__form{display:grid;gap:8px;margin-top:16px}.profile-picture{display:flex;align-items:center;gap:16px}.profile-picture__actions{display:grid;gap:8px}.profile-picture .button{margin-top:0}.account__note{color:var(--muted);font-size:.88rem}.account__success{padding:8px 0;color:var(--accent);font-weight:600}.switch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;color:var(--text);font-size:1rem;font-weight:400;cursor:pointer}.switch small{display:block;color:var(--muted);font-size:.85rem}.switch input{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:none;position:relative;width:52px;height:32px;margin:0;border-radius:999px;background:color-mix(in srgb,var(--muted) 60%,var(--bg));cursor:pointer;transition:background .2s}.switch input:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000004d;transition:translate .2s}.switch input:checked{background:var(--accent)}.switch input:checked:after{translate:20px 0}.setting{display:grid;gap:8px;padding:12px 0}.setting small{display:block;color:var(--muted);font-size:.85rem}.home{display:grid;gap:16px}.home__header{display:grid;gap:2px}.home h1{font-size:1.6rem;letter-spacing:-.01em}.lists{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}.lists__item{display:grid;gap:1px;justify-items:center;padding:9px 2px 8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--muted);font:inherit;cursor:pointer}.lists__count{color:var(--text);font-size:1.2rem;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums}.lists__label{max-width:100%;overflow:hidden;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}.lists__item[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}.lists__item[aria-pressed=true] .lists__label{font-weight:600}.home__section{display:grid;gap:10px}.home__section-heading{font-size:1rem}.home__section-heading span{color:var(--muted);font-weight:600}.empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.search{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.results{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;transition:opacity .15s}.results--stale{opacity:.55}.title-card{display:flex;gap:14px;color:inherit;text-decoration:none;padding:10px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.title-card__poster{flex:none;width:72px;height:108px;border-radius:10px;object-fit:cover;background:var(--border)}.title-card__poster--empty{display:grid;place-items:center;color:var(--muted);font-size:1.6rem;font-weight:700}.title-card__body{display:flex;min-width:0;flex-direction:column;gap:3px}.title-card__title{font-size:1.05rem;font-weight:700;line-height:1.25}.title-card__original{color:var(--muted);font-size:.85rem;font-style:italic}.title-card__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:.85rem}.title-card__overview{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.85rem}.title-card__on-list{color:var(--accent);font-size:.85rem;font-weight:600}.title-card__note{color:var(--muted);font-size:.8rem}.title-card__rating{font-size:.9rem;font-weight:700}.title-card__rating span{color:var(--star)}.title-card__rating small{color:var(--muted);font-size:.8rem;font-weight:400}.home__sort{display:flex;align-items:center;justify-content:flex-end;gap:8px}.home__sort label{color:var(--muted);font-weight:400}.title-card__progress{color:var(--accent);font-size:.85rem;font-weight:600}.suggestions{display:grid;gap:14px}.suggestions h1{font-size:1.6rem;letter-spacing:-.01em}.suggestion{display:grid;gap:8px}.suggestion+.suggestion{padding-top:6px}.suggestion__reason{padding:0 4px}.suggestion__caveat{padding:0 4px;color:var(--muted);font-size:.9rem;font-style:italic}.suggestion__actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 4px}.title{display:grid;gap:18px}.title__back{gap:2px;justify-self:start;padding-left:6px}.title__back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.title__hero{display:grid}.title__backdrop{width:100%;aspect-ratio:16 / 9;border-radius:16px;object-fit:cover;background:var(--border)}.title__heading{display:flex;align-items:flex-end;gap:14px}.title__backdrop+.title__heading{margin-top:-48px;padding-left:12px}.title__poster{flex:none;width:104px;height:156px;border:3px solid var(--bg);border-radius:12px;object-fit:cover;background:var(--border);box-shadow:var(--shadow)}.title__names{display:grid;min-width:0;gap:3px;padding-bottom:2px}.title__names h1{font-size:1.45rem;line-height:1.15;letter-spacing:-.01em;text-wrap:balance}.title__facts{color:var(--muted);font-size:.88rem}.title__rating{font-weight:700}.title__rating span{color:var(--star)}.title__rating small{margin-left:4px;color:var(--muted);font-size:.8rem;font-weight:400}.list-box{display:grid;justify-items:start;gap:12px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.list-box h2{font-size:1rem}.list-box__date{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.list-box__note{color:var(--muted);font-size:.85rem}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:38px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--bg);color:var(--text);font-size:.9rem;cursor:pointer}.chip--active{border-color:var(--accent);background:var(--accent);color:var(--accent-text);font-weight:600}.chip:disabled{cursor:default}.list-box__progress{font-weight:600}.notice{display:grid;justify-items:start;gap:8px;width:100%;padding:10px 12px;border-radius:12px;background:var(--accent-soft)}.seasons{display:grid;gap:8px}.seasons h2{font-size:1.1rem}.season{border:1px solid var(--border);border-radius:14px;background:var(--surface)}.season summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 14px;cursor:pointer;list-style:none}.season summary::-webkit-details-marker{display:none}.season summary:after{content:"";flex:none;width:8px;height:8px;margin-left:-4px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);rotate:45deg;translate:0 -2px;transition:rotate .15s}.season[open] summary:after{rotate:225deg;translate:0 2px}.season__name{flex:1;font-weight:600}.season__count{color:var(--muted);font-size:.85rem}.season__count--done{color:var(--accent);font-weight:600}.season__body{display:grid;gap:10px;padding:0 14px 12px}.season__actions{display:flex;flex-wrap:wrap;gap:8px}.episodes{display:grid;margin:0;padding:0;list-style:none}.episode{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 0}.episode+.episode{border-top:1px solid var(--border)}.episode__tick{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:2px solid var(--border);border-radius:50%;background:none;cursor:pointer}.episode__tick svg{width:18px;height:18px;fill:none;stroke:transparent;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.episode--seen .episode__tick{border-color:var(--accent);background:var(--accent)}.episode--seen .episode__tick svg{stroke:var(--accent-text)}.episode__tick--future{border-style:dashed;cursor:default}.episode__text{display:grid;flex:1;min-width:0}.episode__title{overflow-wrap:anywhere}.episode--seen .episode__title{color:var(--muted)}.episode__text small{color:var(--muted);font-size:.8rem}.episode__up-to{flex:none;min-height:32px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:none;color:var(--muted);font-size:.8rem;cursor:pointer}.ratings{display:grid;gap:12px}.ratings h2{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:1.1rem}.ratings__average{color:var(--star);font-size:.95rem;font-weight:700;white-space:nowrap}.rating-group{display:grid;justify-items:start;gap:8px}.rating-group+.rating-group{padding-top:12px;border-top:1px solid var(--border)}.rating-group__heading{display:flex;justify-content:space-between;gap:12px;width:100%;margin:0;font-size:1rem}.rating{display:grid;gap:4px;width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.rating__header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.rating__overall{font-size:1.15rem;font-weight:800}.rating__overall span{color:var(--star)}.rating__overall small{color:var(--muted);font-size:.8rem;font-weight:500}.rating__categories{color:var(--muted);font-size:.85rem}.rating__review{white-space:pre-line}.rating-form{display:grid;gap:10px;width:100%;padding:14px;border:1px solid var(--accent);border-radius:14px;background:var(--surface)}.rating-form__row{display:grid;gap:2px}.rating-form__label{font-size:.9rem;font-weight:600}.rating-form__actions{display:flex;flex-wrap:wrap;gap:8px}.rating-form__remove{margin-left:auto;color:var(--danger)}.stars{display:flex;align-items:center}.stars__star{display:grid;place-items:center;width:28px;height:34px;padding:0;border:0;background:none;cursor:pointer}.stars__star svg{width:24px;height:24px;fill:transparent;stroke:var(--muted);stroke-width:1.5;stroke-linejoin:round}.stars__star--on svg{fill:var(--star);stroke:var(--star)}.stars__value{min-width:2ch;margin-left:8px;font-weight:700;font-variant-numeric:tabular-nums}.title__genres{display:flex;flex-wrap:wrap;gap:6px}.title__overview{max-width:65ch}.title__people{display:grid;gap:4px;margin:0}.title__people dt{color:var(--muted);font-size:.8rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.title__people dd{margin:0 0 10px}.cast{display:grid;gap:2px;margin:0;padding:0;list-style:none}.cast small{color:var(--muted);font-size:.85rem}.title .button{justify-self:start}.title .attribution{margin-top:0}.attribution{margin-top:24px;color:var(--muted);font-size:.75rem}
