/* Vote Button — Card style */
.myfl69r-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #FCE4EC;
    border-radius: 20px;
    background: #FFF5FA;
    color: #E439A0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.myfl69r-vote-btn:hover {
    background: #E439A0;
    color: #fff;
    border-color: #E439A0;
}
.myfl69r-vote-btn.voted {
    background: #f0f0f0;
    color: #999;
    border-color: #e0e0e0;
    cursor: default;
}
.myfl69r-vote-btn.voted .myfl69r-vote-icon::after {
    content: '✅';
}
.myfl69r-vote-btn.voted .myfl69r-vote-icon {
    font-size: 0;
}
.myfl69r-vote-btn .myfl69r-vote-count {
    font-weight: 700;
}

/* Vote Button — Single page large style */
.myfl69r-vote-btn--large {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
}

/* Share button */
.myfl69r-share-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #E439A0;
    border-radius: 10px;
    background: #fff;
    color: #E439A0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.myfl69r-share-btn:hover {
    background: #FFF5FA;
}

/* Single page actions */
.myfl69r-single-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

/* Toast notification */
.myfl69r-toast {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    animation: myfl69r-fadein 0.3s;
}
.myfl69r-toast.show {
    display: block;
}
@keyframes myfl69r-fadein {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Ranking Page ===== */
.myfl69r-ranking-page {
    width: 100%;
    max-width: 800px;
}

/* Period tabs */
.myfl69r-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.myfl69r-tabs::-webkit-scrollbar { display: none; }
.myfl69r-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #FCE4EC;
    background: #FFF5FA;
    color: #E439A0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.myfl69r-tab:hover {
    background: #E439A0;
    color: #fff;
}
.myfl69r-tab.active {
    background: #E439A0;
    color: #fff;
    border-color: #E439A0;
}

/* Area filter */
.myfl69r-areas {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.myfl69r-areas::-webkit-scrollbar { display: none; }
.myfl69r-area-btn {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #FCE4EC;
    background: #FFF5FA;
    color: #E439A0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.myfl69r-area-btn:hover,
.myfl69r-area-btn.active {
    background: #E439A0;
    color: #fff;
    border-color: #E439A0;
}

/* Ranking list */
.myfl69r-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.myfl69r-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #FCE4EC;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}
.myfl69r-item:hover {
    box-shadow: 0 4px 12px rgba(228,57,160,0.1);
    transform: translateY(-1px);
}
.myfl69r-rank {
    font-size: 18px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.myfl69r-rank--1 { color: #FFD700; font-size: 24px; }
.myfl69r-rank--2 { color: #C0C0C0; font-size: 22px; }
.myfl69r-rank--3 { color: #CD7F32; font-size: 20px; }
.myfl69r-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.myfl69r-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.myfl69r-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.myfl69r-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.myfl69r-area {
    font-size: 12px;
    color: #E439A0;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.myfl69r-votes {
    font-size: 16px;
    font-weight: 700;
    color: #E439A0;
    flex-shrink: 0;
    white-space: nowrap;
}
.myfl69r-votes small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* Loading */
.myfl69r-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Empty state */
.myfl69r-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .myfl69r-ranking-page {
        padding: 0;
    }
    .myfl69r-item {
        padding: 10px 12px;
        gap: 8px;
    }
    .myfl69r-rank {
        font-size: 14px;
        min-width: 24px;
    }
    .myfl69r-rank--1 { font-size: 18px; }
    .myfl69r-rank--2 { font-size: 16px; }
    .myfl69r-rank--3 { font-size: 15px; }
    .myfl69r-thumb,
    .myfl69r-thumb-placeholder {
        width: 40px;
        height: 40px;
    }
    .myfl69r-name {
        font-size: 14px;
    }
    .myfl69r-area {
        font-size: 11px;
    }
    .myfl69r-votes {
        font-size: 14px;
    }
    .myfl69r-votes small {
        font-size: 10px;
    }
    .myfl69r-tab {
        padding: 6px 16px;
        font-size: 13px;
    }
    .myfl69r-area-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}
