/*********************************************************************************
*   BASE HEADER - AFROWAP GREEN
********************************************************************************/

.af-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: radial-gradient(circle at top left, rgba(13,144,79,0.16), transparent 55%),
                #242424;
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
                rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
                rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.af-header-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body.admin-bar .af-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .af-header {
        top: 46px;
    }
}

/* ============================
   LOGO
============================ */

.af-logo {
    flex: 0 0 auto;
}

.af-logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    line-height: 1.1;

    padding: 2px 8px;
    border-radius: 4px;
    background: #0d904f;
    border: 1px solid #2c303a;
}

.af-logo a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   SEARCHBAR – DARK STYLE
============================ */

.af-search {
    flex: 1 1 220px;
    position: relative;
}

.af-search form {
    position: relative;
}

.af-search-input {
    width: 100%;
    height: 36px;
    padding: 0 38px 0 10px;
    border-radius: 6px;
    outline: none;
    background: #202124;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.af-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* Hide default browser cancel icon */
.af-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

/* Search button – flat icon button */
.af-search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    cursor: pointer;
    background: #2b2f33 url(/wp-content/themes/afrowap/images/iconsrch.png) no-repeat center;
    background-size: 18px;
    border-radius: 0 6px 6px 0;
    transition: background .15s ease;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.af-search-btn:hover {
    background-color: #353a3f;
}

/* Custom white X (clear) button */
.af-search-close {
    position: absolute;
    right: 40px;
    top: 0;
    height: 36px;
    width: 30px;
    border: none;
    cursor: pointer;
    background:
        transparent
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke="white" fill="none" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>')
        no-repeat center;
    background-size: 16px;
    opacity: 0.7;
    display: none; /* JS will show it when there's text */
}

.af-search-close:hover {
    opacity: 1;
}

/* ============================
   HAMBURGER – WHITE ON DARK
============================ */

.af-nav-toggle {
    display: none;
    width: 40px !important;
    height: 40px !important;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.af-nav-toggle span {
    display: block;
    height: 4px !important;
    width: 26px !important;
    margin: 6px 2px !important;
    background: #ffffff;
    border-radius: 3px;
    transition: .3s ease;
    transform-origin: center;
}

/* X TRANSITION (BIG VERSION) */
.af-nav-toggle.af-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.af-nav-toggle.af-open span:nth-child(2) {
    opacity: 0;
}
.af-nav-toggle.af-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================
   NAV BASE
============================ */

.af-main-nav {
    flex: 0 0 auto;
}

/* ============================
   MOBILE (≤ 767px)
============================ */

@media (max-width: 767px) {

    .af-header-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px 10px 6px 10px;
        min-width: 0;
        position: relative;
        padding-right: 48px;
    }

    .af-logo {
        flex: 0 1 auto;
        margin-right: 4px;
        min-width: 0;
        max-width: 40%;
    }

    .af-logo-text {
        font-size: 15px;
        letter-spacing: 0em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .af-search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-right: 0;
    }

    .af-search-input {
        width: 100%;
        height: 34px;
        font-size: 13px;
        padding: 0 38px 0 8px;
    }

    .af-search-btn {
        width: 34px;
        height: 34px;
        background-size: 16px;
    }

    /* HAMBURGER ABSOLUTE ON THE RIGHT, FIXED IN BAR */
    .af-nav-toggle {
        display: block;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px !important;
        height: 36px !important;
        margin: 0;
    }

    .af-nav-toggle span {
        height: 3px !important;
        width: 22px !important;
        margin: 5px 2px !important;
    }

    /* MOBILE NAV DROPDOWN – ABSOLUTE UNDER HEADER BAR */
    .af-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1E1E1E;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-5px);
        pointer-events: none;
        transition: all .25s ease;
        border-radius: 0 0 10px 10px;
        z-index: 9999;
    }

    .af-main-nav.af-open {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    #af-main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #af-main-nav ul li a {
        display: block;
        padding: 12px 14px;
        font-size: 14px;
        color: #ffffff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        background: transparent;
        transition: background .2s, color .2s;
    }

    #af-main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.10);
        color: #0d904f;
    }

    #af-main-nav .sub-menu {
        display: none;
        background: #181818;
        padding-left: 18px;
    }

    #af-main-nav .sub-menu.af-sub-open {
        display: block;
    }

    #af-main-nav .menu-item-has-children > a,
    #af-main-nav .page_item_has_children > a {
        padding-right: 36px;
        position: relative;
    }

    #af-main-nav .menu-item-has-children > a::after,
    #af-main-nav .page_item_has_children > a::after {
        content: "▾";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: bold;
        color: #ffffff;
        opacity: 0.9;
        pointer-events: none;
    }

    #af-main-nav .menu-item-has-children.af-sub-open-parent > a::after,
    #af-main-nav .page_item_has_children.af-sub-open-parent > a::after {
        content: "▴";
        font-size: 22px;
    }
}

/* ============================
   DESKTOP (≥ 768px)
============================ */

@media (min-width: 768px) {

    .af-header-inner {
        flex-wrap: nowrap;
    }

    .af-logo {
        padding: 8px 5px;
    }

    .af-search {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        max-width: 100% !important;
        margin: 0 10px !important;
    }

    #af-main-nav {
        flex: 0 1 auto;
        white-space: nowrap;
        position: static;
    }

    #af-main-nav > ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        list-style: none;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    #af-main-nav > ul > li {
        position: relative;
    }

    #af-main-nav > ul > li > a {
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: #ffffff;
        text-decoration: none;
        border-radius: 4px;
        border: 1px solid transparent;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
    }

    #af-main-nav > ul > li > a:hover {
        background: #0d904f;
        border-color: #0d904f;
        color: #ffffff;
    }

    #af-main-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 100%;
        max-width: 240px;
        background: #1E1E1E;
        display: none;
        padding: 4px 0;
        z-index: 9999;
        border-radius: 4px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    #af-main-nav li:hover > .sub-menu {
        display: block;
    }

    #af-main-nav .sub-menu li {
        width: 100%;
    }

    #af-main-nav .sub-menu li a {
        padding: 8px 12px;
        display: block;
        font-size: 13px;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        text-decoration: none;
    }

    #af-main-nav .sub-menu li:last-child a {
        border-bottom: none;
    }

    #af-main-nav .sub-menu li a:hover {
        background: rgba(13, 144, 79, 0.18) !important;
        color: #0d904f !important;
    }

    #af-main-nav > ul > li.menu-item-has-children > a,
    #af-main-nav > ul > li.page_item_has_children > a {
        padding-right: 18px !important;
        position: relative;
    }

    #af-main-nav > ul > li.menu-item-has-children > a::after,
    #af-main-nav > ul > li.page_item_has_children > a::after {
        content: "▾";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        opacity: .8;
        color: #ffffff;
    }
}
/*********************************************************************************
* AFROWAP – HOME SECTIONS (Random / Main Albums)
********************************************************************************/

.af-home-section {
    margin: 22px 0 26px;
}

/* Header: title + subtitle + "All albums" link */
.af-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.af-home-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.af-home-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.af-home-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

/* "All albums →" link on the right */
.af-home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.78);
    text-decoration: none;

    padding-bottom: 1px;
    border-bottom: 1px solid transparent;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease;
}

