/* ============================================================================
   LORD HENTAİ / AKUMABOX — Master Shelf, Grid & Inset Lighting System v10.0
   Unified Inner Glow Lighting, Hairline Frosted Borders, Velvet Background Fusion
   ============================================================================ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. SHELF GRIDS & LAYOUT ARCHITECTURE
   ═══════════════════════════════════════════════════════════════════════════ */
.shelf-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .shelf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (min-width: 1200px) {
    .shelf-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. HORIZONTAL SCROLL SHELF CAROUSELS
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-row-wrap {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 18px;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-arrow-btn {
    position: absolute;
    top: calc(50% - 24px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 9, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 77, 141, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 12px rgba(255, 42, 122, 0.05), 0 6px 20px rgba(0, 0, 0, 0.7);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-arrow-btn.prev {
    right: -16px;
}

.scroll-arrow-btn.next {
    left: -16px;
}

.scroll-arrow-btn:hover {
    background: rgba(22, 12, 34, 0.98);
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 117, 169, 0.65);
    color: #FF75A9;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 16px rgba(255, 42, 122, 0.15), 0 8px 24px rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .scroll-arrow-btn {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. ANIME SHELF CARDS (Subtle Inset Lighting & Velvet Fusion)
   ═══════════════════════════════════════════════════════════════════════════ */
.card-anime {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0B0713 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 77, 141, 0.35) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    text-decoration: none;
    padding: 8px 8px 14px 8px !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 16px rgba(255, 42, 122, 0.06), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    cursor: pointer;
    box-sizing: border-box;
    contain: layout style paint;
}

.card-anime:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    border-top-color: rgba(255, 117, 169, 0.6) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 22px rgba(255, 42, 122, 0.12), 0 14px 34px rgba(0, 0, 0, 0.78) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. MANHWA / MANGA SHELF CARDS (Royal Orchid Inset Lighting)
   ═══════════════════════════════════════════════════════════════════════════ */
.card-manhwa {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0C0816 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(192, 132, 252, 0.35) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    text-decoration: none;
    padding: 8px 8px 14px 8px !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 16px rgba(157, 78, 221, 0.06), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    cursor: pointer;
    box-sizing: border-box;
    contain: layout style paint;
}

.card-manhwa:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    border-top-color: rgba(192, 132, 252, 0.65) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 22px rgba(157, 78, 221, 0.12), 0 14px 34px rgba(0, 0, 0, 0.78) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. GENERIC & SUBPAGE CARDS (.card fallback)
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
    position: relative;
    background: #0B0713;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 77, 141, 0.3);
    border-radius: 22px;
    overflow: hidden;
    padding: 8px 8px 14px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 14px rgba(255, 42, 122, 0.05), 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 117, 169, 0.55);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(255, 42, 122, 0.10), 0 14px 32px rgba(0, 0, 0, 0.75);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. SARRAST UPDATE SHELF CARDS (Recently Updated Section)
   ═══════════════════════════════════════════════════════════════════════════ */
.sarrast-update-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0B0713;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 77, 141, 0.28);
    border-radius: 22px;
    overflow: hidden;
    padding: 8px;
    text-decoration: none;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 14px rgba(255, 42, 122, 0.04), 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.sarrast-update-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 77, 141, 0.45);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 18px rgba(255, 42, 122, 0.08), 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. RELATED SHELF CARDS (Title Details Page)
   ═══════════════════════════════════════════════════════════════════════════ */
.related-shelf-card {
    background: linear-gradient(145deg, #130D1D 0%, #090510 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 77, 141, 0.3);
    border-radius: 26px;
    padding: 22px 24px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(255, 42, 122, 0.05), 0 12px 36px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. CARD INTERNAL CHIPS & ACCENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #140D1E;
    border-radius: 18px;
    margin: 0 !important;
    transform: none !important;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.card-anime:hover .card-poster img,
.card-manhwa:hover .card-poster img,
.card:hover .card-poster img {
    transform: scale(1.06);
}

.chip-ep {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #FF2A7A 0%, #FF6584 100%);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chip-ch {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #9D4EDD 0%, #C084FC 100%);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.action-anime,
.action-manhwa {
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
