/* ================================================================
   css-listing-others-EN.css
   list pages and other general site pages: film/series lists, top 1000,
   actor/director profile/list, coming soon, search. Each is its own
   section with its own classes (movies-*, top250-*, profile-*, actor-*,
   coming-*, search-*) - none depend on each other, just grouped into one
   file to reduce file count. Depends on css-body.css (inherits
   .imdb-card etc), so must load after it.
   ================================================================ */
/* ================================================================
   film list page (pages/film/index.php)
   ================================================================ */
.movies-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

.movies-page-header {
    /* body already reserves space for the fixed site header
       (padding-top: 72px / 56px on mobile) - this only needs the site's
       normal top breathing room, same as the other list pages, not an
       extra manual offset on top of that. */
    margin: 20px 0 10px;
    padding: 0 2px;
}
.movies-page-header h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.movies-page-header h1 i {
    color: var(--accent-text);
}

/* ===== filters ===== */
.movies-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 28px;
    padding: 16px 0;
    border-top: 1px solid var(--on-surface-06);
    border-bottom: 1px solid var(--on-surface-06);
    width: 100%;
}
.movies-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--on-surface-06);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    color: #ddd;
    transition: 0.2s;
    white-space: nowrap;
}
.movies-filter-toggle:hover {
    background: var(--on-surface-12);
    color: #fff;
}
.movies-filter-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}
.movies-filter-toggle.open .arrow {
    transform: rotate(180deg);
}

.movies-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.movies-filter-select {
    background: var(--bg-elevated-2);
    border: 1px solid var(--border-subtle);
    color: #ddd;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
    min-width: 130px;
    flex: 1 0 auto;
    max-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.movies-filter-select:focus {
    border-color: var(--accent-text);
}
.movies-filter-select option {
    background: var(--bg-elevated-2);
}
.movies-filter-link {
    padding: 10px 22px;
    border-radius: 40px;
    background: var(--on-surface-04);
    color: #bbb;
    font-size: 13px;
    transition: 0.2s;
    white-space: nowrap;
}
.movies-filter-link:hover {
    background: var(--on-surface-10);
    color: #fff;
}
/* active state - for the movie/series type buttons that appear as plain
   links (not a dropdown) on the genre/country/language/year pages */
.movies-filter-link.active {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}
.movies-filter-link.active:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
}

@media (max-width: 767px) {
    .movies-filter-toggle {
        display: flex;
    }
    .movies-filter-grid {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        padding-top: 12px;
    }
    .movies-filter-grid.open {
        display: flex;
    }
    .movies-filter-select {
        min-width: 100px;
        max-width: 100%;
        flex: 1 1 45%;
        padding: 8px 14px;
        font-size: 12px;
    }
    .movies-filter-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    .movies-filter-bar {
        padding: 12px 0;
        margin: 10px 0 20px;
    }
}

/* ===== film list ===== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
@media (max-width: 767px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .movies-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.movies-grid .imdb-card {
    aspect-ratio: 2 / 3;
}

@media (max-width: 767px) {
    .movies-grid .imdb-card .imdb-card-title {
        font-size: 12px;
        min-height: 28px;
    }
    .movies-grid .imdb-card .imdb-card-meta {
        padding: 20px 6px 8px;
    }
    .movies-grid .imdb-card .imdb-card-rating {
        width: 28px;
        height: 28px;
        top: 4px;
        left: 4px;
    }
    .movies-grid .imdb-card .imdb-card-rating .rating-text {
        font-size: 7px;
    }
    .movies-grid .imdb-card .imdb-card-rating .progress-circle,
    .movies-grid .imdb-card .imdb-card-rating .bg-circle {
        stroke-width: 2;
    }
}

.movies-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-30);
}
.movies-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--on-surface-10);
}

/* ===== pagination ===== */
.movies-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0 40px;
}
.movies-pagination a,
.movies-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--on-surface-04);
    color: var(--on-surface-60);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--on-surface-06);
}
.movies-pagination a:hover {
    background: rgba(208, 27, 27, 0.12);
    border-color: rgba(208, 27, 27, 0.2);
    color: var(--accent-text);
}
.movies-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.movies-pagination .page-info {
    background: transparent;
    border: none;
    color: var(--on-surface-30);
    font-size: 13px;
}

