.id-trends-container {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.id-trends-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.id-trends-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.id-trends-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
    position: relative;
    z-index: 2;
}

.id-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.id-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.id-tab-btn.active {
    background: #4A90E2;
    color: #fff;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.id-trends-content {
    min-height: 250px;
    position: relative;
    z-index: 2;
}

.id-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.id-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.id-trends-select-wrapper {
    margin-bottom: 15px;
}

.id-trends-city-select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.id-trends-city-select option {
    background: #2a2a2a;
    color: #fff;
}

.id-trend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.id-trend-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

a.id-trend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateX(5px);
}

.id-trend-item.unlinked {
    color: rgba(255, 255, 255, 0.5);
}

.id-trend-item.linked {
    color: #fff;
}

.id-trend-rank {
    min-width: 30px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    /* Default fallback */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: 5px;
}

.id-trend-name {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.id-trends-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    position: relative;
    z-index: 2;
}

.id-trends-watermark {
    position: absolute;
    bottom: -50px;
    right: -40px;
    width: 250px;
    height: 250px;
    color: #ffffff;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

.id-trends-info-icon {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.id-trends-info-icon:hover {
    opacity: 1;
}

.id-trends-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.id-trends-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.id-trends-modal-content {
    position: relative;
    background: rgba(42, 42, 42, 0.95);
    padding: 24px;
    border-radius: 12px;
    max-width: 85%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalScaleUp 0.3s ease forwards;
    z-index: 101;
}
@keyframes modalScaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.id-trends-modal-content h4 {
    margin-top: 0;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}
.id-trends-modal-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 0;
}
.id-trends-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    line-height: 1;
    color: #fff;
}
.id-trends-modal-close:hover {
    opacity: 1;
}