/* ===== 06. Archive cards + pagination ===== */

.titles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.title-grid-card {
    position: relative;
    margin: 0;
    transition: transform .18s ease;
}

.title-grid-card__inner {
    height: 360px;
    padding: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    border-color: rgba(196, 211, 226, 0.72);
    border: 1px solid rgba(196, 211, 226, 0.78);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 5px 16px rgba(18, 38, 63, 0.045);
    transition:
        box-shadow .18s ease,
        border-color .18s ease,
        transform .18s ease,
        background .18s ease;
}

.title-grid-card:hover .title-grid-card__inner {
    background:
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-color: rgba(150, 178, 205, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 8px 22px rgba(18, 38, 63, 0.075),
        0 0 26px rgba(47, 137, 217, 0.08);
    transform: translateY(-2px);
}

.title-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.title-grid-card__poster,
.title-grid-card__content,
.title-grid-card__title,
.title-grid-card__title a,
.title-grid-card__content a {
    position: relative;
    z-index: 2;
}

.title-grid-card__top {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    height: 100%;
    align-items: start;
}

.title-grid-card__poster {
    width: 210px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(18, 38, 63, 0.08);
}

.title-grid-card__poster a {
    display: block;
    width: 100%;
    height: 100%;
}

.title-grid-card__poster img,
.title-grid-card__poster .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-grid-card__right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.title-grid-card__content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--so-text);
    font-size: 14px;
    line-height: 1.5;
}

.title-grid-card__title,
.title-grid-card__title a {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--so-link);
    text-decoration: none;
}

.title-grid-card__title a:hover {
    text-decoration: underline;
}

.title-grid-card .title-status-badge {
	margin: 2px 0 8px;
	padding: 4px 9px;
	font-size: 11px;
}

.title-grid-card .title-status-badge {
	margin: 2px 0 8px;
	padding: 4px 9px;
	font-size: 11px;
}

.title-grid-card__subtitle {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #bfbfbf;
    color: #555;
}

.title-grid-card__content > div {
    margin-bottom: 3px;
}

.title-card__excerpt {
    margin-top: 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.title-grid-card__actors {
    max-height: 80px;
    overflow: hidden;
}

.title-grid-card__buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    margin-left: 90px;
    padding-top: 12px;
}

.title-grid-card__btn {
    display: inline-block;
    min-width: 102px;
    padding: 12px 18px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.title-grid-card__btn--watch {
    background: #9b59b6;
}

.title-grid-card__btn--download {
    background: #2ecc71;
}

.navigation-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    padding: 24px 0;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: var(--so-text);
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
}

.navigation .page-numbers:hover {
    background: #f3f3f3;
    text-decoration: none;
}

.navigation .page-numbers.current {
    background: var(--so-accent);
    border-color: var(--so-accent);
    color: #ffffff;
}

.page-jump {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.page-jump__label {
    color: var(--so-text);
    font-size: 14px;
}

.page-jump__input {
    width: 70px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: var(--so-text);
    border-radius: 10px;
}

.page-jump__button {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--so-accent);
    background: var(--so-accent);
    color: #ffffff;
    cursor: pointer;
    border-radius: 12px;
}

.page-jump__button:hover {
    opacity: .92;
}

.pagination {
    margin: 28px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px 0 0;
    border: 1px solid #d6dde6;
    background: #fff;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 10px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pagination .page-numbers:hover {
    background: #f3f7fa;
    border-color: #c3d0dc;
}

.pagination .page-numbers.current {
    background: var(--so-accent);
    border-color: var(--so-accent);
    color: #fff;
}

.pagination .page-numbers.dots {
    pointer-events: none;
    color: #7c8794;
    background: #fff;
}

.pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-jump__label {
    color: #2d3748;
    font-weight: 500;
}

.pagination-jump__input {
    width: 64px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #d6dde6;
    background: #fff;
    color: #2d3748;
    box-sizing: border-box;
}

.pagination-jump__button {
    height: 42px;
    padding: 0 18px;
	border: 1px solid var(--so-accent);
    background: var(--so-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}