@media (max-width: 767px) {
    .movies-pagination a,
    .movies-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }
}


/* ================================================================
   top 1000 page (pages/1000/index.php). top250-* classes are kept
   separate from movies-*/series-* since this page has a different
   structure (rank badge on the card, different filters).
   ================================================================ */
.top250-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

.top250-page-header {
    /* body already reserves space for the fixed site header - same
       normal top spacing as the other list pages (see the note on
       .movies-page-header above). */
    margin: 20px 0 10px;
    padding: 0 2px;
}
.top250-page-header h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.top250-page-header h1 i {
    color: var(--accent-text);
}

/* ===== filters ===== */
.top250-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 28px;
    padding: 16px 0;
    border-top: 1px solid var(--on-surface-06);
    border-bottom: 1px solid var(--on-surface-06);
    width: 100%;
}
.top250-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--on-surface-06);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    color: #ddd;
    transition: 0.2s;
    white-space: nowrap;
}
.top250-filter-toggle:hover {
    background: var(--on-surface-12);
    color: #fff;
}
.top250-filter-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}
.top250-filter-toggle.open .arrow {
    transform: rotate(180deg);
}

.top250-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.top250-filter-select {
    background: var(--bg-elevated-2);
    border: 1px solid var(--border-subtle);
    color: #ddd;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
    min-width: 130px;
    flex: 1 0 auto;
    max-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.top250-filter-select:focus {
    border-color: var(--accent-text);
}
.top250-filter-select option {
    background: var(--bg-elevated-2);
}
.top250-filter-link {
    padding: 10px 22px;
    border-radius: 40px;
    background: var(--on-surface-04);
    color: #bbb;
    font-size: 13px;
    transition: 0.2s;
    white-space: nowrap;
}
.top250-filter-link:hover {
    background: var(--on-surface-10);
    color: #fff;
}

@media (max-width: 767px) {
    .top250-filter-toggle {
        display: flex;
    }
    .top250-filter-grid {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        padding-top: 12px;
    }
    .top250-filter-grid.open {
        display: flex;
    }
    .top250-filter-select {
        min-width: 100px;
        max-width: 100%;
        flex: 1 1 45%;
        padding: 8px 14px;
        font-size: 12px;
    }
    .top250-filter-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    .top250-filter-bar {
        padding: 12px 0;
        margin: 10px 0 20px;
    }
}

/* ===== item list ===== */
.top250-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
@media (max-width: 767px) {
    .top250-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .top250-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .top250-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.top250-grid .imdb-card {
    aspect-ratio: 2 / 3;
}

@media (max-width: 767px) {
    .top250-grid .imdb-card .imdb-card-title {
        font-size: 12px;
        min-height: 28px;
    }
    .top250-grid .imdb-card .imdb-card-meta {
        padding: 20px 6px 8px;
    }
    .top250-grid .imdb-card .imdb-card-rating {
        width: 28px;
        height: 28px;
        top: 4px;
        left: 4px;
    }
    .top250-grid .imdb-card .imdb-card-rating .rating-text {
        font-size: 7px;
    }
    .top250-grid .imdb-card .imdb-card-rating .progress-circle,
    .top250-grid .imdb-card .imdb-card-rating .bg-circle {
        stroke-width: 2;
    }
}

.top250-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-30);
}
.top250-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--on-surface-10);
}

/* ===== circular Top 250 rank badge on the card ===== */
.imdb-card-top250-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 2px solid var(--on-surface-10);
}
.imdb-card-top250-rank svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.imdb-card-top250-rank .bg-circle {
    fill: none;
    stroke: var(--on-surface-15);
    stroke-width: 3;
}
.imdb-card-top250-rank .progress-circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}
.imdb-card-top250-rank .rank-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1;
}
@media (max-width: 767px) {
    .imdb-card-top250-rank {
        width: 34px;
        height: 34px;
        top: 5px;
        right: 5px;
    }
    .imdb-card-top250-rank .rank-text {
        font-size: 12px;
    }
    .imdb-card-top250-rank .bg-circle,
    .imdb-card-top250-rank .progress-circle {
        stroke-width: 2.5;
    }
}

