/* SPDX-License-Identifier: GPL-2.0-or-later
 * horo theme watch lists and gallery, 2026. Layout lineage: Sakurairo 3.0.4
 * page-bangumi / page-followVideos; see SOURCE_MODIFICATIONS.md.
 */
.site-main:has(.watchlist-page) { max-width: 1280px; }
.watchlist-header { margin: 8px 0 36px; text-align: center; }
.watchlist-header h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.4; font-weight: 900; letter-spacing: .03em; }
.watchlist-page > .article-prose { max-width: 760px; margin: 0 auto 24px; }
.watchlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.watch-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; color: #fff; background: var(--h-night); box-shadow: var(--h-lift); isolation: isolate; }
.watch-card:hover { color: #fff; }
.watch-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.watch-cover-fallback { padding: 20px; font: 14px/1.6 var(--h-sans); color: rgb(255 255 255 / .7); }
.watch-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--h-dim)); transition: transform .7s var(--h-ease); }
.watch-cover img[data-failed] { display: none; }
.watch-card:hover .watch-cover img { transform: scale(1.06); }
.watch-info { position: absolute; inset: auto 0 0; padding: 42px 14px 14px; background: linear-gradient(180deg, transparent, rgb(20 24 41 / .72) 38%, rgb(20 24 41 / .92)); }
.watch-title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-detail { font: 12.5px/1.6 var(--h-sans); }
.watch-progress { margin: 4px 0 0; color: rgb(255 255 255 / .82); }
.watch-status { position: relative; margin-top: 8px; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / .16); }
.watch-status > span:last-child { position: relative; display: block; padding: 2px 10px; font-size: 11.5px; }
.watch-status-bar { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--h-apple), #f07a52); }
.watchlist-pagination { flex-wrap: wrap; }
.watchlist-record { margin: 20px 0; text-align: center; font: 13px/1.7 var(--h-sans); color: var(--h-ink-3); overflow-wrap: anywhere; }
.gallery-page .article-header { margin-bottom: 26px; }
.gallery-page .article-prose { columns: 3 260px; column-gap: 14px; }
.gallery-page .article-prose > * { break-inside: avoid; }
.gallery-page .article-prose img { display: block; width: 100%; height: auto; margin: 0 0 14px; border-radius: 14px; box-shadow: var(--h-lift); }
.gallery-page .article-prose > :is(p, figure) { margin: 0; }
@media (min-width: 600px) { .watchlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .watchlist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1180px) { .watchlist-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
