.xc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.xc-card:hover {
    box-shadow: 0 10px 25px -8px rgba(15, 23, 42, .25);
    transform: translateY(-2px);
}

.xc-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.xc-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.xc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xc-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
    color: rgba(255, 255, 255, .85);
    font-size: 44px;
}

.xc-body {
    padding: 16px 18px 8px;
    flex: 1 1 auto;
}

.xc-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.xc-link:hover .xc-title {
    color: #059669;
}

.xc-sub {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 14px 18px;
}

.xc-badge {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xc-share {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.xc-share:hover,
.xc-share:focus-visible {
    background: #059669;
    color: #fff;
}

.xs-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .5);
    z-index: 1000;
    text-align: center;
}
