.custom-category-reels-section {
    width: 100%;
    background-color: transparent;
    font-family: "Outfit", "Inter", sans-serif;
}

.custom-category-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.custom-category-tabs-wrap {
    margin: 0 auto 40px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.custom-category-tabs-wrap ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content;
    margin: 0 auto;
}

.custom-category-tabs-wrap li {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.custom-category-tabs-wrap li::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #ff003c;
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.custom-category-tabs-wrap li.active,
.custom-category-tabs-wrap li:hover {
    color: #ff003c;
}

.custom-category-tabs-wrap li.active::after {
    transform: scaleX(1);
}

.custom-reels-grid-wrap {
    width: 100%;
}

.custom-reels-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
}

.custom-video-card-col {
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-video-card-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.custom-video-card-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.85;
    border-radius: 8px;
    overflow: hidden;
    background-color: #121313;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.custom-video-card-img {
    width: 100%;
    height: 100%;
}

.custom-video-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f1f21 0%, #111112 100%);
}

.custom-video-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    --btn-scale: 1;
    transform: translate(-50%, -50%) scale(calc(0.9 * var(--btn-scale)));
    opacity: 0;
    border: 3px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 20px 0 5px;
    border-radius: 54px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
}

.custom-video-card-link:hover .custom-video-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--btn-scale));
}

.custom-play-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #df1f26;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* For icon fonts */
}

.custom-play-circle svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.custom-play-text {
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.custom-video-card-title {
    color: #ffffff;
    font-family: "Tanker", "Impact", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.custom-reel-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.85);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-reel-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-popup-box-wrapper {
    width: 90%;
    max-width: 1000px;
    box-sizing: border-box;
}

.custom-popup-header-flex {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.new-title-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.new-close-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.custom-popup-title {
    color: #ffffff;
    font-family: "Tanker", "Impact", sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.reel-popup-video {
    position: relative;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.new-popup-close-btn {
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1045;
    flex-shrink: 0;
    margin-left: 15px;
}

.new-popup-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.custom-popup-video-body {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.custom-popup-video-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.no-videos-message {
    color: #888;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    padding: 40px 0;
}

@media (max-width: 991px) {
    .custom-reels-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .custom-video-hover-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 580px) {
    .custom-reels-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px 0;
    }
}