.af-home-view-all:hover {
    color: #0d904f;
    border-color: #0d904f;
    transform: translateY(-1px);
}

/* Small screens: let header wrap nicely */
@media (max-width: 600px) {
    .af-home-header {
        align-items: flex-start;
    }
}

/**********************
 * FULL-WIDTH ALBUM GRID
 * 2 cols (mobile) → 3 cols (tablet) → 4 cols (desktop)
 * GOOGLE DARK + AFROWAP GREEN
 **********************/

/* Wrapper – takes full width of whatever content area it's in */
.af-album-grid {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Grid itself */
.af-album-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* mobile: 2 per row */
    gap: 16px;
    box-sizing: border-box;
}

/* Album card – dark surface + soft shadow */
.af-album-card {  
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
}

/* --------------------------
   SQUARE THUMBNAIL – TUNED SIZE
   -------------------------- */

/* SMALL SQUARE THAT TOUCHES THE CARD EDGES */
.af-album-thumb {
    aspect-ratio: 1 / 1;    /* perfect square */
    width: 100%;            /* fill the card */
    margin: 0;              /* no padding */
    display: inherit;
    overflow: hidden;
    /*background: #242424;*/
    min-height: 130px;
    min-width: 130px;
}

/* Image fills the square */
.af-album-thumb img,
.af-album-thumb .mh-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title area – dark background, light text */
.af-album-title {
    padding: 10px 12px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.25;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    min-height: auto;
    color: rgba(255, 255, 255, 0.9);
}

.af-album-title a {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;

    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    font-style: normal;
    text-rendering: optimizeLegibility;
    font-size: 16.5px;
}

.af-album-title a:hover {
    color: #0d904f;              /* Afrowap green accent */
    text-decoration: underline;
}

/* Tablet – 3 per row */
@media (min-width: 768px) {
    .af-album-grid-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .af-album-title {
        padding: 10px 14px 12px;
    }
}

/* Desktop – 4 per row */
@media (min-width: 1200px) {
    .af-album-grid-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

/*********************************************************************************
*   AFROWAP ARCHIVE – (G DARK)
********************************************************************************/

/* ============================
   ARCHIVE HEADER
   ============================ */

.afw-archive-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3c4043;

    /* NEW: grid layout for title + desc + filter + controls */
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title   controls"
        "desc    controls"
        "filter  controls";
    column-gap: 12px;
    row-gap: 4px;
    align-items: flex-end;
}

/* Title + description */
.afw-archive-title {
    grid-area: title;
    margin: 0 0 6px;
    font-size: 22px;
    color: #e8eaed;
}

.afw-archive-desc {
    grid-area: desc;
    color: #9aa0a6;
    font-size: 14px;
}

/* View toggle – now lives in the "controls" grid area */
.afw-archive-view-toggle {
    grid-area: controls;
    margin-top: 0;
    display: inline-flex;
    gap: 6px;
    background: #202124;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #3c4043;
    justify-self: end; /* push to right end */
}

/* REMOVE old float/clearfix */
/* .afw-archive-header::after { ... } is no longer needed */

.afw-view-btn {
    border: none;
    background: transparent;
    color: #9aa0a6;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.afw-view-btn .afw-view-icon {
    font-size: 13px;
}

.afw-view-btn.is-active {
    background: #8ab4f8;
    color: #202124;
}

.afw-view-btn:is(:hover):not(.is-active) {
    background: #303134;
    color: #e8eaed;
}

/* ============================
   LANGUAGE FILTER BAR
   (sits on same row as view toggle, left side)
   ============================ */

.af-lang-filter-bar {
    grid-area: filter;
    margin-top: 4px;
    /* no background box here so it feels light under header;
       header border already separates it nicely */
}

.af-lang-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
}

.af-lang-filter-label {
    font-size: 13px;
    color: #9aa0a6;
    white-space: nowrap;
}

.af-lang-filter-select-wrap {
    flex: 1;
}

.af-lang-filter-select {
    width: 100%;
    background: #202124;
    color: #e8eaed;
    border: 1px solid #3c4043;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

.af-lang-filter-select:focus {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.3);
}

.af-lang-filter-select option {
    background: #202124;
    color: #e8eaed;
}

.af-lang-filter-submit {
    background: #1a73e8;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.af-lang-filter-submit:hover {
    background: #185abc;
}

/* On archives that are NOT album_language, there is no .af-lang-filter-bar,
   so the grid just uses title + desc + toggle normally. */

/* ============================
   GRID / LIST SHELL
   ============================ */

.afw-archive-shell {
    margin-top: 8px;
}

/* Make sure grid never exceeds wrapper width */
.afw-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    box-sizing: border-box;
}

/* ARCHIVE ITEM – base card */
.afw-archive-item {
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow:
        rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
        rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
        rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.07),
        rgba(255, 255, 255, 0.07)
    );
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
}

.afw-archive-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail (grid + list default) */
.afw-archive-thumb {
    position: relative;
}

.afw-archive-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.afw-archive-thumb-fallback {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 12px;
}

.afw-archive-meta {
    padding: 8px 10px 10px;
}

.afw-archive-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #e8eaed;
}

