.kaito-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.kaito-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid #808080;
    background: #c0c0c0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.kaito-period-select {
    position: relative;
    width: 60px;
    height: 24px;
    background: #fff;
    border: 1px solid #808080;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.kaito-period-select .selected {
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
}

.kaito-period-select .options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #808080;
    border-top: none;
    display: none;
    z-index: 1000;
}

.kaito-period-select .option {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    height: 24px;
    display: flex;
    align-items: center;
}

.kaito-period-select .option:hover {
    background: #0000a8;
    color: #fff;
}

.kaito-period-select.active .options {
    display: block;
}

.kaito-cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    height: calc(100% - 60px);
    position: relative;
    min-height: 200px;
}

.kaito-card {
    background: #fff;
    border: 1px solid #808080;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 0 #000;
    display: flex;
    gap: 15px;
}

.kaito-card-rank {
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    height: fit-content;
}

.kaito-card-content {
    flex: 1;
}

.kaito-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.kaito-user-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.kaito-user-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid #808080;
}

.kaito-user-details {
    display: flex;
    flex-direction: column;
}

.kaito-user-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.kaito-user-handle {
    color: #666;
    margin-bottom: 5px;
}

.kaito-user-handle a {
    color: #666;
    text-decoration: underline;
    text-decoration-style: solid;
    cursor: pointer;
}

.kaito-user-handle a:hover {
    opacity: 0.8;
}

.kaito-mindshare {
    color: #E95FC8;
    font-weight: bold;
}


.kaito-stats {
    margin-top: 10px;
}

.kaito-stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.kaito-stat-label {
    width: 120px;
    color: #666;
}

.kaito-stat-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
}

.kaito-stat-bar-fill {
    height: 100%;
}

.kaito-stat-value {
    width: 40px;
    text-align: right;
    margin-left: 10px;
    color: #666;
}

.kaito-followers {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    color: #666;
    justify-content: center;
    align-items: center;
}

.kaito-followers span {
    color: #000;
    font-weight: bold;
}

.kaito-loading-leaderboard {
    text-align: center;
    color: #555;
    padding: 20px;
    font-style: italic;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #808080;
    box-shadow: 2px 2px 0 #000;
    padding: 15px 30px;
    z-index: 1;
}

.kaito-no-results {
    text-align: center;
    color: #555;
    padding: 20px;
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #808080;
    box-shadow: 2px 2px 0 #000;
    padding: 15px 30px;
}

.kaito-no-results .search-term {
    font-weight: bold;
    color: #000;
}

.kaito-loading-leaderboard.visible {
    opacity: 1;
    visibility: visible;
}