.tedx-ring-wrap {
    --tedx-ring-radius: 420px;
    --tedx-side-opacity: 0.85;
    --tedx-back-opacity: 0.55;
    --tedx-card-bg: rgba(237, 242, 253, 0.88);
    --tedx-card-bg-front: #edf2fd;
    --tedx-card-color: #0f172a;
    --tedx-card-border: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    width: 100%;
    user-select: none;
    overflow: hidden;
}

.tedx-ring-stage {
    position: relative;
    width: 100%;
    height: 520px;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}

.tedx-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--tedx-ring-radius) * -1)) rotateY(0deg);
    transition: transform 900ms cubic-bezier(0.22, 1.2, 0.36, 1);
    will-change: transform;
}

.tedx-ring.is-dragging { transition: none; }

.tedx-ring-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 380px;
    margin: -190px 0 0 -140px;
    background: var(--tedx-card-bg);
    color: var(--tedx-card-color);
    border: var(--tedx-card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    transform-style: preserve-3d;
    backface-visibility: visible;
    opacity: var(--tedx-side-opacity);
    transition: opacity 500ms ease, background 500ms ease, box-shadow 500ms ease;
}

.tedx-ring-card.is-front {
    opacity: 1;
    background: var(--tedx-card-bg-front);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.tedx-ring-card.is-back { opacity: var(--tedx-back-opacity); }

.tedx-ring-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
    text-indent: -9999px;
}

.tedx-ring-card__media {
    position: relative;
    width: 100%;
    height: 55%;
    overflow: hidden;
}

.tedx-ring-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tedx-ring-card__body {
    position: relative;
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 45%;
    box-sizing: border-box;
}

.tedx-ring-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tedx-ring-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tedx-ring-card__cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    position: relative;
    z-index: 2;
}

.tedx-ring-nav {
    position: absolute;
    bottom: 24px;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
    transition: transform 200ms ease, background 200ms ease;
}

.tedx-ring-nav:hover { transform: scale(1.06); }
.tedx-ring-nav--prev { left: 24px; }
.tedx-ring-nav--next { right: 24px; }

.tedx-ring-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
}

.tedx-ring-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: width 250ms ease, background 250ms ease;
}

.tedx-ring-dot.is-active {
    width: 28px;
    background: #0f172a;
}

.tedx-ring-empty {
    padding: 24px;
    text-align: center;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .tedx-ring-wrap { --tedx-ring-radius: 300px; }
    .tedx-ring-stage { height: 440px; perspective: 1100px; }
    .tedx-ring-card {
        width: 220px;
        height: 320px;
        margin: -160px 0 0 -110px;
    }
    .tedx-ring-card__title { font-size: 17px; }
}

@media (max-width: 480px) {
    .tedx-ring-wrap { --tedx-ring-radius: 230px; }
    .tedx-ring-stage { height: 380px; perspective: 900px; }
    .tedx-ring-card {
        width: 180px;
        height: 270px;
        margin: -135px 0 0 -90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tedx-ring { transition: none; }
}