.afw-archive-meta-line {
    font-size: 11px;
    color: #9aa0a6;
    text-transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.afw-meta-artist {
    font-weight: 500;
}

.afw-meta-year {
    opacity: 0.9;
}

.afw-meta-sep {
    opacity: 0.6;
}

/* ============================
   LIST VIEW OVERRIDES
   ============================ */

/* When list mode is active on shell, switch to flex rows */
.afw-archive-shell.afw-view-mode-list .afw-archive-grid {
    display: block;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 10px;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-link {
    display: flex;
    width: 100%;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-thumb {
    flex: 0 0 100px;
    max-width: 100px;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-img,
.afw-archive-shell.afw-view-mode-list .afw-archive-thumb-fallback {
    aspect-ratio: 1/1;
    height: 100%;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-meta {
    flex: 1 1 auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-item-title {
    font-size: 15px;
    margin-bottom: 3px;
}

.afw-archive-shell.afw-view-mode-list .afw-archive-meta-line {
    font-size: 12px;
}

/* ============================
   RESPONSIVE GRID + HEADER
   ============================ */

@media (max-width: 1024px) {
    .afw-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .afw-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afw-archive-wrapper .mh-content {
        padding-inline: 10px;
    }

    .afw-archive-shell.afw-view-mode-list .afw-archive-thumb {
        flex: 0 0 80px;
        max-width: 80px;
    }

    /* On smaller screens, stack filter under title/desc but keep toggle right */
    .afw-archive-header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title   controls"
            "desc    controls"
            "filter  filter";
        align-items: flex-start;
    }

    .af-lang-filter-bar {
        margin-top: 6px;
    }

    .afw-archive-view-toggle {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .afw-archive-title {
        font-size: 18px;
    }

    .afw-archive-shell.afw-view-mode-list .afw-archive-item {
        margin-bottom: 8px;
    }

    .afw-archive-shell.afw-view-mode-list .afw-archive-thumb {
        flex: 0 0 72px;
        max-width: 72px;
    }

    .afw-archive-shell.afw-view-mode-list .afw-archive-item-title {
        font-size: 14px;
    }

    .af-lang-filter-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .af-lang-filter-label {
        margin-bottom: 2px;
    }
}

/* ===================================================================================
   EMPTY STATE (content-none)
   ============================================================================= */

.af-empty-wrap {
    margin-top: 24px;
    /*margin-bottom: 24px;*/
}

.af-empty-card {
    background: #202124;
    border-radius: 4px;
    border: 1px solid #3c4043;
    padding: 22px 18px 20px;
    color: #e8eaed;
    box-shadow:
        0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
    max-width: 720px;
    margin-inline: auto;
}

.af-empty-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 12px;
}

.af-empty-title {
    font-size: 20px;
    margin: 0 0 6px;
    color: #e8eaed;
}

.af-empty-text {
    margin: 0 0 14px;
    font-size: 14px;
    color: #9aa0a6;
}

/* Actions (buttons/links) */
.af-empty-actions {
    margin-bottom: 14px;
}

.af-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.af-empty-btn-secondary {
    background: transparent;
    color: #8ab4f8;
    border-color: #3c4043;
}

.af-empty-btn-secondary:hover {
    background: #303134;
    border-color: #5f6368;
    color: #e8eaed;
}

/* Search block */
.af-empty-search-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #3c4043;
}

.af-empty-search-heading {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #e8eaed;
}

.af-empty-search-form {
    max-width: 420px;
}

/* Try to dark-theme the default search form inside */
.af-empty-search-form form,
.af-empty-search-form .search-form {
    display: flex;
    gap: 6px;
}

.af-empty-search-form input[type="search"] {
    flex: 1;
    background: #202124;
    border: 1px solid #3c4043;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    color: #e8eaed;
    box-sizing: border-box;
}

.af-empty-search-form input[type="search"]::placeholder {
    color: #80868b;
}

.af-empty-search-form input[type="search"]:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.3);
}

.af-empty-search-form input[type="submit"],
.af-empty-search-form button[type="submit"] {
    background: #1a73e8;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.af-empty-search-form input[type="submit"]:hover,
.af-empty-search-form button[type="submit"]:hover {
    background: #185abc;
}

/* ============================
   RESPONSIVE TWEAKS
   ============================ */

@media (max-width: 600px) {
    .af-empty-card {
        padding: 18px 14px;
        margin-inline: 0;
    }

    .af-empty-title {
        font-size: 18px;
    }

    .af-empty-search-form form,
    .af-empty-search-form .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .af-empty-search-form input[type="submit"],
    .af-empty-search-form button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

/*********************************************************************************
* AFROWAP – TOP ARTISTS SLIDER
********************************************************************************/

/* Block wrapper */
.af-home-artists-block {
    margin: 28px 0 40px;
}

/* Header */
.af-home-artists-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.af-home-artists-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.af-home-artists-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.af-home-artists-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

.af-home-artists-view-all {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.af-home-artists-view-all:hover {
    color: #0d904f;
    border-color: #0d904f;
}

/* ===== Slider layout ===== */

.af-home-artists-wrap {
    position: relative;
}

/* Viewport – we control movement via transform in JS */
.af-home-artists-viewport {
    overflow: hidden;
}

/* Strip of artists – moved left/right via transform */
.af-home-artists-strip {
    display: flex;
    padding: 4px 2px 6px;
    transition: transform 0.25s ease;
}

/* Base pill style */
.af-home-artist-pill {
    text-align: center;
}

/* Clickable */
.af-home-artist-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Round avatar */
.af-home-artist-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;

    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7);
    background: radial-gradient(circle at 30% 20%, #333, #121212);
    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                border-color 0.15s ease;
}

.af-home-artist-photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.af-home-artist-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #222 0,
        #222 8px,
        #2e2e2e 8px,
        #2e2e2e 16px
    );
}

/* Hover effect */
.af-home-artist-link:hover .af-home-artist-avatar {
    transform: translateY(-3px) scale(1.04);
    border-color: #0d904f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.85);
}

/* Name */
.af-home-artist-name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Arrow buttons – DESKTOP ONLY ===== */

.af-home-artists-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    background: rgba(10,10,10,0.9);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    display: none; /* shown on desktop below */
    align-items: center;
    justify-content: center;

    transition: background 0.15s ease,
                border-color 0.15s ease,
                transform 0.12s ease;
}

.af-home-artists-nav:hover {
    background: #0d904f;
    border-color: #0d904f;
    transform: translateY(-50%) translateY(-1px);
}

.af-home-artists-nav-prev { left: -6px; }
.af-home-artists-nav-next { right: -6px; }

/* ===== Mobile behaviour (≤ 767px) ===== */

@media (max-width: 767px) {

    /* no arrows on mobile */
    .af-home-artists-nav {
        display: none !important;
    }

    /* still 2 per "page" */
    .af-home-artists-strip {
        justify-content: flex-start;
        gap: 0;
    }

    .af-home-artist-pill {
        flex: 0 0 50%;          /* exactly 2 per view width */
        padding: 0 6px;
        box-sizing: border-box;
    }

    .af-home-artist-avatar {
        width: 100px;
        height: 100px;
    }

    .af-home-artist-name {
        max-width: 100%;
    }
}

/* ===== Desktop behaviour (≥ 768px) ===== */

@media (min-width: 768px) {
    .af-home-artists-nav {
        display: flex;
    }

    /* 6 per "page" exactly:
       6 cards + 5 gaps (18px) = 100%
       => card width = (100% - 90px) / 6
    */
    .af-home-artists-strip {
        gap: 18px;
        padding: 4px 0 6px;
    }

    .af-home-artist-pill {
        flex: 0 0 calc((100% - 90px) / 6);
        padding: 0;
    }
}


/*********************************************************************************
* AFROWAP – FEATURED ALBUMS SCROLL STRIP
********************************************************************************/

/* Section wrapper */
.af-featured-section {
    margin: 22px 0 20px;
}

/* ===== HEADER: Title + subtitle + "View all" on the right ===== */

.af-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.af-featured-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.af-featured-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.af-featured-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

/* "View all featured albums →" inline with heading */
.af-featured-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.78);
    text-decoration: none;

    padding-bottom: 1px;
    border-bottom: 1px solid transparent;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease;
}

.af-featured-view-all:hover {
    color: #0d904f;
    border-color: #0d904f;
    transform: translateY(-1px);
}

/* On small screens, allow wrapping nicely */
@media (max-width: 600px) {
    .af-featured-header {
        align-items: flex-start;
    }
}

/* ===== SCROLLER WRAP (for arrow positioning) ===== */

.af-featured-scroller-wrap {
    position: relative;
}

/* ===== Horizontal scroller ===== */

.af-featured-scroller {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

/* slim scrollbar */
.af-featured-scroller::-webkit-scrollbar {
    height: 5px;
}
.af-featured-scroller::-webkit-scrollbar-track {
    background: transparent;
}
.af-featured-scroller::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

/* Strip of cards */
.af-featured-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 2px;
}

/* ===== Cards – smaller than main grids ===== */

.af-featured-card {
    flex: 0 0 120px;  /* smaller width to feel secondary */
    max-width: 130px;
        
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
}

/* Thumb */
.af-featured-thumb {
    display: block;
}

.af-featured-thumb img,
.af-featured-thumb .mh-image-placeholder {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* perfect square */
}

/* Title */
.af-featured-card-title {
    margin: 0;
    padding: 6px 7px 7px;
    border-top: 1px solid rgba(255,255,255,0.06);

    font-size: 0.76rem;
    line-height: 1.25;
    color: rgba(255,255,255,0.9);
}

