/* --- CONTAINER --- */
.story-likes-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

/* --- THE BUTTON & ICON --- */
.story-like-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ff4d4d; /* Heart Outline Color */
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    
    /* FIX: Removes the "Square" on click */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Remove focus ring specifically */
.story-like-btn:focus, 
.story-like-btn:active {
    outline: none;
    border: none;
}

.story-like-btn:hover {
    transform: scale(1.1);
}

.story-like-btn.animating {
    animation: sl-pulse 0.4s ease-out;
}

.story-like-icon svg {
    display: block;
    width: 36px;
    height: auto;
    fill: transparent; /* Default: Outline only */
    stroke-width: 2px;
    transition: fill 0.3s ease; /* Smooth fill transition */
}

/* --- THE "LIKED" STATE (Solid Red) --- */
.story-like-btn.story-liked .story-like-icon svg {
    fill: #ff4d4d; /* Fills the heart with red */
    opacity: 1;
}

@keyframes sl-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- ROLLING COUNTER (Odometer) --- */
.likes-count {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2;
    vertical-align: middle;
    text-align: left;
    margin-left: 20px;
    
    /* Independent Font Styling */
    font-size: 18px; 
    font-weight: 700;
    color: #333;
    
    font-variant-numeric: tabular-nums;
}

.sl-char { display: inline-block; }

.sl-digit-window {
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    position: relative;
    vertical-align: top;
}

.sl-digit-lane {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.sl-digit-lane.is-rolling {
    transform: translateY(-50%);
}

.sl-digit-lane span {
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}