/* custom bbcode */

.bb-titlebar {
    background: #43a6df;
    padding: 10px;
    font-size: 26px;
    font-weight: bold;
    font-family: Droid Arabic Kufi;
    color: white;
    max-width: 100%;
    position: relative !important;
}

.bb-subheader {
    font-size: 1.6em;
    font-weight: 600;
    border-right: 5px solid #43a6df;
    margin: 10px 20px 10px;
    padding-bottom: 3px;
    text-align: right;
    padding-right: 10px;
}

/* ---------- Dividers ---------- */
.bb-divider {
    border: none;
    border-top: 1px solid #43a6df;
    margin: 15px 0;
}

.bb-divider.normal {
    border: none;
    border-top: 1px solid #43a6df;
    margin: 15px 0;
}

.bb-divider.thick {
    border-top-width: 3px;
}

.bb-divider.dotted {
    border-top-style: dotted;
}

.bb-divider.dotted.thick {
    border-top-width: 3px;
}

/* === SPOILER === */
.bb-spoiler {
    margin: 10px 0;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    max-width: fit-content;
}

/* Title */
.bb-spoiler-title {
    background: #43a6df;
    color: #fff;
    cursor: pointer;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    user-select: none;
    transition: background 0.2s ease;
}

.bb-spoiler-title:hover {
    background: #43a6df;
}

/* Content (hidden by default) */
.bb-spoiler-content {
    display: none;
    background: #f9fafc;
    padding: 12px 15px;
    border-top: 1px solid #d0d0d0;
    font-size: 0.93rem;
    color: #222;
    line-height: 1.6;
}

[dir="rtl"] .bb-spoiler-title {
    text-align: right;
}

[dir="rtl"] .bb-spoiler-content {
    text-align: right;
}

/* Inline spoiler */
.bb-inline-spoiler {
    background: #43a6df;
    color: transparent;
    border-radius: 3px;
    padding: 0 4px;
    cursor: pointer;
    transition: 0.3s;
}

.bb-inline-spoiler:hover {
    color: #fff;
}

/* === NUMBERED DIVIDER === */
.bb-ndivider {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #43a6df, transparent);
    margin: 25px 0;
}

/* The circular number in the middle */
.bb-ndivider-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #43a6df;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
    /* adds separation from the line */
}

/* Optional hover animation */
.bb-ndivider-number:hover {
    background: #1b84c4;
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.2s ease-in-out;
}

