/* Explain: Styles for the TikTok video carousel and modal. */
.tiktok-swiper {
    padding-bottom: 0.5rem;
}

.tiktok-swiper .swiper-slide {
    height: auto;
}

.tiktok-card {
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.tiktok-card:hover {
    border-color: rgba(200, 164, 92, 0.5);
    box-shadow: 0 26px 80px rgba(34, 48, 63, 0.12);
    transform: translateY(-6px);
}

.tiktok-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: linear-gradient(160deg, var(--secondary-color), var(--surface-color));
}

.tiktok-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.tiktok-card:hover .tiktok-thumb {
    transform: scale(1.05);
}

.tiktok-prev,
.tiktok-next {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: all 250ms ease;
}

.tiktok-prev:hover,
.tiktok-next:hover {
    border-color: var(--accent-color);
    background: var(--primary-color);
    color: #ffffff;
}

.tiktok-swiper .swiper-pagination {
    position: static;
    display: flex;
    width: auto;
    align-items: center;
    gap: 0.45rem;
}

.tiktok-swiper .swiper-pagination-bullet {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0 !important;
    background: var(--accent-color);
    opacity: 0.35;
}

.tiktok-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.tiktok-modal-frame {
    position: relative;
    height: min(80vh, 620px);
    aspect-ratio: 9 / 16;
    max-width: 92vw;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.tiktok-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}