.af-featured-card-title a {
    color: inherit;
    text-decoration: none;
}

.af-featured-card-title a:hover {
    color: #0d904f;
    text-decoration: underline;
}

/* ===== Arrow buttons ===== */

.af-featured-nav {
    position: absolute;
    top: 50%;
    z-index: 2;

    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(8,8,8,0.9);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.85;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.12s ease;
}

/* base translateY to center */
.af-featured-nav {
    transform: translateY(-50%);
}

.af-featured-nav:hover {
    background: #0d904f;
    border-color: #0d904f;
    opacity: 1;
    transform: translateY(-50%) translateY(-1px);
}

.af-featured-nav-prev {
    left: 0;
    transform: translate(-30%, -50%);
}

.af-featured-nav-next {
    right: 0;
    transform: translate(30%, -50%);
}

/* ===== Responsive tweaks ===== */

@media (min-width: 768px) {
    .af-featured-title {
        font-size: 1.2rem;
    }

    .af-featured-card {
        flex: 0 0 140px;
        max-width: 150px;
    }
}

@media (min-width: 1200px) {
    .af-featured-card {
        flex: 0 0 150px;
        max-width: 160px;
    }
}

/*********************************************************************************
*   ALBUM CATEGORY – (G DARK + GREEN)
********************************************************************************/

/* Page wrapper inside theme content */
.af-cat-archive {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* ===== HEADER STRIP ===== */

.af-cat-header {
    margin: 0 0 18px;
    padding: 14px 14px 12px;
    
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
    
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-cat-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.af-cat-pill {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #0d904f; /* Afrowap green */
}

.af-cat-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.af-cat-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.af-cat-description {
    margin: 4px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
}


/* Slight visual difference for ALL ALBUMS page */
.af-cat-archive--all .af-cat-header {
    background: #202020;
    background-image: linear-gradient(
        135deg,
        rgba(13,144,79,0.18),
        rgba(255,255,255,0.08)
    );
}

.af-cat-archive--all .af-cat-pill {
    background: rgba(13,144,79,0.12);
    border-color: rgba(13,144,79,0.6);
    color: #ffffff;
}

.af-cat-archive--all .af-cat-title {
    font-size: 1.6rem;
}
/*********Slight visual END******************/

/* Tablet+ tweak */
@media (min-width: 768px) {
    .af-cat-header {
        padding: 16px 18px 14px;
    }

    .af-cat-title {
        font-size: 1.7rem;
    }
}

/* ===== GRID LAYOUT ===== */

.af-cat-grid {
    margin-top: 18px;
}

/* 2 / 3 / 4 cols responsive */
.af-cat-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 768px) {
    .af-cat-grid-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .af-cat-grid-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ===== CARD ===== */

.af-cat-card {
    /*position: relative;*/
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
}

.af-cat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Thumbnail wrapper */
.af-cat-thumb {
    position: relative;
    overflow: hidden;
}

/* Image */
.af-cat-thumb img,
.af-cat-thumb .mh-image-placeholder {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.af-cat-card:hover .af-cat-thumb img,
.af-cat-card:hover .af-cat-thumb .mh-image-placeholder {
    transform: scale(1.06);
}

/* Dark gradient overlay */
.af-cat-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.25) 60%,
        transparent 100%
    );
    pointer-events: none;
}

/* Title overlay on image */
.af-cat-meta-overlay {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #fff;
    z-index: 2;
}

.af-cat-album-title {
    margin: 0 0 4px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.af-cat-album-title a {
    color: #fff;
}

.af-cat-album-title a:hover {
    color: #0d904f; /* green hover */
}

/* Bottom strip for artist + year */
.af-cat-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;

    background: #121212; /* Google dark footer strip */
    border-top: 1px solid rgba(255,255,255,0.08);

    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    gap: 6px;
}

.af-cat-bottom-artist {
    flex: 1 1 auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.af-cat-bottom-year {
    flex: 0 0 auto;
    opacity: 0.85;
}

/* ===== EMPTY STATE ===== */

.af-cat-empty {
    padding: 24px 0;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}


/*********************************************************************************
* AFROWAP – ARTIST TAXONOMY PAGE
* Simple, Smooth Table Layout
********************************************************************************/

/* Page body wrapper */
#page-body {
    margin-top: 16px;
    color: #f5f5f5;
}

/* =========================
   ARTIST HEADER
========================= */

.afrowap-artist-header {
    margin-bottom: 18px;
}

.afrowap-artist-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 14px 12px;
    border-radius: 10px;

    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms 
cubic-bezier(0.4, 0, 0.2, 1);
}

/* Artist photo */
.afrowap-artist-photo {
    flex: 0 0 90px;
    max-width: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.afrowap-artist-photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Artist text */
.afrowap-artist-main {
    flex: 1 1 auto;
    min-width: 0;
}

.afrowap-artist-name-heading {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-rendering: optimizeLegibility;
}

.afrowap-artist-bio {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.82);
}

/* =========================
   ALBUMS HEADER (PILL)
========================= */

.af-artist-albums-header {
    margin: 4px 0 8px;
}

.af-artist-albums-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    background: rgba(13,144,79,0.12);
    border: 1px solid rgba(13,144,79,0.65);
    color: #ffffff;
}

/* =========================
   TABLE WRAPPER
========================= */

.contentbg {
    margin-top: 10px;
    /* no background, no border – let mh-wrapper handle breathing room */
}

.tax-artist .contentbg {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================
   TABLE STYLING
========================= */

.table1 {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.86rem;
}

/* Header row */
.table1 thead {
    background: #202020;
}

.table1 thead th {
    padding: 8px 6px;
    font-weight: 600;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.78);
    border-bottom: 1px solid rgba(255,255,255,0.10); /* subtle line, not full box */
}

/* Wider album name column */
.table1 th.name {
    width: 50%;
}

/* Year + songs header alignment */
.table1 th.year,
.table1 th.songs {
    width: 80px;
    text-align: center;
}

/* Sort buttons in header */
.af-artist-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.af-artist-sort-icon {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Body cells */
.table1 td {
    padding: 7px 6px;
    vertical-align: middle;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.92);
}

/* Smooth row feel – no heavy outer borders, just soft separators */
.table1 tbody tr {
    background: #151515;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease, transform 0.08s ease;
}

.table1 tbody tr:nth-child(even) {
    background: #181818;
}

.table1 tbody tr:last-child {
    border-bottom: none; /* avoid harsh bottom cutoff */
}

.table1 tbody tr:hover {
    background: #202020;
    transform: translateY(-1px);
}

/* Thumb cell */
/* Center the square thumbnail inside its cell */
.table1 td.square-thumb {
    width: 60px;
    min-width: 60px;
    text-align: center;        /* center inline elements */
    vertical-align: middle;    /* vertical centering */
    padding: 6px 0;            /* optional cleaner spacing */
}

/* Make the image itself centered & square always */
.table1 td.square-thumb img {
    width: 60px !important;
    height: 60px !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;        /* ensures horizontal centering */
    display: block;            /* so margin auto works */
    object-fit: cover;
    border-radius: 6px;
}

.table1 td.square-thumb a {
    display: inline-block;
}

