:root {
    --primary: #9B59B6;
    --secondary: #E91E8C;
    --accent: #FF6B9D;
    --bg-dark: #1A1025;
    --bg-card: #2D1B3D;
    --text-white: #FFFFFF;
    --text-secondary: #B8A0C8;
    --text-muted: #8B7A9E;
    --gradient-primary: linear-gradient(135deg, #9B59B6 0%, #E91E8C 100%);
}

.discover-page {
    padding-bottom: 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1A1025 0%, #1D1230 100%);
}

.discover-header {
    padding: 0;
    padding-top: max(0px, env(safe-area-inset-top));
    position: relative;
    overflow: hidden;
}

.discover-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25) 0%, rgba(233, 30, 140, 0.15) 50%, rgba(13, 8, 21, 0.8) 100%);
    z-index: 0;
}

.discover-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(155, 89, 182, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(233, 30, 140, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 60%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

.discover-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.3), transparent);
}

@keyframes headerGlow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(5deg); }
}

.discover-header-content {
    position: relative;
    z-index: 1;
    padding: 20px 20px 25px;
}

.discover-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.banner-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.banner-star {
    color: #FFD700;
    width: 48px;
    height: 48px;
    animation: starPulse 3s ease-in-out infinite;
}

.banner-heart {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: #FF6B9D;
    width: 20px;
    height: 20px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.banner-sub {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.discover-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 27, 61, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #9B59B6, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(155, 89, 182, 0.3), transparent);
}

.discover-search {
    margin: 15px 20px;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(45, 27, 61, 0.8);
    border-radius: 25px;
    padding: 12px 16px;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.hot-hosts-section {
    margin: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-more {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hosts-scroll {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.hosts-scroll::-webkit-scrollbar {
    display: none;
}

.host-card {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.host-card:hover {
    transform: translateY(-5px);
}

.host-card:active {
    transform: scale(0.95);
}

.host-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
}

.host-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(155, 89, 182, 0.4);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.3);
}

.host-avatar-wrapper.online::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    animation: onlineGlow 2s ease-in-out infinite;
}

@keyframes onlineGlow {
    0%, 100% { opacity: 0.5; filter: blur(3px); }
    50% { opacity: 1; filter: blur(6px); }
}

.online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    border: 3px solid var(--bg-dark);
}

.host-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.host-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.host-level {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #9B59B6, #E91E8C);
    color: white;
    margin-top: 4px;
}

.hot-topics-section {
    margin: 25px 0;
    padding: 0 20px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.topic-card {
    background: rgba(45, 27, 61, 0.6);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(155, 89, 182, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1A1025; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1A1025; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: white; }
.rank-default { background: rgba(155, 89, 182, 0.2); color: var(--text-secondary); }

.topic-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-count {
    font-size: 11px;
    color: var(--text-muted);
}

.hot-activities-section {
    margin: 25px 0;
    padding: 0 20px;
}

.activity-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(233, 30, 140, 0.1) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: center;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.25);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-icon-gift { background: linear-gradient(135deg, #FFD700, #FFA500); }
.activity-icon-new { background: linear-gradient(135deg, #4CAF50, #45a049); }
.activity-icon-hot { background: linear-gradient(135deg, #FF6B6B, #FF5252); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.activity-time {
    font-size: 11px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-users-section {
    margin: 25px 0;
    padding: 0 20px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.user-mini-card {
    background: rgba(45, 27, 61, 0.6);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(155, 89, 182, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-mini-card:hover {
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateY(-2px);
}

.user-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    border: 2px solid rgba(155, 89, 182, 0.3);
}

.user-mini-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-mini-attr {
    font-size: 10px;
    color: var(--accent);
}

.profile-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(45, 27, 61, 0.8) 100%);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-info {
    flex: 1;
}

.profile-nickname {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(155, 89, 182, 0.1);
}
