.tiktok-videos-container {
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: 1.25rem;
}

.tiktok-slider {
    display: block;
    width: 100%;
}

.tiktok-slider-items {
    display: flex;
    gap: 1rem;
}

/* ===== Video Card ===== */
.video-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(1.875rem) scale(0.95);
    animation: cardAppear 0.5s ease forwards;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-card:hover {
    transform: translateY(-0.5rem) scale(1.03);
  
}

/* ===== Video Thumbnail ===== */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 9 / 16;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-thumbnail video {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* ===== Play Button ===== */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.4375rem;
    height: 3.4375rem;
    background: rgba(255, 0, 80, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: white;
    box-shadow:
        0 0.25rem 1.25rem rgba(255, 0, 80, 0.5),
        0 0 0 0.25rem rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.play-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 0, 80, 0.4);
    animation: pulse 2s infinite;
    z-index: -1;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow:
        0 0.5rem 1.875rem rgba(255, 0, 80, 0.7),
        0 0 0 0.375rem rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== Video Lightbox (Shorts Style) - Scroll Lock ===== */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    /* Scroll Lock */
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: none;
    -webkit-touch-callout: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* منع التحديد */
.video-lightbox * {
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    top: calc(env(safe-area-inset-top, 1.25rem) + 0.625rem);
    right: 1.25rem;
    width: 2.8125rem;
    height: 2.8125rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.375rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: rgba(255, 0, 80, 0.8);
    transform: rotate(90deg);
}

.lightbox-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}

.lightbox-video {
    max-width: 90%;
    max-height: 70vh;
    max-height: 70dvh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    background: #000;
    object-fit: contain;
    touch-action: manipulation;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Navigation Buttons - rem units */
.lightbox-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 3.125rem;
    height: 3.125rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-nav.up {
    top: 1.875rem;
    top: calc(env(safe-area-inset-top, 1.25rem) + 1.25rem);
}

.lightbox-nav.down {
    bottom: 1.875rem;
    bottom: calc(env(safe-area-inset-bottom, 1.25rem) + 1.25rem);
}

.lightbox-nav:hover,
.lightbox-nav:active {
    background: rgba(255, 0, 80, 0.8);
}

/* Indicators */
.lightbox-indicators {
    position: absolute;
    right: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.indicator-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #ff0050;
    transform: scale(1.3);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slide Animations */
.slide-in-up,
.slide-in-down,
.slide-out-up,
.slide-out-down {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.slide-in-up {
    animation: slideInUp 0.3s ease forwards;
}

.slide-in-down {
    animation: slideInDown 0.3s ease forwards;
}

.slide-out-up {
    animation: slideOutUp 0.3s ease forwards;
    position: absolute;
}

.slide-out-down {
    animation: slideOutDown 0.3s ease forwards;
    position: absolute;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

@keyframes slideOutDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* ===== Responsive - TikTok Section ===== */
@media (max-width: 768px) {
    .tiktok-videos-container {
        padding: 0.9375rem;
        margin: 0.9375rem 0;
        border-radius: 1rem;
    }

    .play-btn {
        width: 2.8125rem;
        height: 2.8125rem;
        font-size: 1rem;
    }

    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }

    .lightbox-video {
        max-width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .tiktok-videos-container {
        padding: 0.75rem;
        margin: 0.625rem 0;
        border-radius: 0.75rem;
    }

    .video-card {
        border-radius: 0.75rem;
    }

    .play-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }

    .lightbox-nav {
        width: 2.1875rem;
        height: 2.1875rem;
        font-size: 0.875rem;
    }

    .lightbox-close {
        width: 2.1875rem;
        height: 2.1875rem;
        font-size: 1rem;
    }

    .lightbox-video {
        max-height: 90vh;
        max-height: 90dvh;
    }

    .indicator-dot {
        width: 0.375rem;
        height: 0.375rem;
    }
}