.annyeong-topics-widget.sidebar-card,
.widget.annyeong-topics-widget {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(139, 77, 232, 0.14);
    border-radius: 22px;
    background: linear-gradient(145deg, #fbf8ff 0%, #f8f1ff 54%, #fff5fa 100%);
    box-shadow: 0 18px 40px rgba(80, 47, 110, 0.09);
}

.annyeong-topics {
    --annyeong-topics-pink: var(--pink, #f45faf);
    --annyeong-topics-violet: var(--violet, #8b4de8);
    --annyeong-topics-ink: var(--ink, #15131b);
    --annyeong-topics-muted: var(--muted, #6e6878);
    position: relative;
    padding: 27px 24px 25px;
    font-family: AnnyeongSans, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}

.annyeong-topics__flower {
    position: absolute;
    top: 17px;
    right: 18px;
    z-index: 0;
    display: block;
    width: 48px;
    height: 48px;
    color: var(--annyeong-topics-violet);
    opacity: 0.34;
    pointer-events: none;
    transform: rotate(8deg);
}

.annyeong-topics__flower svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.annyeong-topics-widget.sidebar-card .annyeong-topics__title,
.annyeong-topics__title {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 62px);
    margin: 0 0 25px;
    color: var(--annyeong-topics-ink);
    font-family: AnnyeongDisplay, "Caveat", cursive;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.annyeong-topics__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 11px 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.annyeong-topics__item {
    margin: 0;
    padding: 0;
}

.annyeong-topics__item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 15px;
    border: 2px solid rgba(139, 77, 232, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--annyeong-topics-violet);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.035em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.annyeong-topics__item:nth-child(3n + 2) a {
    color: #a05ce6;
}

.annyeong-topics__item:nth-child(3n) a {
    border-color: rgba(244, 95, 175, 0.22);
    color: var(--annyeong-topics-pink);
}

.annyeong-topics__item a:hover,
.annyeong-topics__item a:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, var(--annyeong-topics-pink), var(--annyeong-topics-violet));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(139, 77, 232, 0.18);
    transform: translateY(-2px);
}

.annyeong-topics__all-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 25px;
    color: var(--annyeong-topics-ink);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.annyeong-topics__all-link:hover,
.annyeong-topics__all-link:focus-visible {
    color: var(--annyeong-topics-pink);
}

.annyeong-topics__arrow {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.annyeong-topics__all-link:hover .annyeong-topics__arrow {
    transform: translateX(4px);
}

.annyeong-topics__empty {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--annyeong-topics-muted);
    font-size: 13px;
}

@media (max-width: 360px) {
    .annyeong-topics {
        padding: 23px 20px;
    }

    .annyeong-topics__item a {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .annyeong-topics__item a,
    .annyeong-topics__all-link,
    .annyeong-topics__arrow {
        transition: none;
    }
}
