/* Compact controls with a truly centered date-navigation group. */
.topbar{position:relative;display:flex;justify-content:center;align-items:center;min-height:54px}
.date-navigation{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
.date-title{min-width:154px;padding:2px 10px;border:0;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.date-title:hover,.date-title:focus-visible{background:var(--surface-raised)}
.date-title p{margin:0 0 4px;color:var(--pink);font-size:.7rem;font-weight:800;letter-spacing:.13em}.date-title h1{margin:0;font-size:1.38rem;letter-spacing:-.03em;white-space:nowrap}
.date-navigation .icon-button{flex:0 0 40px}
.preferences-button{position:absolute;right:0;top:7px;height:40px;width:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--text);font-size:1.25rem;line-height:1}
.preferences-button:hover,.preferences-button:focus-visible{background:#272e3d}.preferences-button.has-preferences::after{content:'';position:absolute;top:7px;right:7px;width:7px;height:7px;border:2px solid var(--surface-raised);border-radius:50%;background:var(--mint)}
#preferences-dialog{width:min(100% - 24px,440px);margin:auto 12px 12px auto;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 22px 70px #000b}#preferences-dialog::backdrop{background:#0008}.preferences-sheet{padding:18px}.preferences-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.preferences-header h2{margin:0;font-size:1.1rem}.close-preferences{width:34px;height:34px;border:0;border-radius:10px;background:var(--surface-raised);color:var(--muted);font-size:1.45rem;line-height:1}.preference-section{padding:14px 0;border-top:1px solid var(--line)}.preference-section h3{margin:0 0 10px;color:var(--muted);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}.preference-options{display:flex;flex-wrap:wrap;gap:7px}.preference-option{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);color:var(--muted);font-size:.82rem;font-weight:700}.preference-option[aria-pressed="true"],.preference-option.is-selected{border-color:#6a5576;background:#261d2b;color:var(--pink)}.preference-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--text);font-size:.86rem;text-align:left}.toggle-state{width:34px;height:20px;border-radius:99px;background:#424958;transition:.15s ease}.toggle-state::after{content:'';display:block;width:14px;height:14px;margin:3px;border-radius:50%;background:#d4d7de;transition:.15s ease}.preference-toggle[aria-pressed="true"] .toggle-state{background:#427a70}.preference-toggle[aria-pressed="true"] .toggle-state::after{transform:translateX(14px);background:var(--mint)}
.title-row{display:flex;align-items:flex-start;gap:8px}.title-row .anime-title{flex:1;min-width:0;margin:8px 0}.follow-button{flex:0 0 36px;width:36px;height:36px;margin-top:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--muted);font-size:1.3rem;line-height:1}.follow-button:hover,.follow-button:focus-visible{border-color:#6a5576;color:var(--pink);background:#261d2b}.follow-button[aria-pressed="true"]{border-color:#8b536a;color:var(--pink);background:#301b27}.provider-action{display:grid;min-height:44px;align-items:center;justify-content:center;margin:0;padding:0;border:1px solid #865728;border-radius:12px;background:#2a1d10;color:#ffd196;font-size:.86rem;font-weight:800;text-decoration:none}.provider-action:hover,.provider-action:focus-visible{border-color:#d8903d;background:#3a2814;color:#ffe2b9;text-decoration:none}.provider-action span{font-size:1.05rem}
@media (max-width:380px){.app-shell{padding-left:12px;padding-right:12px}.date-title{min-width:132px;padding-left:6px;padding-right:6px}.date-title h1{font-size:1.18rem}.date-navigation .icon-button{flex-basis:36px;width:36px}.preferences-button{width:38px}}

body.compact-layout .release-list{gap:8px}body.compact-layout .release-card{grid-template-columns:78px 1fr;gap:10px;padding:10px}body.compact-layout .cover{width:78px;height:111px}body.compact-layout .anime-title{font-size:.98rem;margin:4px 0}body.compact-layout .episode-progress,body.compact-layout .studio{margin:4px 0}body.compact-layout .tag-row{margin-top:5px}body.compact-layout .provider-action{margin:3px 0 5px;padding:10px 10px}

/* Compact means a materially shorter scanning layout, not only smaller art. */
body.compact-layout .release-list{gap:6px}
body.compact-layout .release-card{grid-template-columns:64px minmax(0,1fr);gap:8px;min-height:0;padding:8px;align-items:start}
body.compact-layout .cover{width:64px;height:91px}
body.compact-layout .release-copy{justify-content:flex-start;gap:4px;padding:0}
body.compact-layout .release-meta{gap:6px}
body.compact-layout .release-time{font-size:1rem}
body.compact-layout .title-row .anime-title{margin:0;font-size:.94rem;-webkit-line-clamp:1}
body.compact-layout .episode-progress{margin:0}
body.compact-layout .studio,body.compact-layout .tag-row{display:none}
body.compact-layout .provider-action{min-height:44px;margin:0;padding:10px}
body.compact-layout .schedule-divider{margin:12px 2px 5px}

/* One shared title/action row prevents provider availability from changing card anatomy. */
.release-copy{justify-content:flex-start;gap:5px}
.title-row{align-items:flex-start}
.title-row .anime-title{margin:4px 0 2px}
.card-actions{display:flex;flex:0 0 auto;align-items:center;gap:6px;margin-top:2px}
.follow-button{flex:0 0 44px;width:44px;height:44px;margin:0}
.provider-action{display:grid;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;place-items:center;border-radius:12px;font-size:.7rem;letter-spacing:.02em}
.provider-mark{font-weight:900}
body.compact-layout .card-actions{margin-top:0}
body.compact-layout .provider-action{width:44px;height:44px;min-height:44px;margin:0;padding:0}