/* ===== pagination ===== */
.top250-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0 40px;
}
.top250-pagination a,
.top250-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--on-surface-04);
    color: var(--on-surface-60);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--on-surface-06);
}
.top250-pagination a:hover {
    background: rgba(208, 27, 27, 0.12);
    border-color: rgba(208, 27, 27, 0.2);
    color: var(--accent-text);
}
.top250-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.top250-pagination .page-info {
    background: transparent;
    border: none;
    color: var(--on-surface-30);
    font-size: 13px;
}

@media (max-width: 767px) {
    .top250-pagination a,
    .top250-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }
}

/* ================================================================
   actor/director profile page (app/views/person-profile-render.php)
   ================================================================ */
.profile-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== profile header ===== */
.profile-header {
    display: flex;
    gap: 30px;
    margin: 20px 0 30px 0;
    padding: 24px;
    background: var(--on-surface-04);
    border-radius: 16px;
    border: 1px solid var(--on-surface-06);
}
.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--on-surface-05);
    border: 3px solid var(--accent);
}
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.profile-name-en {
    font-size: 1rem;
    color: var(--on-surface-40);
    margin-bottom: 6px;
}
.profile-type {
    display: inline-block;
    padding: 2px 14px;
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    align-self: flex-start;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--on-surface-40);
}
.profile-meta i {
    color: var(--accent-text);
    margin-left: 4px;
}

/* ===== biography ===== */
.profile-bio {
    margin: 12px 0 0 0;
    padding: 16px 20px;
    background: var(--on-surface-04);
    border-radius: 12px;
    border: 1px solid var(--on-surface-06);
}
.profile-bio p {
    margin: 0;
    color: var(--on-surface-60);
    line-height: 1.8;
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.profile-bio p.expanded {
    max-height: 1000px;
}
.profile-bio .bio-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--accent-text);
    font-size: 13px;
    cursor: pointer;
}
.profile-bio .bio-toggle-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}
.profile-bio .bio-toggle-btn i.rotated {
    transform: rotate(180deg);
}

/* ===== tabs ===== */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 16px 0;
    border-bottom: 1px solid var(--on-surface-06);
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.profile-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--on-surface-06);
    color: var(--on-surface-60);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.profile-tab:hover { border-color: var(--accent-text); color: var(--accent-text); }
.profile-tab.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-text); }
.profile-tab .badge {
    background: var(--on-surface-06);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 4px;
}
.profile-tab.active .badge { background: rgba(0,0,0,0.15); }

/* ===== sorting ===== */
.profile-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.profile-sort-bar label {
    font-size: 0.8rem;
    color: var(--on-surface-40);
}
.profile-sort-bar select {
    padding: 6px 12px;
    background: var(--on-surface-04);
    border: 1px solid var(--on-surface-06);
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}
.profile-sort-bar select:focus {
    outline: none;
    border-color: var(--accent-text);
}

/* ===== filmography cards ===== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.profile-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elevated-2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    aspect-ratio: 2 / 3;
}
.profile-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
}
.profile-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    overflow: hidden;
}
.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.profile-card:hover .profile-card-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}
.profile-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.6;
}
.profile-card:hover .profile-card-image::after { opacity: 0.3; }

/* ===== profile rating ===== */
.profile-card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 2px solid var(--on-surface-10);
}
.profile-card-rating {
    left: auto;
    right: 8px;
}
@media (max-width: 767px) {
    .profile-card-rating {
        width: 34px;
        height: 34px;
        top: 5px;
        left: 5px;
    }
    .profile-card-rating {
        left: auto;
        right: 5px;
    }
}
.profile-card-rating svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.profile-card-rating .bg-circle {
    fill: none;
    stroke: var(--on-surface-15);
    stroke-width: 3;
}
.profile-card-rating .progress-circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}
.profile-card-rating .rating-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1;
}
@media (max-width: 767px) {
    .profile-card-rating .rating-text { font-size: 8px; }
}

.profile-card-meta {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 12px 14px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}
.profile-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 40px;
}
@media (max-width: 767px) {
    .profile-card-meta { padding: 25px 8px 10px; }
    .profile-card-title { font-size: 13px; min-height: 34px; }
}

