/* Archive-only styles; the single-work layout shares its existing typography and site navigation. */
.agfc { --agfc-surface: #111b2b; --agfc-edge: #2a3a50; background: #0a101b; color-scheme: dark; }
.agfc .agfc-inner { max-width: 1300px; margin-inline: auto; padding: clamp(24px,4vw,56px) clamp(16px,3.5vw,48px) 60px; }
.agfc .agfc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--agfc-edge); }
.agfc .agfc-head h1 { font-size: clamp(32px,4vw,55px); line-height: 1.08; }
.agfc .agfc-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--agfc-edge); border-radius: 9px; background: #0e1725; }
.agfc .agfc-switch a { display: inline-flex; min-height: 40px; align-items: center; padding: 5px 17px; border-radius: 6px; color: #c1cede; font-weight: 650; font-size: 14px; text-decoration: none; }
.agfc .agfc-switch a[aria-current] { background: #21374c; color: #bdeaff; }
.agfc .agfc-feature,.agfc .agfc-results { margin-top: clamp(25px,3vw,40px); }
.agfc .agfc-feature h2,.agfc .agfc-results h2 { font-size: clamp(21px,2.2vw,29px); margin-bottom: 16px; }
.agfc .agfc-grid,.agfc .agfc-shelf { display: grid; list-style: none; margin: 0; padding: 0; gap: clamp(12px,1.7vw,22px); }
.agfc .agfc-grid { grid-template-columns: repeat(auto-fill,minmax(min(155px,100%),1fr)); }
.agfc .agfc-shelf { grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 12px; }
.agfc .agfc-grid li,.agfc .agfc-shelf li { margin: 0; min-width: 0; padding: 0; }
.agfc .agfc-card { height: 100%; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-radius: 9px; text-decoration: none; color: var(--agf-ink); }
.agfc .agfc-cover { display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 2/3; border-radius: 9px; background: linear-gradient(145deg,#21384b 0%,#162638 43%,#24203c 100%); box-shadow: inset 0 0 0 1px #334156; }
.agfc .agfc-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; display: block; }
.agfc .agfc-initials { color: #a8c8de; font-size: clamp(20px,3.3vw,48px); font-weight: 750; letter-spacing: -.06em; }
.agfc .agfc-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.agfc .agfc-copy strong { color: #f1f5fb; font-size: clamp(14px,1.2vw,17px); line-height: 1.32; }
.agfc .agfc-details { color: #b2bfd1; font-size: 12px; line-height: 1.5; }
.agfc .agfc-card:hover strong,.agfc .agfc-card:focus-visible strong { color: #91deff; }
.agfc .agfc-shelf .agfc-card { flex-direction: row; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--agfc-edge); background: var(--agfc-surface); }
.agfc .agfc-shelf .agfc-cover { flex: 0 0 63px; border-radius: 5px; }
.agfc .agfc-shelf .agfc-copy { padding: 5px 5px 5px 0; }
.agfc .agfc-shelf .agfc-initials { font-size: 23px; }
.agfc .agfc-reason { color: #93defe; font-weight: 650; font-size: 11px; }
.agfc .agfc-form { display: grid; grid-template-columns: minmax(165px,2fr) minmax(125px,1fr) minmax(75px,.6fr) minmax(140px,1fr) auto; align-items: end; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--agfc-edge); border-radius: 10px; background: var(--agfc-surface); }
.agfc .agfc-form label { margin: 0; display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 650; color: #d1dcea; }
.agfc .agfc-form input,.agfc .agfc-form select,.agfc .agfc-form button { box-sizing: border-box; width: 100%; min-height: 44px; min-width: 0; margin: 0; padding: 8px 10px; font: inherit; font-size: 14px; border: 1px solid #445570; border-radius: 5px; background: #0b1421; color: #f4f6fb; }
.agfc .agfc-form input::placeholder { color: #a4b4c8; }
.agfc .agfc-form button { background: #9addff; border-color: #9addff; padding-inline: 19px; color: #0a2030; font-weight: 750; cursor: pointer; }
.agfc .agfc-form button:hover { background: #c1edff; }
.agfc .agfc-count { display: flex; align-items: center; gap: 16px; padding: 15px 0; min-height: 48px; font-size: 13px; color: var(--agf-muted); }
.agfc .agfc-count a { color: #9addff; text-decoration: underline; text-underline-offset: 3px; }
.agfc .agfc-empty { padding: 25px 15px; border: 1px dashed var(--agfc-edge); border-radius: 8px; text-align: center; }
.agfc .agfc-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 30px; }
.agfc .agfc-pages a,.agfc .agfc-current { min-height: 44px; min-width: 42px; padding: 7px 11px; display: inline-grid; place-items: center; border-radius: 5px; color: #cee6f7; text-decoration: none; background: #172537; font-size: 14px; }
.agfc .agfc-current { background: #a0ddf8; color: #101c2a; }
.agfc :is(a,button,input,select):focus-visible { outline: 3px solid #a2e0ff; outline-offset: 3px; }
@media(max-width:1000px) {
    .agfc .agfc-form { grid-template-columns: minmax(160px,2fr) minmax(110px,1fr) minmax(80px,.7fr); }
}
@media(max-width:640px) {
    .agfc .agfc-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; }
    .agfc .agfc-form label:first-child { grid-column: 1/-1; }
    .agfc .agfc-form input,.agfc .agfc-form select { font-size: 16px; }
    .agfc .agfc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; }
    .agfc .agfc-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .agfc .agfc-shelf .agfc-card { gap: 8px; padding: 5px; }
    .agfc .agfc-shelf .agfc-cover { flex-basis: 42px; }
    .agfc .agfc-shelf .agfc-copy strong { font-size: 13px; }
    .agfc .agfc-shelf .agfc-details { display: none; }
}
@media(max-width:380px) { .agfc .agfc-shelf { grid-template-columns: 1fr; } }

.agfc .agfc-cover img { z-index: 1; }
.agfc .agfc-form input[type="number"] { border-radius:5px; background:#0b1421; color:#f4f6fb; }

.agfc[data-agf-catalog=animes] .agfc-form{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));}
.agfc .agfc-intro{color:#bfcfe1;line-height:1.7;margin:20px 0;}
.agfc .agfc-intro a{color:#9addff;text-underline-offset:3px;}
@media(max-width:640px){.agfc[data-agf-catalog=animes] .agfc-form{grid-template-columns:repeat(2,minmax(0,1fr));}.agfc .agfc-switch a{padding-inline:12px;}}