/* Album title cell */
.af-artist-album-title-cell a {
    color: #f7f7f7;
    text-decoration: none;
}

.af-artist-album-title-cell a:hover {
    color: #0d904f;
    text-decoration: underline;
}

/* Year + songs cells */
.af-artist-year-cell,
.af-artist-songs-cell {
    text-align: center;
    color: rgba(255,255,255,0.85);
}

/* =========================
   BOTTOM INFO + EMPTY STATE
========================= */

.content-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
}

.artist-album-total {
    padding: 4px 9px;
    border-radius: 999px;
    background: #222;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Empty message */
.afrowap-artist-empty {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #181818;
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
}

/* =========================
   RESPONSIVE – HEADER
========================= */

@media (max-width: 768px) {

    .afrowap-artist-header-inner {
        align-items: flex-start;
        gap: 10px;
    }

    .afrowap-artist-photo {
        flex: 0 0 72px;
        max-width: 72px;
    }

    .afrowap-artist-name-heading {
        font-size: 1.2rem;
    }
}


/*********************************************************************************
* AFROWAP – STANDARD PAGE LAYOUT
 * (About, Privacy, Contact, DMCA etc.)
********************************************************************************/

.af-page-shell {
    /*max-width: 820px;
    margin: 24px auto 32px;
    padding: 0 12px;*/
}

/* Card wrapper */
.af-page-card {
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    background: #181818;
    border: 1px solid rgba(255,255,255,0.08);
    /*box-shadow:
        0 4px 12px rgba(0,0,0,0.6),
        0 16px 34px rgba(0,0,0,0.75);
    color: rgba(255,255,255,0.9);*/
}

/* Page title */
.af-page-header {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 6px;
}

.af-page-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-rendering: optimizeLegibility;
}

/* Content body */
.af-page-content {
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
}

/* Paragraphs & headings inside the page content */
.af-page-content p {
    margin: 0 0 0.95em;
}

.af-page-content h2,
.af-page-content h3,
.af-page-content h4 {
    margin: 1.4em 0 0.6em;
    font-weight: 600;
    color: #ffffff;
}

.af-page-content h2 {
    font-size: 1.25rem;
}

.af-page-content h3 {
    font-size: 1.05rem;
}

.af-page-content h4 {
    font-size: 0.98rem;
}

/* Links */
.af-page-content a {
    color: #0d904f;
    text-decoration: none;
    border-bottom: 1px dotted rgba(13,144,79,0.7);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.af-page-content a:hover {
    color: #0ff29a;
    border-color: rgba(15,242,154,0.9);
}

/* Lists */
.af-page-content ul,
.af-page-content ol {
    margin: 0 0 1em 1.2em;
    padding-left: 0.3em;
}

.af-page-content li {
    margin: 0.25em 0;
}

/* Blockquotes */
.af-page-content blockquote {
    margin: 1.2em 0;
    padding: 10px 14px;
    border-left: 3px solid #0d904f;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-style: italic;
}

/* Tables inside policy pages */
.af-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.9rem;
}

.af-page-content th,
.af-page-content td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.af-page-content th {
    text-align: left;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
}

/* Pagination links for multipage content */
.af-page-links {
    margin-top: 14px;
    font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .af-page-shell {
        /*margin: 18px auto 26px;
        padding: 0 10px;*/
    }

    .af-page-card {
        /*padding: 16px 14px 18px;*/
        border-radius: 12px;
    }

    .af-page-title {
        font-size: 1.4rem;
    }

    .af-page-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/*********************************************************************************
* AFROWAP – LANGUAGE BAR
   (UNIQUE NAMESPACED CSS)
********************************************************************************/

#afw-langbar {
    clear: both;
    margin-top: 10px;
	margin-bottom: 10px;
}

#afw-langbar .afw-langbar-nav {
    font-weight: normal;
    overflow: hidden;
}

/* Avoid clipping when many languages are shown */
/* Avoid clipping when many languages are shown */
#afw-langbar .afw-langbar-nav,
#afw-langbar ul.afw-langbar-list {
    height: auto;
}

/* make sure the nav actually contains the floated items */
#afw-langbar .afw-langbar-nav {
    overflow: hidden; /* keep this! */
}

/* =======================
   LINK LIST LAYOUT
======================= */

#afw-langbar ul.afw-langbar-list {
    display: block;
    margin: 0;
    padding: 0;
}

#afw-langbar ul.afw-langbar-list li {
    display: block;
    list-style-type: none;
    float: left;
    width: auto;
    margin-right: 15px;
    font-size: 1.1em;
    line-height: 2.2em;
}

/* Right block */
#afw-langbar ul.afw-langbar-list li.afw-langbar-right,
#afw-langbar p.afw-langbar-right {
    float: right;
    margin-right: 0;
    margin-left: 5px;
    text-align: right;
}

/* =======================
   HOME LINK + ICON
======================= */

#afw-langbar .afw-langbar-home {
    background-image: url(/wp-content/themes/afrowap/images/icon-home.png);
    background-size: 20px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    padding-left: 22px;
}

#afw-langbar .afw-langbar-home a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

#afw-langbar .afw-langbar-home a:hover {
    text-decoration: underline;
    color: #000;
}

/* =======================
   LANGUAGE BUTTON CLOUD
======================= */

#afw-langbar .afw-langbar-cloud {
    max-width: 100%;
    white-space: normal;   /* allow wrapping */
}

#afw-langbar .afw-langbar-cloud a {
    display: inline-block;
    margin: 2px 3px;
    padding: 3px 10px;
    border-radius: 4px;               /* pill button */
	
	border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.65);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
	
    color: rgb(255, 255, 255);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.00938em;
    background-color: rgb(18, 18, 18);
	text-decoration: none;
    white-space: nowrap;                /* each pill stays on one line */
    transition: background 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease,
                box-shadow 0.15s ease;
}

#afw-langbar .afw-langbar-cloud a:hover {
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2),
                0 0 0 1px rgba(0,0,0,0.08);
}

#afw-langbar .afw-langbar-empty {
    font-size: 0.9em;
    color: #777;
}

/* =======================
   Small screens – stack
======================= */

@media (max-width: 600px) {
    #afw-langbar ul.afw-langbar-list li {
        float: none;
        display: block;
        margin-right: 0;
        text-align: left;
    }

    #afw-langbar ul.afw-langbar-list li.afw-langbar-right {
        float: none;
        margin-left: 0;
        margin-top: 4px;
        text-align: left;
    }

    #afw-langbar .afw-langbar-cloud a {
        font-size: 0.85em;
        padding: 3px 8px;
    }
}


/*********************************************************************************
* AFROWAP – SEARCH PAGE STYLE
********************************************************************************/

/* Wrapper for fade animation */
.af-search-page {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease;
}

.af-search-page.af-search-loaded {
    opacity: 1;
    transform: translateY(0);
}

.af-search-page.af-search-fading-out {
    opacity: 0;
    transform: translateY(4px);
}

/* Header */
.af-search-header {
    margin: 0 0 18px;
    padding: 14px 14px 12px;
    border-radius: 4px;
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
                rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
                rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09));
    display: flex;
    flex-direction: column;
}

.af-search-title-main {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
}

.af-search-term {
    color: #f3ffb8;
}

.af-search-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* used for artist summary line */
.af-search-artist-summary {
    color: rgba(255,255,255,0.9);
}