.profile-card-year {
    position: absolute;
    bottom: 50px;
    left: 8px;
    z-index: 3;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--on-surface-80);
    border: 1px solid var(--on-surface-08);
}
.profile-card-year {
    left: auto;
    right: 8px;
}
@media (max-width: 767px) {
    .profile-card-year {
        font-size: 9px;
        padding: 1px 6px;
        bottom: 40px;
        left: 4px;
    }
    .profile-card-year {
        left: auto;
        right: 4px;
    }
}

.profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--on-surface-30);
}
.profile-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

/* ===== pagination ===== */
.profile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 40px;
}
.profile-pagination a,
.profile-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--on-surface-04);
    color: var(--on-surface-60);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--on-surface-06);
    text-decoration: none;
}
.profile-pagination a:hover {
    background: rgba(208, 27, 27, 0.12);
    border-color: rgba(208, 27, 27, 0.2);
    color: var(--accent-text);
}
.profile-pagination .active {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent-text);
}
.profile-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1200px) { .profile-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) {
    .profile-grid { grid-template-columns: repeat(4, 1fr); }
    .profile-header { flex-direction: column; align-items: center; text-align: center; padding: 25px; margin-top: 49px; }
    .profile-photo { width: 150px; height: 150px; }
    .profile-name { font-size: 1.6rem; }
    .profile-type { align-self: center; }
}
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 12px; }
    .profile-tab { font-size: 0.75rem; padding: 6px 14px; }
    .profile-header { padding: 16px; gap: 16px; }
    .profile-photo { width: 120px; height: 120px; }
    .profile-name { font-size: 1.3rem; }
}
@media (max-width: 576px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .profile-card-title { font-size: 12px; min-height: 28px; }
    .profile-header { padding: 12px; }
    .profile-photo { width: 100px; height: 100px; }
    .profile-card-rating { width: 28px; height: 28px; top: 4px; left: 4px; }
    .profile-card-rating .rating-text { font-size: 7px; }
    .profile-card-rating .progress-circle,
    .profile-card-rating .bg-circle { stroke-width: 2; }
    .profile-card-meta { padding: 20px 6px 8px; }
}

/* ================================================================
   actor/director list page (pages/actor/index.php)
   ================================================================ */
.actor-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

.actor-page-header {
    margin: 20px 0 10px;
    padding: 0 2px;
}
.actor-page-header h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.actor-page-header h1 i {
    color: var(--accent-text);
}

/* ===== tabs ===== */
.actor-tabs {
    display: flex;
    gap: 10px;
    margin: 12px 0 20px 0;
    border-bottom: 1px solid var(--on-surface-06);
    padding-bottom: 8px;
}
.actor-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--on-surface-06);
    color: var(--on-surface-60);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.actor-tab:hover { border-color: var(--accent-text); color: var(--accent-text); }
.actor-tab.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-text); }
.actor-tab i { margin-left: 6px; }

/* ===== search box ===== */
.actor-search-box {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    background: var(--on-surface-04);
    border: 1px solid var(--on-surface-06);
    border-radius: 10px;
    padding: 6px 8px;
    align-items: center;
}
.actor-search-box input {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}
.actor-search-box input::placeholder { color: var(--on-surface-40); }
.actor-search-box button {
    padding: 8px 20px;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.actor-search-box button:hover { background: var(--accent-hover); }

/* ===== active filter chips ===== */
.actor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px 0;
}
.actor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--on-surface-06);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--on-surface-60);
}
.actor-chip a { color: var(--on-surface-60); text-decoration: none; margin-right: 4px; }
.actor-chip a:hover { color: var(--accent-text); }
.actor-chip-clear { background: var(--accent); color: var(--accent-contrast); }
.actor-chip-clear a { color: var(--accent-contrast); }

/* ===== people cards ===== */
.actor-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 30px;
}

.actor-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elevated-2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    aspect-ratio: 1 / 1;
}

.actor-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
}

.actor-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    overflow: hidden;
}

.actor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.actor-card:hover .actor-card-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.actor-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.6;
}

.actor-card:hover .actor-card-image::after {
    opacity: 0.3;
}

.actor-card-meta {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 12px 14px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}

.actor-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 40px;
}

