/* Tách từ page-actors.php (trước đây nằm inline trong 2 khối <style>) */

/* Larger actor items for the actors list (desktop first, responsive below) */
.actor-item {
    width: 200px;
    text-align: center;
}
/* Make actor-item usable as an anchor; anchors will inherit this class */
a.actor-item, .actor-item {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.actor-item:hover, .actor-item:hover {
    transform: translateY(-4px);
}
.actor-item .actor-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}
.actor-item .actor-name {
    margin-top: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    word-break: break-word;
}
@media (max-width: 640px) {
    .actor-item { width: 45%; }
    .actor-item .actor-avatar { width: 110px; height: 110px; }
}
@media (max-width: 420px) {
    .actor-item { width: 48%; }
    .actor-item .actor-avatar { width: 90px; height: 90px; }
}
/* container styles (desktop default) */
.actors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Mobile: switch to a strict 2-column grid for small screens */
@media (max-width: 640px) {
    .actors-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        justify-items: center;
        align-items: start;
    }
    .actor-item {
        width: auto !important;
        display: block;
        text-align: center;
    }
    .actor-item .actor-avatar {
        width: 140px;
        height: 140px;
    }
    .actor-item .actor-name { font-size: 0.98rem; }
}
.actor-item .actor-post-count {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 4px;
}

.search-bar-wrapper {
    display: inline-flex;
    align-items: center;
    background: #222;
    border-radius: 12px;
    padding: 0 16px;
    width: 400px;
    max-width: 90%;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.search-bar-wrapper:focus-within {
    border-color: #e5391b;
}
.search-icon {
    color: #aaa;
    font-size: 1.3em;
    margin-right: 8px;
}
.search-bar-wrapper input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.1em;
    padding: 12px 0;
    width: 100%;
}
.search-bar-wrapper input[type="text"]::placeholder {
    color: #aaa;
    opacity: 1;
}
.actors-pagination {
    text-align: center;
    margin: 40px 0;
}

/* NOTE: pagination visual styling is provided by the theme's global
   `.page-numbers` rules in `style.css`. We keep only a small wrapper
   here so paginate_links output inherits the existing styles and stays
   consistent across the site. */
