/* Holy PHP layout helpers */
body {
    min-height: 100vh;
}

.holy-main {
    padding-bottom: 40px;
}

.holy-pagination .page-numbers {
    margin: 0 3px 8px;
}

.holy-pagination .page-numbers.current,
span.page-numbers.current {
    border-color: #ffc107;
    color: #ffc107 !important;
}

.holy-ad-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.holy-ad-popup-box {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.holy-ad-popup-box img,
.holy-ad-catfish img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.holy-ad-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.holy-ad-catfish {
    position: fixed;
    z-index: 99990;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 94vw);
}

.holy-player-wrap {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.holy-tvc {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000;
}

.holy-tvc video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.holy-tvc-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.holy-tvc button {
    position: absolute;
    right: 14px;
    bottom: 42px;
    z-index: 3;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffc107;
    padding: 8px 12px;
    cursor: pointer;
}

.holy-episode-list a {
    margin: 0 6px 10px 0;
}

.streaming-server.btn-warm,
.streaming-server.active {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.holy-related-empty {
    color: #ccc;
    text-align: center;
    padding: 20px;
}

/* Bootstrap 5-like row-cols fallback for older bootstrap */
.row-cols-2 > * { flex: 0 0 auto; width: 50%; }
@media (min-width: 576px) {
    .row-cols-sm-3 > * { flex: 0 0 auto; width: 33.3333%; }
}
@media (min-width: 768px) {
    .row-cols-md-4 > * { flex: 0 0 auto; width: 25%; }
}
@media (min-width: 992px) {
    .row-cols-lg-4 > * { flex: 0 0 auto; width: 25%; }
}
@media (min-width: 1200px) {
    .row-cols-xl-5 > * { flex: 0 0 auto; width: 20%; }
}
@media (min-width: 1400px) {
    .row-cols-xxl-5 > * { flex: 0 0 auto; width: 20%; }
}

.card .card-img-top {
    aspect-ratio: 2/3;
    height: auto !important;
    max-height: 280px;
}