.actor-card-title-fa {
    font-size: 12px;
    color: var(--on-surface-50);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .actor-card-meta {
        padding: 25px 8px 10px;
    }
    .actor-card-title {
        font-size: 13px;
        min-height: 34px;
    }
    .actor-card-title-fa {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .actor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .actor-tab {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (max-width: 576px) {
    .actor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .actor-search-box {
        padding: 4px 6px;
    }
    .actor-search-box input {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .actor-search-box button {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .actor-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

.actor-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-30);
}
.actor-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--on-surface-10);
}

.actor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}
.actor-pagination a,
.actor-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--on-surface-04);
    color: var(--on-surface-60);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--on-surface-06);
    text-decoration: none;
}
.actor-pagination a:hover {
    background: rgba(208, 27, 27, 0.12);
    border-color: rgba(208, 27, 27, 0.2);
    color: var(--accent-text);
}
.actor-pagination .active {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent-text);
}
.actor-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================================
   "browse by country/age" links at the top of the actor list page, the
   "Iranian only" filter, and the standalone browse-by-age page.
   ================================================================ */
.actor-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}
.actor-browse-countries-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 4px;
    transition: color 0.2s ease;
}
.actor-browse-countries-link:hover {
    color: var(--accent-text);
}
.actor-browse-countries-link i {
    color: var(--accent-text);
}

.actor-filter-row {
    display: flex;
    align-items: center;
    margin: 14px 0 0;
}
.actor-iranian-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    user-select: none;
}
.actor-iranian-filter input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 38px;
    height: 22px;
    border-radius: 20px;
    background: var(--bg-elevated-2);
    border: 1px solid var(--border-subtle);
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}
.actor-iranian-filter input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: transform 0.25s ease, background 0.25s ease;
}
.actor-iranian-filter input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent-text);
}
.actor-iranian-filter input[type="checkbox"]:checked::before {
    transform: translateX(-16px);
    background: #fff;
}
.actor-iranian-filter span {
    font-weight: 500;
}

/* ===== country list page (pages/actor/countries/index.php) ===== */
.country-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 30px;
}
.country-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
}
.country-card:hover {
    border-color: var(--accent-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}
.country-card i {
    color: var(--accent-text);
    font-size: 0.9rem;
    width: 20px;
    flex-shrink: 0;
}
.country-card .name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.country-card .count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated-2);
    padding: 1px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
@media (max-width: 1200px) { .country-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) { .country-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
    .country-grid { grid-template-columns: repeat(3, 1fr); }
    .country-card { font-size: 0.75rem; padding: 8px 10px; }
}
@media (max-width: 576px) {
    .country-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .country-card { font-size: 0.7rem; padding: 6px 10px; }
}

/* ===== browse-by-age page (pages/actor/by-age/index.php) ===== */
.actor-age-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.actor-age-back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.actor-age-back-link:hover { color: var(--accent-text); }

.actor-age-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 24px 0;
}
.actor-age-chip {
    padding: 9px 22px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.actor-age-chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.actor-age-chip.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-text); }

.actor-age-alive-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    margin-inline-start: auto;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: color 0.2s ease;
}
.actor-age-alive-toggle:hover { color: var(--text-primary); }
.actor-age-alive-toggle i { font-size: 1.1rem; color: var(--text-muted); transition: color 0.2s ease; }
.actor-age-alive-toggle i.fa-toggle-on { color: var(--accent-text); }

.actor-card-age {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}



/* ================================================================
   "coming soon" page (pages/coming-soon/index.php). Note:
   imdb-card-rating and imdb-card-genres/genre are already defined
   earlier in this file (shared with other pages) and aren't redefined
   here to avoid conflicts.
   ================================================================ */
.coming-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

.coming-page-header {
    margin: 20px 0 10px;
    padding: 0 2px;
}
.coming-page-header h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.coming-page-header h1 i {
    color: var(--accent-text);
}

/* ===== filters ===== */
.coming-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 28px;
    padding: 16px 0;
    border-top: 1px solid var(--on-surface-06);
    border-bottom: 1px solid var(--on-surface-06);
    width: 100%;
}
.coming-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--on-surface-06);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    color: #ddd;
    transition: 0.2s;
    white-space: nowrap;
}
.coming-filter-toggle:hover {
    background: var(--on-surface-12);
    color: #fff;
}
.coming-filter-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}
.coming-filter-toggle.open .arrow {
    transform: rotate(180deg);
}