/* Mode toggle: All content / Artists only */
.af-search-mode-toggle {
    margin-top: 6px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    background: #181818;
    border-radius: 999px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    width: auto;
    align-self: flex-start;
}


.af-search-mode-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding: 8px 11px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.af-search-mode-btn:hover {
    color: #ffffff;
}

.af-search-mode-btn.is-active {
    background: #0d904f;
    color: #ffffff;
}

/* Keep search form tidy inside header */
.af-search-form-wrap {
    margin-top: 8px;
}

.af-search-form-wrap .search-form,
.af-search-form-wrap form {
    display: flex;
    gap: 6px;
}

.af-search-form-wrap .search-field,
.af-search-form-wrap input[type="search"] {
    flex: 1 1 auto;
    border-radius: 4px;
}

/* In case theme uses button class */
.af-search-form-wrap input[type="submit"],
.af-search-form-wrap button {
    border-radius: 4px;
    background: #0d904f;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    padding: 7px 12px;
    cursor: pointer;
}

.af-search-form-wrap input[type="submit"]:hover,
.af-search-form-wrap button:hover {
    background: #0a6f3b;
}

/* Results layout */
.af-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search card – shared by content + artists */
.af-search-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background-color: rgb(18, 18, 18);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07));
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    overflow: hidden;
}

/* Thumbnail */
.af-search-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #242424;
    display: block;
}

.af-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.af-search-thumb-placeholder {
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
}

/* For artist placeholder letter – a bit larger */
.af-search-card-artist .af-search-thumb-placeholder {
    font-size: 24px;
    font-weight: 700;
    background: #303030;
}

/* Text side */
.af-search-body {
    flex: 1 1 auto;
    min-width: 0;
}

.af-search-item-title {
    margin: 0 0 4px;
    font-size: 0.96rem;
    line-height: 1.3;
}

.af-search-item-title a {
    color: #f8f8f8;
    text-decoration: none;
}

.af-search-item-title a:hover {
    color: #0d904f;
    text-decoration: underline;
}

/* Meta line */
.af-search-meta {
    margin: 0 0 5px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 4px;
}

.af-search-sep {
    opacity: 0.7;
}

.af-search-excerpt {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}

/* Read more button */
.af-search-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    font-size: 0.78rem;
    text-decoration: none;
    border-radius: 999px;
    background: #0d904f;
    color: #fff;
    border: none;
    cursor: pointer;
}

.af-search-readmore:hover {
    background: #0a6f3b;
}

/* No results */
.af-search-no-results {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #181818;
    border: 1px solid rgba(255,255,255,0.08);
    /*color: rgba(255,255,255,0.9);*/
    color: #f3ffb8;
}

/* Bottom search form for no-results */
.af-search-form-bottom {
    margin-top: 10px;
}

/* -----------------------
   RESPONSIVE TWEAKS
   ----------------------- */

/* Mobile */
@media (max-width: 600px) {
    .af-search-card {
        flex-direction: row;
    }

    .af-search-thumb {
        flex: 0 0 78px;
        width: 78px;
        height: 78px;
    }

    .af-search-title-main {
        font-size: 1rem;
    }

    .af-search-form-wrap .search-form,
    .af-search-form-wrap form {
        flex-direction: column;
    }

    .af-search-form-wrap input[type="submit"],
    .af-search-form-wrap button {
        width: 100%;
        text-align: center;
    }
}

/* Wider screens */
@media (min-width: 900px) {
    .af-search-card {
        padding: 12px 14px;
    }

    .af-search-thumb {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }
}


/*********************************************************************************
* AFROWAP – COMMENTS
********************************************************************************/

:root{
  --gd-bg: #121212;
  --gd-card: #1F1F1F;
  --gd-card-2: #202124;
  --gd-border: #3c4043;
  --gd-text: #e8eaed;
  --gd-muted: #9aa0a6;
  --gd-accent: #00c853;
  --gd-accent-2: #34a853;
  --gd-danger: #ff6b6b;
}

/* ===== AFWCOM list / nesting (your new <ol class="afwcom-list">) ===== */
.afwcom-list{
  margin: 0 0 10px!important;
  padding: 0;
  list-style: none!important;
}
.afwcom-list .children{
  margin: 10px 0 0 18px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid rgba(255,255,255,.08);
	border-bottom-left-radius: 4px;
}

/* ===== Comment card (still mh-* because callback outputs mh classes) ===== */
	#afwcom-comments{margin-top: 24px;margin-bottom: 10px;}
	.afwcom-head {margin-bottom: 10px;}
	
.afwcom-wrap .mh-comment-body{
  margin: 0 0 12px;
  border: 1px solid var(--gd-border);
  border-radius: 4px;
  background: var(--gd-card) !important;
  overflow: hidden;
}
.afwcom-wrap .mh-comment-body p{ margin: 0; padding: 0; }

/* Top meta strip */
.afwcom-wrap .mh-comment-footer{
  margin: 0;
  background: linear-gradient(180deg, rgba(0,200,83,.12), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;

  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

/* Avatar */
.afwcom-wrap .mh-comment-gravatar{
  float: none;
  flex: 0 0 auto;
}
.afwcom-wrap .mh-comment-gravatar .avatar{
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  vertical-align: middle;
  display: block;
  position: relative;
  top: -2px;
}

/* Meta area */
.afwcom-wrap .mh-comment-meta{
  overflow: visible;
  min-width: 0;
  flex: 1 1 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.afwcom-wrap .mh-comment-meta,
.afwcom-wrap .mh-comment-meta a{
  color: var(--gd-muted);
}

/* Author + date */
.afwcom-wrap .mh-comment-meta-author{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}
.afwcom-wrap .mh-comment-meta-author .fn{
  margin-right: 6px;
}
.afwcom-wrap .mh-comment-meta-author a{
  color: var(--gd-text);
  text-decoration: none;
}
.afwcom-wrap .mh-comment-meta-author a:hover{
  color: var(--gd-accent);
  text-decoration: underline;
}
.afwcom-wrap .mh-comment-meta-date{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gd-muted);
  margin-top: 3px;
}

/* “Author” star */
.bypostauthor .afwcom-wrap .mh-comment-meta-author:after{
  font-family: 'FontAwesome';
  font-weight: 400;
  color: var(--gd-accent-2);
  content: '\f006';
  margin-left: 7px;
  font-size: 12px;
}

/* Actions */
.afwcom-wrap .mh-comment-meta-links{
  padding: 0 8px 8px;
  font-weight: 700;
  text-align: right;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: transparent;
  color: var(--gd-text);
  font-size: 13px;

  position: static;
  transform: none;
  border-radius: 0;
}
.afwcom-wrap .mh-comment-meta-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--gd-text);
  text-decoration: none;
}
.afwcom-wrap .mh-comment-meta-links a:hover{
  border-color: rgba(0,200,83,.35);
  background: rgba(0,200,83,.10);
  color: var(--gd-text);
}
.afwcom-wrap .mh-comment-meta-links .comment-edit-link{ margin-right: 0; }

.afwcom-wrap .mh-comment-meta-links .comment-reply-link:before{
  font-family: 'FontAwesome';
  font-weight: 400;
  color: var(--gd-accent);
  content: '\f112';
  margin-right: 0;
}

