.site__header {
    padding-top: 84px;
    padding-bottom: 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}
.section__heading-title {
    color: #111827;
    margin: 0;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 60px;
}
.sectionBlock {
    margin-top: 18px;
}
.sectionTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}
.sectionTitle h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.sectionTitle .count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 999px;
}
.sep {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 20px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 800px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.cardx {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.cardx:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
.mediaTop {
    position: relative;
}
.cardx img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}
@media (max-width: 520px) {
    .cardx img {
        height: 210px;
    }
}

.mediaTop:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0.85;
}

.caption {
    padding: 12px 12px 12px;
    font-size: 13px;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.caption .t {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 70px);
}
.badgeType {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
}

.playOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.playOverlay .btnPlay {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 50, 90, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-6px);
}
.playOverlay .btnPlay:before {
    content: '';
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

#mediaModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 9999;
    padding: 18px;
}
.modalCard {
    max-width: 980px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.closeBtn {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}
.modalHead {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 900;
    color: #111827;
}
.modalBody {
    padding: 14px 16px;
}
.thumbStrip {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.thumbStrip img {
    width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}
.thumbStrip img:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.emptyBox {
    padding: 14px;
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    background: #fafafa;
    color: #6b7280;
}
