.t10t-ad-card {
    width: 100%;
    margin: 18px 0;
    box-sizing: border-box;
    position: relative;
}

.t10t-ad-banner,
.t10t-sponsored-feed-item,
.t10t-sponsored-grid-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #0f1117;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.t10t-ad-banner-link,
.t10t-sponsored-card-link,
.t10t-sponsored-grid-item .grid-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.t10t-ad-media,
.t10t-sponsored-media,
.t10t-sponsored-video-wrap,
.t10t-ad-video-native-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.t10t-ad-video-native-wrap {
    aspect-ratio: 9 / 16;
}

.t10t-ad-video-native,
.t10t-sponsored-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* feed header */
.t10t-sponsored-header {
    padding: 14px 14px 10px;
    margin: 0;
    background: transparent;
    border: 0;
}

.t10t-sponsored-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.t10t-sponsored-author-details {
    min-width: 0;
    flex: 1 1 auto;
}

/* ad in circle */
.t10t-sponsored-ad-pill {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    border: 1px solid rgba(0,0,0,.08);
}

.t10t-sponsored-ad-pill-text {
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    color: #000;
    letter-spacing: .2px;
}

/* title */
.t10t-sponsored-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
    color: #111827 !important;
}

.t10t-sponsored-author-details,
.t10t-sponsored-author-details .t10t-sponsored-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* light / dark by device */
@media (prefers-color-scheme: dark) {
    .t10t-sponsored-title {
        color: #ffffff !important;
    }
}

.t10t-sponsored-feed-item .video-title,
.t10t-sponsored-feed-item .author-name,
.t10t-sponsored-avatar,
.t10t-sponsored-avatar-badge,
.t10t-sponsored-cta,
.t10t-sponsored-overlay-btn,
.t10t-ad-label,
.t10t-sponsored-badge,
.t10t-sponsored-badge-feed {
    display: none !important;
}
/* footer */
.t10t-sponsored-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 14px;
    margin: 0;
    background: transparent;
    border: 0;
}

.t10t-sponsored-content-block {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.t10t-sponsored-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(17,24,39,.72);
    margin: 0;
    word-break: break-word;
}

.t10t-sponsored-footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* real button */
.t10t-sponsored-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px;
    height: 40px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0,0,0,.20);
    transition: all .22s ease;
    border: 0;
}

.t10t-sponsored-btn span {
    color: #fff !important;
    text-decoration: none !important;
}

.t10t-sponsored-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.t10t-sponsored-btn:hover span {
    color: #fff !important;
}

.t10t-sponsored-btn:active {
    transform: scale(.98);
}

/* banner */
.t10t-ad-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.t10t-ad-content {
    padding: 14px;
}

.t10t-ad-title {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 8px;
    word-break: break-word;
}

.t10t-ad-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(17,24,39,.72);
    margin: 0 0 12px;
}

/* grid */
.t10t-sponsored-grid-item .grid-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.t10t-sponsored-grid-item .grid-media img,
.t10t-sponsored-grid-item .t10t-ad-video-native-wrap {
    width: 100%;
    aspect-ratio: 9 / 16;
}

.t10t-sponsored-grid-item .video-grid-author {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4;
}

.t10t-sponsored-grid-title {
    display: inline-block;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.60);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

/* cleanup */
.t10t-ad-code-slot {
    margin: 18px 0;
    overflow: hidden;
}

.t10t-placement-grid_interval {
    grid-column: span 2;
}

.t10t-sponsored-feed-item .footer-item,
.t10t-sponsored-feed-item .views,
.t10t-sponsored-feed-item .share-btn,
.t10t-sponsored-feed-item .comment-btn,
.t10t-sponsored-feed-item .like-btn,
.t10t-sponsored-feed-item .svm-report-trigger,
.t10t-sponsored-feed-item .t10t-comments-container,
.t10t-sponsored-feed-item .count,
.t10t-sponsored-feed-item .video-grid-views {
    display: none !important;
}

/* LIGHT MODE (default) */
.t10t-sponsored-title,
.t10t-ad-title {
    color: #111827 !important;
}

.t10t-sponsored-desc,
.t10t-ad-desc {
    color: rgba(17,24,39,.72);
}

.t10t-sponsored-btn {
    background: #111827 !important;
    color: #fff !important;
}

.t10t-sponsored-btn span {
    color: #fff !important;
}

/* DARK MODE (system based) */
@media (prefers-color-scheme: dark) {

    .t10t-sponsored-title,
    .t10t-ad-title {
        color: #ffffff !important;
    }

    .t10t-sponsored-desc,
    .t10t-ad-desc {
        color: rgba(255,255,255,.75);
    }

    .t10t-sponsored-btn {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .t10t-sponsored-btn span {
        color: #111827 !important;
    }

}

@media (max-width: 768px) {
    .t10t-sponsored-title,
    .t10t-ad-title {
        font-size: 16px;
    }

    .t10t-sponsored-desc,
    .t10t-ad-desc {
        font-size: 12px;
    }

    .t10t-sponsored-btn {
        min-width: 108px;
        height: 36px !important;
        font-size: 12px;
        padding: 0 14px !important;
    }

    .t10t-sponsored-header {
        padding: 12px 12px 8px;
    }

    .t10t-sponsored-footer {
        padding: 12px;
    }

    .t10t-sponsored-ad-pill {
        width: 26px;
        height: 26px;
        min-width: 26px;
        margin-right: 6px;
    }

    .t10t-sponsored-ad-pill-text {
        font-size: 9px;
    }
}

/* =========================
   Popup
========================= */
.t10t-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.t10t-popup-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #111827;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.t10t-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.t10t-popup-media img,
.t10t-popup-video-wrap {
    width: 100%;
    display: block;
}

.t10t-popup-video-wrap {
    aspect-ratio: 9 / 16;
    background: #000;
}

.t10t-popup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t10t-popup-content {
    padding: 16px;
}

.t10t-popup-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

.t10t-popup-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,.78);
    margin-bottom: 14px;
}

.t10t-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

body.t10t-popup-open {
    overflow: hidden;
}