.coming-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.coming-filter-select {
    background: var(--bg-elevated-2);
    border: 1px solid var(--border-subtle);
    color: #ddd;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
    min-width: 130px;
    flex: 1 0 auto;
    max-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.coming-filter-select:focus {
    border-color: var(--accent-text);
}
.coming-filter-select option {
    background: var(--bg-elevated-2);
}
.coming-filter-link {
    padding: 10px 22px;
    border-radius: 40px;
    background: var(--on-surface-04);
    color: #bbb;
    font-size: 13px;
    transition: 0.2s;
    white-space: nowrap;
}
.coming-filter-link:hover {
    background: var(--on-surface-10);
    color: #fff;
}

@media (max-width: 767px) {
    .coming-filter-toggle {
        display: flex;
    }
    .coming-filter-grid {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        padding-top: 12px;
    }
    .coming-filter-grid.open {
        display: flex;
    }
    .coming-filter-select {
        min-width: 100px;
        max-width: 100%;
        flex: 1 1 45%;
        padding: 8px 14px;
        font-size: 12px;
    }
    .coming-filter-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    .coming-filter-bar {
        padding: 12px 0;
        margin: 10px 0 20px;
    }
}

/* ===== coming-soon date badge - Jalali date via jdate ===== */
.imdb-card-badge-coming {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(46, 204, 113, 0.95) 0%, rgba(46, 204, 113, 0.7) 60%, transparent 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 30px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.imdb-card-badge-coming i {
    font-size: 11px;
    opacity: 0.8;
}
@media (max-width: 767px) {
    .imdb-card-badge-coming {
        font-size: 9px;
        padding: 25px 6px 8px;
    }
    .imdb-card-badge-coming i {
        font-size: 9px;
    }
}

/* ===== item list ===== */
.coming-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.coming-grid .imdb-card {
    aspect-ratio: 2 / 3;
}
@media (max-width: 767px) {
    .coming-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .coming-grid .imdb-card .imdb-card-title {
        font-size: 12px;
        min-height: 28px;
    }
    .coming-grid .imdb-card .imdb-card-meta {
        padding: 20px 6px 8px;
    }
    .coming-grid .imdb-card .imdb-card-rating {
        width: 28px;
        height: 28px;
        top: 4px;
        left: 4px;
    }
    .coming-grid .imdb-card .imdb-card-rating .rating-text {
        font-size: 7px;
    }
    .coming-grid .imdb-card .imdb-card-rating .progress-circle,
    .coming-grid .imdb-card .imdb-card-rating .bg-circle {
        stroke-width: 2;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .coming-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .coming-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.coming-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-30);
}
.coming-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--on-surface-10);
}

/* ===== pagination ===== */
.coming-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0 40px;
}
.coming-pagination a,
.coming-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--on-surface-04);
    color: var(--on-surface-60);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--on-surface-06);
}
.coming-pagination a:hover {
    background: rgba(208, 27, 27, 0.12);
    border-color: rgba(208, 27, 27, 0.2);
    color: var(--accent-text);
}
.coming-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.coming-pagination .page-info {
    background: transparent;
    border: none;
    color: var(--on-surface-30);
    font-size: 13px;
}

@media (max-width: 767px) {
    .coming-pagination a,
    .coming-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }
}

/* ================================================================
   search page (pages/search/index.php). Shared classes (imdb-card,
   imdb-card-rating, imdb-section-header, etc) are already defined
   earlier in this file and aren't redefined here.
   ================================================================ */
.search-page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 16px;
}

.search-page-header {
    margin: 20px 0 10px;
    padding: 0 2px;
}
.search-page-header h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-page-header h1 i {
    color: var(--accent-text);
}

