
.ax-drama-history[hidden]{display:none!important}
/* Share Donghua rail width, card padding, poster size, typography and buttons. */
.ax-drama-history .ax-drama-history-card{position:relative;display:block;min-width:0}
.ax-drama-history-card>a{display:grid;grid-template-columns:inherit;gap:inherit;align-items:inherit;min-width:0;color:inherit;text-decoration:none}
.ax-drama-history .ax-cw__thumb{display:grid;place-items:center;color:var(--ax-accent-text,var(--ax-primary))}
.ax-drama-history .ax-cw__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.ax-drama-history-card .ax-cw__meta{gap:3px}
.ax-drama-history-card .ax-cw__meta strong{padding-right:18px}
.ax-drama-history-card .ax-cw__row{line-height:1.25}
.ax-drama-history-card .ax-cw__meta .ax-btn{margin-top:0}
.ax-drama-history .ax-drama-history-card>button{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:0;margin:0;border:0;background:transparent;font-size:18px;line-height:1;color:var(--ax-text-muted-strong,#a6b19d);border-radius:50%}
.ax-drama-history .ax-drama-history-card>button:hover{background:var(--ax-bg-secondary,#172017)}
.ax-drama-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--ax-space-3)}
.ax-drama-history-grid .ax-cw{width:auto;min-width:0}

/* Library cards: consistent bottom actions, with comfortable mobile targets. */
.ax-bookmarks .ax-grid{align-items:stretch}
.ax-bookmarks .ax-bm-item{display:flex;flex-direction:column;min-width:0;height:100%;gap:10px}
.ax-bookmarks .ax-poster-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;line-height:1.4}
.ax-bookmarks .ax-bm-item>.ax-bm-remove{margin-top:auto;align-self:stretch}
.ax-bookmarks .ax-bm-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:auto}
.ax-bookmarks .ax-bm-remove{min-height:42px;justify-content:center;text-align:center;margin:0;max-width:100%}
.ax-bookmarks .ax-bm-row .ax-btn{width:100%;white-space:normal}
.ax-bm-bar{margin:0 0 20px;min-height:44px}
.ax-bm-bar[hidden]{display:none!important}
.ax-bookmarks>.ax-hint,.ax-drama-history>.ax-hint{margin-top:20px}
.ax-section.ax-bookmarks,.ax-section.ax-drama-history{margin-block:36px}
.ax-drama-history .ax-drama-history-card{display:flex;flex-direction:column;gap:10px}
.ax-drama-history-card>a{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;flex:1}
.ax-drama-history-card .ax-cw__meta strong{padding-right:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ax-drama-history .ax-drama-history-card>.ax-drama-history-remove{position:static;width:auto;min-height:40px;padding:8px 16px;margin:0;border:1px solid var(--ax-border,#42562f);border-radius:999px;font-size:var(--ax-fs-sm);line-height:1.4;align-self:stretch;background:transparent;color:inherit}
.ax-drama-history .ax-drama-history-card>.ax-drama-history-remove:hover{border-color:var(--ax-primary);background:var(--ax-bg-secondary,#172017)}
.ax-drama-history-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;align-items:stretch}
.ax-drama-history-card .ax-cw__thumb{width:72px;height:108px}
.ax-drama-history .ax-sec-head{gap:12px;flex-wrap:wrap}
.ax-watch__main{scroll-margin-top:120px}
@media(max-width:600px){.ax-bm-bar>.ax-btn{min-height:44px;padding:8px 16px;font-size:14px}.ax-section.ax-bookmarks,.ax-section.ax-drama-history{margin-block:28px}}
