/* ─── PSM Page ───────────────────────────────────────────────────── */

.psm-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.psm-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.psm-page__content {
    position: relative;
    z-index: 1;
}

/* ─── Page Title ─────────────────────────────────────────────────── */
.psm-page-title {
    text-align: center;
    padding: 28px 0 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.psm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.psm-widget {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.psm-widget__title {
    color: #f0c040;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Search */
.psm-search {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
}

.psm-search input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 9px 12px;
    font-size: .83rem;
    outline: none;
}

.psm-search input::placeholder { color: rgba(255,255,255,.45); }

.psm-search button {
    background: #1a7a1a;
    border: none;
    color: #fff;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .2s;
    font-size: .85rem;
}

.psm-search button:hover { background: #145e14; }

/* Category list */
.psm-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.psm-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .81rem;
    font-weight: 500;
    transition: background .2s, border-color .2s, color .2s;
}

.psm-cat-list li a:hover {
    background: rgba(26,122,26,0.38);
    border-color: rgba(26,122,26,0.65);
    color: #fff;
}

.psm-cat-list .cat-count {
    background: #1a7a1a;
    color: #fff;
    border-radius: 20px;
    padding: 1px 9px;
    font-size: .7rem;
    font-weight: 600;
    min-width: 26px;
    text-align: center;
}

/* ─── PSM Video Card ─────────────────────────────────────────────── */
.psm-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.20);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.psm-card__video {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    flex-shrink: 0;
}

.psm-card__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.psm-card__body {
    padding: 12px 14px 14px;
}

.psm-card__title {
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Empty state ────────────────────────────────────────────────── */
.psm-empty {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: rgba(255,255,255,.7);
    font-size: .88rem;
}

/* ─── Pagination ─────────────────────────────────────────────────── */
.psm-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.psm-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.psm-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.psm-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}