/* Comment content */
.afwcom-wrap .mh-comment-content{
  padding: 12px 12px 14px;
  background: var(--gd-card);
  color: var(--gd-text);
}
.afwcom-wrap .mh-comment-content p{
  margin: 0;
  line-height: 1.6;
  color: var(--gd-text);
}
.afwcom-wrap .mh-comment-content a{
  color: var(--gd-accent);
  text-decoration: none;
}
.afwcom-wrap .mh-comment-content a:hover{
  text-decoration: underline;
}

/* Info text */
.afwcom-wrap .mh-comment-info{
  color: var(--gd-accent);
  margin: 14px 0;
}

/* ===== Pagination (your new nav class) ===== */
.afwcom-pagination{
  margin: 14px 0 20px;
}
.afwcom-pagination a,
.afwcom-pagination span{
  display: inline-block;
  padding: 7px 10px;
  margin: 0 4px 6px 0;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--gd-text);
  text-decoration: none;
}
.afwcom-pagination a:hover{
  border-color: rgba(0,200,83,.35);
  background: rgba(0,200,83,.10);
}

/* ===== Pings (your new classes) ===== */
.afwcom-pinglist{ margin-bottom: 20px; padding: 0; list-style: none; }
.afwcom-pinglist .afwcom-pingitem{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.afwcom-pinglist .afwcom-pingitem:first-child{
  border-top: 1px solid rgba(255,255,255,.08);
}
.afwcom-pinglist .afwcom-pingitem .fa{
  margin-right: 12px;
  color: var(--gd-muted);
}

/* Closed notice (your new class) */
.afwcom-closed{
  color: var(--gd-muted);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
  border-radius: 4px;
}

/* =========================================================
   GOOGLE DARK COMMENT FORM
   (you set class_container => afwcom-formwrap)
   ========================================================= */
#respond.afwcom-formwrap{
  background: var(--gd-card);
  border: 1px solid var(--gd-border);
  padding: 12px 12px 14px;
  margin: 0 0 10px;
  border-radius: 4px;
}

/* Title bar */
#respond.afwcom-formwrap .comment-reply-title{
  width: 100%;
  padding: 10px 10px;
  text-align: center;
  border-radius: 4px;
  background: rgba(0,200,83,.10);
  border: 1px solid rgba(0,200,83,.20);
  box-shadow: none;
  font-weight: 800 !important;
  margin: 0 0 10px;
}
#reply-title{
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--gd-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}

#respond.afwcom-formwrap #cancel-comment-reply-link{
  font-size: 12px;
  margin-right: 0;
  margin-top: 4px;
  float: right;
  color: var(--gd-danger);
  text-decoration: none;
}
#respond.afwcom-formwrap #cancel-comment-reply-link:hover{
  text-decoration: underline;
}
#respond.afwcom-formwrap #cancel-comment-reply-link:before{
  font-family: 'FontAwesome';
  font-weight: 400;
  color: var(--gd-danger);
  content: '\f05e';
  margin-right: 6px;
}

#commentform p{ margin-bottom: 8px; }
#commentform label{
  color: var(--gd-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.comment-notes{
  margin-top: 8px;
  color: var(--gd-muted);
}
.required{ color: var(--gd-accent); }

/* Inputs / textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="tel"],
#commentform input[type="url"],
#commentform textarea{
  width: 96%;
  font-size: 13px;
  padding: 10px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--gd-card-2);
  color: var(--gd-text);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#commentform input[type="text"]:hover,
#commentform input[type="email"]:hover,
#commentform input[type="tel"]:hover,
#commentform input[type="url"]:hover,
#commentform textarea:hover{
  border-color: rgba(0,200,83,.35);
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="tel"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus{
  outline: none;
  border-color: rgba(0,200,83,.55);
  box-shadow: 0 0 0 3px rgba(0,200,83,.15);
  background: #1b1c1d;
}

#commentform textarea{
  line-height: 1.6;
  min-height: 110px;
}

/* Submit */
#commentform .form-submit{ margin: 10px 0 0; }
#commentform input[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  font-weight: 900;
  color: #0b140f;
  padding: 11px 16px;
  background: var(--gd-accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 0;
  border-radius: 4px;
  -webkit-appearance: none;
  transition: transform .08s ease, filter .2s ease;
}
#commentform input[type="submit"]:hover{ filter: brightness(1.05); }
#commentform input[type="submit"]:active{ transform: translateY(1px); }

/* Mobile */
@media (max-width: 600px){
  .afwcom-list .children{
    margin-left: 12px;
    padding-left: 10px;
  }
  .afwcom-wrap .mh-comment-footer{
    padding: 10px 10px;
    gap: 10px;
  }
  .afwcom-wrap .mh-comment-gravatar .avatar{
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .afwcom-wrap .mh-comment-meta-links a{
    padding: 6px 9px;
  }
}

/* =========================================================
   AFWCOM FORM POLISH (matches your real markup)
   ========================================================= */
/* Form wrapper already set (#respond.afwcom-formwrap) — keep it.
   Now style the inside using custom classes. */

#respond.afwcom-formwrap{
  color: var(--gd-text);
}

/* Title */
#respond.afwcom-formwrap .afwcom-formtitle{
  margin: 0 0 10px;
  color: var(--gd-text);
  font-weight: 900;
  letter-spacing: .03em;
}

/* Notes */
#respond.afwcom-formwrap .afwcom-notes{
  margin: 0 0 12px;
  color: var(--gd-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Cancel reply wrapper (you added before/after) */
#respond.afwcom-formwrap .afwcom-cancel{
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
#respond.afwcom-formwrap .afwcom-cancel a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,107,107,.35);
  background: rgba(255,107,107,.10);
  color: var(--gd-danger);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}
#respond.afwcom-formwrap .afwcom-cancel a:hover{
  border-color: rgba(255,107,107,.55);
  background: rgba(255,107,107,.14);
  text-decoration: none;
}

/* Grid */
#respond.afwcom-formwrap .afwcom-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 12px;
}

/* Fields */
#respond.afwcom-formwrap .afwcom-field{
  margin: 0;
}
#respond.afwcom-formwrap .afwcom-label{
  display: block;
  margin: 7px 0 0;
  color: var(--gd-muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#respond.afwcom-formwrap .afwcom-req{
  color: var(--gd-danger);
}

/* Inputs / textarea (your real classes) */
#respond.afwcom-formwrap .afwcom-input,
#respond.afwcom-formwrap .afwcom-textarea{
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--gd-card-2);
  color: var(--gd-text);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

#respond.afwcom-formwrap .afwcom-input:hover,
#respond.afwcom-formwrap .afwcom-textarea:hover{
  border-color: rgba(0,200,83,.35);
}

#respond.afwcom-formwrap .afwcom-input:focus,
#respond.afwcom-formwrap .afwcom-textarea:focus{
  outline: none;
  border-color: rgba(0,200,83,.60);
  box-shadow: 0 0 0 3px rgba(0,200,83,.18);
  background: #1b1c1d;
}

#respond.afwcom-formwrap .afwcom-textarea{
  line-height: 1.6;
  min-height: 140px; /* your textarea should feel roomy */
  resize: vertical;
}