/* === STYLISH THREAD SUMMARY BOX === */
.bb-summary-box {
    position: relative;
    margin: 30px auto;
    padding: 25px 30px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(67, 166, 223, 0.3);
    box-shadow: 0 8px 18px rgba(67, 166, 223, 0.15);
    max-width: 750px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bb-summary-box:hover {
    box-shadow: 0 10px 25px rgba(67, 166, 223, 0.25);
    transform: translateY(-2px);
}

/* Header bar */
.bb-summary-header {
    position: relative;
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    margin: -25px -30px 15px;
    background: linear-gradient(90deg, #43a6df, #1b84c4);
    border-bottom: 3px solid #1b84c4;
    text-align: center;
}

/* Summary content styling */
.bb-summary-content {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.bb-summary-content ul,
.bb-summary-content ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Custom bullet shape */
.bb-summary-content li {
    position: relative;
    padding-right: 28px;
    margin: 8px 0;
}

.bb-summary-content li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #43a6df;
    background: #e3f4fc;
    box-shadow: 0 0 3px rgba(67, 166, 223, 0.3);
}

/* Optional hover animation on items */
.bb-summary-content li:hover::before {
    background: #43a6df;
    transition: background 0.3s ease;
}

.bb-summary-content li:hover {
    color: #1b84c4;
}


/* ===============================
   CHARACTER QUOTE BOX (Anime Style)
   =============================== */
.bb-quote-char {
    position: relative;
    font-style: italic;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-right: 5px solid #43a6df;
    /* for RTL */
    border-left: none;
    padding: 16px 18px;
    margin: 25px 0;
    border-radius: 10px;
    color: #222;
    direction: rtl;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    transition: all 0.3s ease;
}

.bb-quote-char:hover {
    background: #f2f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 166, 223, 0.2);
}

/* --- Character name label --- */
.bb-quote-char::before {
    content: attr(data-char);
    position: absolute;
    top: -12px;
    right: 15px;
    /* adjust for RTL */
    background: #43a6df;
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Decorative quote marks --- */
.bb-quote-char::after {
    content: "❝";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 36px;
    color: rgba(67, 166, 223, 0.2);
    transform: scaleX(-1);
    /* flip for RTL aesthetics */
    pointer-events: none;
}

/* --- Text inside --- */
.bb-quote-char p {
    margin: 0;
    font-size: 1.05em;
    font-style: italic;
}

/* --- Optional hover glow --- */
.bb-quote-char[data-char]:hover::before {
    background: #1e8ac5;
    box-shadow: 0 0 10px rgba(67, 166, 223, 0.5);
}

/* --- Fancy Gradient Variant (use .bb-quote-char.fancy) --- */
.bb-quote-char.fancy {
    background: linear-gradient(120deg, #e8f4ff 0%, #ffffff 100%);
    border: 2px solid #43a6df;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(67, 166, 223, 0.15);
    padding: 20px;
    margin: 25px auto;
    max-width: 600px;
}

.bb-quote-char.fancy::before {
    background: linear-gradient(90deg, #43a6df, #1d8cc4);
    text-transform: uppercase;
    font-size: 0.8em;
    top: -14px;
    right: 18px;
}

.bb-quote-char.fancy::after {
    content: "❞";
    bottom: -18px;
    left: 12px;
    font-size: 38px;
    color: rgba(67, 166, 223, 0.15);
    top: auto;
}

/* --- Responsive adjustments --- */
@media (max-width: 600px) {
    .bb-quote-char {
        font-size: 0.95em;
        padding: 12px 14px;
    }

    .bb-quote-char::before {
        top: -10px;
        font-size: 0.75em;
    }
}

/* ============================================
   ⚡ NEWS BLOCKS — Anime / Manga / Industry
   ============================================ */
.bb-news {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 25px auto;
    max-width: fit-content;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    direction: rtl;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

/* --- Header --- */
.bb-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.3px;
}

.bb-news-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}

.bb-news-title {
    flex: 1;
    text-align: right;
}

/* --- Body --- */
.bb-news-body {
    padding: 12px 16px;
    font-size: 0.98em;
    color: #333;
    line-height: 1.7;
}

/* --- Category Colors --- */
.anime-news {
    border-color: #43a6df;
}

.anime-news .bb-news-header {
    background: linear-gradient(90deg, #43a6df, #1f7eb8);
}

.manga-news {
    border-color: #e6425e;
}

.manga-news .bb-news-header {
    background: linear-gradient(90deg, #e6425e, #b5213c);
}

.industry-news {
    border-color: #f0b429;
}

.industry-news .bb-news-header {
    background: linear-gradient(90deg, #f0b429, #c48f15);
}

/* --- Optional: glowing accent on hover --- */
.bb-news.anime-news:hover {
    box-shadow: 0 0 10px rgba(67, 166, 223, 0.3);
}

.bb-news.manga-news:hover {
    box-shadow: 0 0 10px rgba(230, 66, 94, 0.3);
}

.bb-news.industry-news:hover {
    box-shadow: 0 0 10px rgba(240, 180, 41, 0.3);
}


/* === ARTICLE === */
.bb-article {
    position: relative;
    margin: 25px auto;
    max-width: 800px;
}

/* Article content box */
.bb-article-content {
    border: 2px solid #43a6df;
    /* main website color */
    border-radius: 10px;
    padding: 18px 22px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #222;
    background: transparent;
    text-align: justify;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bb-article-content:hover {
    border-color: #1b84c4;
    box-shadow: 0 2px 10px rgba(67, 166, 223, 0.15);
}

/* Source attribution (outside border) */
.bb-article-source {
    margin-top: 6px;
    margin-left: 4px;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

/* RTL Adjustment */
[dir="rtl"] .bb-article-source {
    margin-left: 0;
    margin-right: 4px;
    text-align: right;
}


/* === HEADLINE TITLE === */
.bb-headline {
    text-align: center;
    font-weight: 800;
    font-size: 2.3rem;
    font-family: 'Droid Arabic Kufi';
    /* default size */
    color: #000000;
    margin: 25px 0 10px 0;
    position: relative;
}

/* Break line under the headline */
.bb-headline-divider {
    border: none;
    border-top: 7px solid #43a6df;
}

/* Optional hover effect */
.bb-headline:hover {
    color: #1b84c4;
}



/* Base Tribe Badge Style */
.tribe {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 10px;
    border-radius: 8px;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: default;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    isolation: isolate;
}

/* Subtle glowing pulse animation for all */
.tribe::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.5;
    transition: all 0.5s ease;
    filter: blur(20px);
    z-index: -1;
}

.tribe:hover {
    transform: scale(1.05);
    letter-spacing: 1.5px;
}

/* -------------------- NINJA -------------------- */
.ninja {
    background: radial-gradient(circle at top left, #2c3e50 0%, #bd7817 80%);
}

.ninja::before {
    background: linear-gradient(135deg, #2c3e50, #1e2a36);
}

.ninja:hover {
    animation: ninjaElectric 1.5s infinite linear;
}

@keyframes ninjaElectric {

    0%,
    100% {
        text-shadow: 0 0 8px #2c3e50, 0 0 20px #3e4f61;
    }

    50% {
        text-shadow: 0 0 20px #4f6d88, 0 0 40px #5f7f9a;
    }
}

/* -------------------- HUNTERS -------------------- */
.hunters {
    background: radial-gradient(circle at top left, #4e944f 0%, #2f6231 80%);
}

.hunters::before {
    background: linear-gradient(135deg, #4e944f, #3a7e3a);
}

.hunters:hover {
    animation: hunterPulse 1.3s infinite alternate;
}

@keyframes hunterPulse {
    0% {
        text-shadow: 0 0 8px #4e944f, 0 0 20px #68b56a;
    }

    100% {
        text-shadow: 0 0 18px #7cd87e, 0 0 40px #a2f4a4;
    }
}

/* -------------------- WARRIORS -------------------- */
.warriors {
    background: radial-gradient(circle at top left, #8b5e3c 0%, #5b3d24 80%);
}

.warriors::before {
    background: linear-gradient(135deg, #8b5e3c, #704a2d);
}

.warriors:hover {
    animation: warriorFlame 1.2s infinite alternate;
}

@keyframes warriorFlame {
    0% {
        text-shadow: 0 0 10px #ff9f5c, 0 0 25px #ffb877;
    }

    100% {
        text-shadow: 0 0 20px #ffcf9f, 0 0 40px #ffe3b3;
    }
}

/* -------------------- MAGES -------------------- */
.mages {
    background: radial-gradient(circle at top left, #b9b2d8 0%, #7b74a5 80%);
}

.mages::before {
    background: linear-gradient(135deg, #b9b2d8, #8e89b9);
}

.mages:hover {
    animation: mageAura 1.5s infinite alternate;
}

@keyframes mageAura {
    0% {
        text-shadow: 0 0 12px #cfc6ff, 0 0 35px #b9b2d8;
    }

    100% {
        text-shadow: 0 0 25px #a99de2, 0 0 50px #d8d2ff;
    }
}

/* -------------------- PIRATES -------------------- */
.pirates {
    background: radial-gradient(circle at top left, #1565c0 0%, #0d47a1 80%);
}

.pirates::before {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.pirates:hover {
    animation: pirateWave 1.4s infinite alternate;
}

@keyframes pirateWave {
    0% {
        text-shadow: 0 0 10px #2196f3, 0 0 25px #64b5f6;
    }

    100% {
        text-shadow: 0 0 25px #90caf9, 0 0 50px #bbdefb;
    }
}


/* -------------------- ADMIN -------------------- */
.admin {
    background: radial-gradient(circle at top left, #ff0000 0%, #990000 85%);
}

.admin::before {
    background: linear-gradient(135deg, #ff0000, #990000);
}

.admin:hover {
    animation: adminFlame 1.2s infinite alternate;
}

@keyframes adminFlame {
    0% {
        text-shadow: 0 0 12px #ff4d4d, 0 0 25px #ff1a1a;
    }

    100% {
        text-shadow: 0 0 25px #ff8080, 0 0 55px #ff3333;
    }
}

/* -------------------- SUB-ADMIN -------------------- */
.sub-admin {
    background: radial-gradient(circle at top left, #ff9c00 0%, #ff6f00 85%);
}

.sub-admin::before {
    background: linear-gradient(135deg, #ff9c00, #ff6f00);
}

.sub-admin:hover {
    animation: subAdminGlow 1.3s infinite alternate;
}

@keyframes subAdminGlow {
    0% {
        text-shadow: 0 0 8px #ffc107, 0 0 20px #ffb300;
    }

    100% {
        text-shadow: 0 0 25px #ffd54f, 0 0 40px #ffe082;
    }
}

/* -------------------- MODERATOR -------------------- */
.mod {
    background: radial-gradient(circle at top left, #009900 0%, #006600 85%);
}

.mod::before {
    background: linear-gradient(135deg, #009900, #006600);
}

.mod:hover {
    animation: modPulse 1.4s infinite alternate;
}

@keyframes modPulse {
    0% {
        text-shadow: 0 0 10px #33cc33, 0 0 25px #66ff66;
    }

    100% {
        text-shadow: 0 0 25px #99ff99, 0 0 50px #ccffcc;
    }
}

/* -------------------- SUB-MOD -------------------- */
.sub-mod {
    background: radial-gradient(circle at top left, #4288fb 0%, #2a5ac7 85%);
}

.sub-mod::before {
    background: linear-gradient(135deg, #4288fb, #2a5ac7);
}

.sub-mod:hover {
    animation: subModWave 1.4s infinite alternate;
}

@keyframes subModWave {
    0% {
        text-shadow: 0 0 12px #64b5f6, 0 0 25px #90caf9;
    }

    100% {
        text-shadow: 0 0 25px #bbdefb, 0 0 50px #e3f2fd;
    }
}

/* -------------------- HONOR USER -------------------- */
.honor-user {
    background: radial-gradient(circle at top left, #a873cf 0%, #7b4fa5 85%);
    position: relative;
    overflow: hidden;
}

.honor-user::before {
    background: linear-gradient(135deg, #a873cf, #7b4fa5);
}

.honor-user:hover {
    animation: honorShine 1.6s infinite alternate;
}

@keyframes honorShine {
    0% {
        text-shadow: 0 0 15px #c39bd3, 0 0 35px #d2b4de;
    }

    100% {
        text-shadow: 0 0 35px #e8daef, 0 0 60px #f4ecf7;
    }
}

/* -------------------- USER -------------------- */
.user {
    background: radial-gradient(circle at top left, #000000 0%, #222222 85%);
}

.user::before {
    background: linear-gradient(135deg, #000000, #222222);
}

.user:hover {
    animation: userFade 1.6s infinite alternate;
}

@keyframes userFade {
    0% {
        text-shadow: 0 0 10px #444, 0 0 25px #666;
    }

    100% {
        text-shadow: 0 0 20px #999, 0 0 45px #ccc;
    }
}

/* -------------------- BANNED -------------------- */
.banned {
    background: radial-gradient(circle at top left, #969696 0%, #666666 85%);
    filter: grayscale(100%);
    opacity: 0.6;
    cursor: not-allowed;
}

.banned::before {
    background: linear-gradient(135deg, #969696, #666666);
}

.banned:hover {
    animation: none;
    opacity: 0.5;
    text-decoration: line-through;
}



/* ---- Variables ---- */
:root {
    --ap-bg: #f6fbff;
    --ap-text: #0b1220;
    --ap-accent: #43a6df;
    --ap-muted: #cfd8e3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ap-bg: #0f1720;
        --ap-text: #e6eef7;
        --ap-accent: #43a6df;
        --ap-muted: #2b3945;
    }
}

/* ---- Container ---- */
.ap-slideshow {
    width: 100%;
    max-width: 800px;
    margin: 24px auto;
    background: var(--ap-bg);
    color: var(--ap-text);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(8, 12, 20, 0.12);
    font-family: system-ui, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial;
}

/* slides wrapper */
.ap-slides {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* single slide (only active shown) */
.ap-slide {
    display: none;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
}

.ap-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* active */
.ap-slide.is-active {
    display: block;
    animation: apFade 450ms cubic-bezier(.22, .9, .3, 1);
}

@keyframes apFade {
    from {
        opacity: 0;
        transform: scale(1.015);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Top arrows container */
.ap-controls-top {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    /* keeps arrow at both ends, respects RTL via dir attr */
    pointer-events: none;
    /* allow only the buttons to be clickable */
    z-index: 40;
}

/* Arrow buttons */
.ap-arrow {
    pointer-events: auto;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ap-accent);
    width: 44px;
    height: 40px;
    border-radius: 10px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
    box-shadow: 0 2px 8px rgba(67, 166, 223, 0.08);
}

/* dark theme arrow subtle */
@media (prefers-color-scheme: dark) {
    .ap-arrow {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* hover/focus */
.ap-arrow:hover,
.ap-arrow:focus {
    transform: translateY(-2px);
    background: rgba(67, 166, 223, 0.08);
    box-shadow: 0 6px 18px rgba(67, 166, 223, 0.12);
}

/* Progress dots bar */
.ap-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.02), transparent);
}

/* dot */
.ap-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ap-muted);
    border: 2px solid rgba(255, 255, 255, 0.02);
    transition: transform .2s ease, background .24s ease, box-shadow .24s ease;
    cursor: pointer;
}

/* active state */
.ap-dot.is-active {
    background: var(--ap-accent);
    transform: scale(1.55);
    box-shadow: 0 6px 18px rgba(67, 166, 223, 0.22);
}

/* responsive */
@media (max-width: 640px) {
    .ap-arrow {
        width: 40px;
        height: 36px;
        font-size: 18px;
    }

    .ap-progress {
        padding: 8px 6px;
        gap: 6px;
    }
}

/* small accessibility focus */
.ap-arrow:focus,
.ap-dot:focus {
    outline: 3px solid rgba(67, 166, 223, 0.18);
    outline-offset: 3px;
}

/* Container */
.ap-sidebar-block {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Grid Layout */
.ap-sidebar-grid {
    display: flex;
    flex-direction: column;
    /* mobile default */
    gap: 20px;
}

/* Block Titles */
.ap-block-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #43a6df;
    border-bottom: 2px solid #43a6df;
    display: inline-block;
    padding-bottom: 4px;
}

/* Leaderboard */
.ap-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-leaderboard-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ap-rank {
    font-weight: bold;
    width: 24px;
    text-align: center;
    color: #f39c12;
}

.ap-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 8px;
}

.ap-username {
    flex: 1;
    font-weight: 500;
}

.ap-points {
    font-size: 0.85rem;
    color: #777;
}

/* Chosen Threads */
.ap-thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-thread-list li {
    display: flex;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f7f9fb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-thread-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ap-thread-list a {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.ap-thread-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.ap-thread-info {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ap-thread-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #222;
}

.ap-thread-desc {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
}

/* Desktop: side-by-side layout */
@media (min-width: 960px) {
    .ap-sidebar-grid {
        flex-direction: row;
    }

    .ap-leaderboard {
        flex: 1;
    }

    .ap-chosen-threads {
        flex: 2;
    }
}

/* Container */
.ap-board-block {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9fbfd;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: 'Arial', sans-serif;
    text-align: center;
}

/* Section */
.ap-board-section {
    margin-bottom: 50px;
}

/* Section Title as Divider */
.ap-board-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #43a6df;
    position: relative;
    text-align: center;
    margin: 30px 0 20px 0;
    display: inline-block;
    padding: 0 15px;
}

/* Lines on left and right */
.ap-board-section-title::before,
.ap-board-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100px;
    /* length of the divider lines */
    height: 2px;
    background-color: #43a6df;
}

.ap-board-section-title::before {
    left: -110px;
    /* space between line and text */
}

.ap-board-section-title::after {
    right: -110px;
    /* space between line and text */
}

/* Responsive adjustment */
@media (max-width: 768px) {

    .ap-board-section-title::before,
    .ap-board-section-title::after {
        width: 60px;
        left: -70px;
        right: -70px;
    }
}


/* Thumbnails Container */
.ap-board-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Single Thumbnail */
.ap-board-thumb {
    display: block;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.ap-board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ap-board-thumb:hover img {
    transform: scale(1.08);
}

.ap-board-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Optional: show title overlay on hover */
.ap-board-thumb::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
    padding: 6px 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.ap-board-thumb:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .ap-board-thumbnails {
        gap: 15px;
    }
}

/* Slider */
.ap-board-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ap-board-slider-wrapper {
    overflow: hidden;
}

.ap-board-thumbnails {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

/* Navigation buttons */
.ap-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(67, 166, 223, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.ap-slider-btn:hover {
    background: #43a6df;
}

.ap-slider-btn.left {
    left: 10px;
}

.ap-slider-btn.right {
    right: 10px;
}

/* Thumbnails */
.ap-board-thumb {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.ap-board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-board-thumb:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .ap-board-thumb {
        width: 160px;
        height: 120px;
    }

    .ap-slider-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}