.anime-page {
    --an-gold: var(--meng-gold, #d4af37);
    background: var(--meng-bg, #0d0d0d);
    color: var(--meng-ivory, #f8f3e8);
    min-height: 70vh;
    padding-bottom: 64px;
}
.anime-page > .vi-container { padding-top: 32px; min-width: 0; }
#anime .an-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
#anime h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.3; margin: 0; }
#anime form { display: flex; gap: 8px; width: min(100%, 380px); min-width: 0; }
#anime input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #5b5240; border-radius: var(--meng-radius-sm, 8px); background: var(--meng-surface, #18181b); color: inherit; font: inherit; caret-color: var(--an-gold); }
#anime input::placeholder { color: #bcb5a8; opacity: 1; }
#anime button { min-height: 44px; padding: 10px 16px; border: 1px solid #5b5240; border-radius: var(--meng-radius-sm, 8px); background: var(--meng-surface, #18181b); color: inherit; cursor: pointer; font: inherit; flex-shrink: 0; }
#anime form button, #anime [data-an-more] { background: var(--an-gold); color: #15120a; border-color: var(--an-gold); font-weight: 600; }
#anime .an-genres { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--meng-border, #333); }
#anime .an-genres button { border-radius: var(--meng-radius-pill, 999px); font-size: 14px; }
#anime .an-genres [aria-pressed="true"] { background: var(--meng-gold-soft, #332b17); border-color: var(--an-gold); color: var(--an-gold); }
#anime button:hover, #anime .an-card:hover { border-color: var(--an-gold); }
#anime button:disabled { opacity: .6; cursor: wait; }
#anime :focus-visible { outline: 3px solid var(--meng-focus, #f5cf59); outline-offset: 3px; }
#anime [hidden] { display: none !important; }
#anime [data-an-status] { color: #c9c1b2; margin: 20px 0; min-height: 24px; }
#anime .an-errors { color: #ffbcab; margin-bottom: 16px; }
#anime .an-errors p:empty { display: none; }
#anime .an-errors p { margin: 0 0 10px; overflow-wrap: anywhere; }
#anime .an-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
#anime .an-card { display: block; min-width: 0; color: inherit; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 8px; }
#anime .an-poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--meng-radius-md, 12px); overflow: hidden; background: var(--meng-surface, #18181b); display: grid; place-items: center; }
#anime .an-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#anime .an-fallback { color: #c9c1b2; font-size: 14px; padding: 12px; text-align: center; }
#anime .an-remarks { position: absolute; bottom: 8px; right: 8px; left: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 3px 7px; background: rgb(0 0 0 / 85%); color: #f8f3e8; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }
#anime .an-card h2 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#anime .an-card:hover h2 { color: var(--an-gold); }
#anime .an-type { margin: 0; color: #c9c1b2; font-size: 13px; }
#anime .an-pagination { text-align: center; margin-top: 32px; }
#anime .an-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) { #anime .an-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .anime-page > .vi-container { padding-top: 24px; }
    #anime .an-heading { align-items: stretch; flex-direction: column; gap: 16px; }
    #anime form { width: 100%; }
    #anime .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    #anime .an-genres { gap: 6px; }
    #anime .an-genres button { padding: 9px 12px; }
}

#anime .an-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; }
#anime .an-tools label { color:#c9c1b2; font-size:14px; }
#anime select { min-height:44px; max-width:100%; padding:8px; color:inherit; background:#18181b; border:1px solid #5b5240; border-radius:8px; font:inherit; }
#anime .an-tools [aria-pressed="true"] { border-color:var(--an-gold); color:var(--an-gold); }
#anime .an-type, #anime .an-time { overflow-wrap:anywhere; }
#anime .an-time { display:block; margin-top:4px; font-size:12px; color:#aaa294; }
#anime .an-hint { color:#aaa294; font-size:13px; margin:8px 0; }