/* WordPress extra lines: logged in, allowed tags, cookies consent */
#respond.afwcom-formwrap .logged-in-as,
#respond.afwcom-formwrap .comment-notes,
#respond.afwcom-formwrap .form-allowed-tags,
#respond.afwcom-formwrap .comment-form-cookies-consent{
  margin: 8px 0 0;
  color: var(--gd-muted);
  font-size: 12px;
  line-height: 1.5;
}
#respond.afwcom-formwrap .logged-in-as a{
  color: var(--gd-text);
  text-decoration: none;
}
#respond.afwcom-formwrap .logged-in-as a:hover{
  color: var(--gd-accent);
  text-decoration: underline;
}
#respond.afwcom-formwrap .form-allowed-tags code{
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.80);
  overflow-x: auto;
}

/* Cookies checkbox line */
#respond.afwcom-formwrap .comment-form-cookies-consent{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#respond.afwcom-formwrap .comment-form-cookies-consent input{
  margin-top: 3px;
}

/* Submit row */
#respond.afwcom-formwrap .form-submit{
  margin: 12px 0 0;
  display: flex;
  justify-content: flex-end;
}

/* REAL submit button (you output <button class="afwcom-btn">) */
#respond.afwcom-formwrap .afwcom-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;

  background: var(--gd-accent);
  color: #0b140f;

  border: 0;
  cursor: pointer;
  -webkit-appearance: none;

  transition: transform .08s ease, filter .2s ease;
}
#respond.afwcom-formwrap .afwcom-btn:hover{
  filter: brightness(1.06);
  box-shadow: 0 14px 26px rgba(0,0,0,.45);
}
#respond.afwcom-formwrap .afwcom-btn:active{
  transform: translateY(1px);
}

/* If WP adds disabled state */
#respond.afwcom-formwrap .afwcom-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

/* Desktop: your grid becomes 3 columns already in your earlier CSS,
   but ensure it still looks neat */
@media (min-width: 760px){
  #respond.afwcom-formwrap .afwcom-grid{
    grid-template-columns: 1.2fr 1.2fr 1fr;
    align-items: end;
  }
  #respond.afwcom-formwrap .form-submit{
    justify-content: flex-end;
  }
}

/* Mobile: keep button full width if you like */
@media (max-width: 520px){
  #respond.afwcom-formwrap .form-submit{
    justify-content: stretch;
  }
  #respond.afwcom-formwrap .afwcom-btn{
    width: 100%;
    min-width: 0;
  }
}


/*********************************************************************************
* AFROWAP – 404 PAGE
********************************************************************************/

.af-error-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.af-error-card {
    max-width: 640px;
    width: 100%;
    padding: 22px 18px 24px;
    border-radius: 14px;

    background: #181818;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.6),
        0 18px 38px rgba(0,0,0,0.75);

    text-align: center;
    color: rgba(255,255,255,0.9);
}

.af-error-icon {
    display: inline-flex;
    padding: 10px 18px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 999px;
    background: rgba(13,144,79,0.12);
    border: 1px solid rgba(13,144,79,0.8);
    color: #0d904f;
    margin-bottom: 10px;
}

.af-error-title {
    margin: 2px 0 8px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
}

.af-error-text {
    margin: 0 0 14px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
}

.af-error-actions {
    margin: 6px 0 14px;
}

.af-error-btn-primary {
    display: inline-flex;
    padding: 7px 16px;
    border-radius: 999px;
    background: #0d904f;
    border: 1px solid #0d904f;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.15s ease,
        transform 0.08s ease;
}

.af-error-btn-primary:hover {
    background: #0aa060;
    transform: translateY(-1px);
}

.af-error-search-block {
    margin-top: 12px;
}

.af-error-search-heading {
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/*****************************************
 * AFROWAP – EMPTY / NOTHING FOUND PAGE
 *****************************************/

.af-empty-wrap {
    max-width: 720px;
    margin: 26px auto 40px;
    padding: 0 12px;
}

.af-empty-card {
    padding: 20px 18px 22px;
    border-radius: 14px;

    background: #181818;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 3px 10px rgba(0,0,0,0.55),
        0 12px 26px rgba(0,0,0,0.7);

    text-align: center;
    color: rgba(255,255,255,0.9);
}

.af-empty-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.af-empty-title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
}

.af-empty-text {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
}

.af-empty-btn-secondary {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.32);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.08s ease;
}

.af-empty-btn-secondary:hover {
    color: #0d904f;
    border-color: #0d904f;
    transform: translateY(-1px);
}

/*****************************************
 * UNIVERSAL AFROWAP SEARCH FORM
 *****************************************/

.af-search-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
}

.af-search-field {
    all: unset;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #101010;
    border: 1px solid rgba(255,255,255,0.16);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.af-search-field::placeholder {
    color: rgba(255,255,255,0.45);
}

.af-search-field:focus {
    border-color: #0d904f;
    background: #121212;
    box-shadow: 0 0 0 1px rgba(13,144,79,0.55);
}


/*********************************************************************************
 * AFROWAP – (R FOOTER)
 * Dark card, subtle glow, grouped links
********************************************************************************/

.af-footer {
    background: #050505;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    border-radius: 4px;
    transition: box-shadow 300ms 
cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner "card" shell */
.af-footer-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 16px 14px;
    border-radius: 14px;
}

/* =======================
   TOP SECTION
======================= */

.af-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Brand block */
.af-footer-brand-block {
    flex: 1 1 260px;
    min-width: 220px;
}

/* Logo row */
.af-footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.af-footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.af-footer-chip {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    background: #2c303a;
    border: 1px solid #1d1e22;
    color: rgba(255, 255, 255, 0.75);
}

.af-footer-about {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.76);
}

/* Links block */
.af-footer-links-block {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}

/* Each group */
.af-footer-group {
    min-width: 120px;
}

.af-footer-heading {
    margin: 0 0 6px;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f3ffb8;
}

.af-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.af-footer-list li {
    margin: 3px 0;
}

.af-footer-list a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.84rem;
    position: relative;
    padding-bottom: 1px;
    transition: color 0.15s ease;
}

.af-footer-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #0d904f;
    transition: width 0.15s ease;
}

.af-footer-list a:hover {
    color: #0d904f;
}

.af-footer-list a:hover::after {
    width: 100%;
}

/* =======================
   BOTTOM SECTION
======================= */

.af-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.af-footer-copy {
    margin: 0;
}

.af-footer-made {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.48);
    letter-spacing: 0.03em;
}

/* =======================
   MOBILE (0–768px)
======================= */

@media (max-width: 768px) {

    .af-footer-shell {
        padding: 14px 12px 12px;
        border-radius: 12px;
        min-height: auto;
    }

    /* Brand stays on top */
    .af-footer-top {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    /* Override desktop flex + min-width that cause gaps */
    .af-footer-brand-block,
    .af-footer-links-block {
        flex: 0 0 100%;
        min-width: 0;
    }

    /* SITE left, LEGAL right in one row */
    .af-footer-links-block {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        margin-top: 6px;
    }

    .af-footer-group {
        flex: 1 1 0;
    }

    /* Left group (SITE) */
    .af-footer-group:first-child {
        text-align: left;
    }

    /* Right group (LEGAL) */
    .af-footer-group:last-child {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    /* Footer bottom centered */
    .af-footer-bottom {
        margin-top: 10px;
        padding-top: 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
    }

    .af-footer-copy,
    .af-footer-made {
        font-size: 0.72rem;
    }
}