/* ===== search box ===== */
.search-box-wrap {
    margin: 20px 0 10px;
}
.search-box {
    display: flex;
    gap: 10px;
    background: var(--on-surface-04);
    border: 1px solid var(--on-surface-06);
    border-radius: 10px;
    padding: 8px;
    align-items: center;
}
.search-box input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    min-width: 150px;
}
.search-box input::placeholder { color: var(--on-surface-40); }
.search-box button {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-box button:hover { background: var(--accent-hover); }

/* ===== tabs ===== */
.search-tabs {
    display: flex;
    gap: 10px;
    margin: 12px 0 20px 0;
    border-bottom: 1px solid var(--on-surface-06);
    padding-bottom: 8px;
}
.search-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--on-surface-06);
    color: var(--on-surface-60);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.search-tab:hover { border-color: var(--accent-text); color: var(--accent-text); }
.search-tab.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent-text); }
.search-tab i { margin-left: 6px; }

/* ===== type badge (film/series/actor) on the card ===== */
.imdb-card-badge-type {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    border: 1px solid var(--on-surface-10);
}
.imdb-card-badge-type {
    right: auto;
    left: 8px;
}
.imdb-card-badge-type i {
    margin-left: 3px;
    font-size: 8px;
}
@media (max-width: 767px) {
    .imdb-card-badge-type {
        font-size: 8px;
        padding: 2px 8px;
        top: 4px;
        right: 4px;
    }
    .imdb-card-badge-type {
        right: auto;
        left: 4px;
    }
}

.imdb-card-badge-year {
    position: absolute;
    bottom: 50px;
    left: 8px;
    z-index: 3;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--on-surface-80);
    border: 1px solid var(--on-surface-08);
}
.imdb-card-badge-year {
    left: auto;
    right: 8px;
}
@media (max-width: 767px) {
    .imdb-card-badge-year {
        font-size: 9px;
        padding: 1px 6px;
        bottom: 40px;
        left: 4px;
    }
    .imdb-card-badge-year {
        left: auto;
        right: 4px;
    }
}

/* ===== result cards list ===== */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.search-results-grid .imdb-card {
    aspect-ratio: 2 / 3;
}

@media (max-width: 767px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .search-results-grid .imdb-card .imdb-card-title {
        font-size: 12px;
        min-height: 28px;
    }
    .search-results-grid .imdb-card .imdb-card-meta {
        padding: 20px 6px 8px;
    }
    .search-results-grid .imdb-card .imdb-card-rating {
        width: 28px;
        height: 28px;
        top: 4px;
        left: 4px;
    }
    .search-results-grid .imdb-card .imdb-card-rating .rating-text {
        font-size: 7px;
    }
    .search-results-grid .imdb-card .imdb-card-rating .progress-circle,
    .search-results-grid .imdb-card .imdb-card-rating .bg-circle {
        stroke-width: 2;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .search-results-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

/* ===== show more button ===== */
.search-load-more {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}
.search-load-more .btn-load-more {
    background: transparent;
    border: 2px solid rgba(208, 27, 27, 0.3);
    color: var(--accent-text);
    padding: 12px 48px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.search-load-more .btn-load-more:hover {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent-text);
    box-shadow: 0 8px 32px rgba(208, 27, 27, 0.25);
    transform: scale(1.02);
}
.search-load-more .btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== empty state ===== */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--on-surface-30);
}
.search-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--on-surface-10);
}

/* ===== people card (actor/director search result) ===== */
.search-person-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elevated-2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    aspect-ratio: 2 / 3;
}
.search-person-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
}
.search-person-card .card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    overflow: hidden;
}
.search-person-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.search-person-card:hover .card-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}
.search-person-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.6;
}
.search-person-card:hover .card-image::after { opacity: 0.3; }
.search-person-card .card-meta {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 12px 14px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}
.search-person-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 40px;
}
.search-person-card .card-title-fa {
    font-size: 12px;
    color: var(--on-surface-50);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 767px) {
    .search-person-card .card-meta { padding: 25px 8px 10px; }
    .search-person-card .card-title { font-size: 13px; min-height: 34px; }
    .search-person-card .card-title-fa { font-size: 10px; }
}

@media (max-width: 576px) {
    .search-box { padding: 6px; }
    .search-box input { font-size: 0.85rem; padding: 8px 12px; }
    .search-box button { font-size: 0.8rem; padding: 8px 16px; }
    .search-tabs { gap: 6px; }
    .search-tab { font-size: 0.7rem; padding: 6px 12px; }
}