.home-hero {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(233, 30, 140, 0.2) 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 28px;
    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: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.room-filters {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.room-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(155, 89, 182, 0.3);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.room-list {
    padding: 0 15px;
    padding-bottom: 100px;
}

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

.room-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: visible;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(155, 89, 182, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.3);
    border-color: rgba(155, 89, 182, 0.3);
}

.room-card:active {
    transform: translateY(-2px);
}

.room-cover-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: visible;
    background: #2D1B3D;
}

.room-cover-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.room-card:hover .room-cover-bg {
    transform: scale(1.05);
}

.cover-emoji {
    font-size: 64px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    user-select: none;
    pointer-events: none;
}

.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(26, 16, 37, 0.95) 100%);
    z-index: 1;
}

.room-host-avatar-wrapper {
    position: absolute;
    bottom: -20px;
    left: 12px;
    z-index: 10;
}

.room-host-avatar-wrapper > span {
    border: 3px solid #1A1025;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.room-card:hover .room-host-avatar-wrapper > span {
    transform: scale(1.1);
    border-color: var(--accent);
}

.room-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.room-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-free {
    background: rgba(76, 175, 80, 0.8);
    color: white;
}

.badge-vip {
    background: rgba(255, 215, 0, 0.9);
    color: #1A1025;
}

.badge-level {
    background: rgba(155, 89, 182, 0.9);
    color: white;
}

.badge-private {
    background: rgba(233, 30, 140, 0.9);
    color: white;
}

.room-online {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.room-info {
    padding: 28px 12px 12px;
}

.room-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-host {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.host-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-name {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.host-level {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
}

.room-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.room-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(155, 89, 182, 0.15);
    color: var(--accent);
}

.room-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.room-card:hover .room-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    flex: 1;
    padding: 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.action-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.action-btn-primary:hover {
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.5);
}

.action-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.load-more {
    text-align: center;
    padding: 30px;
}

.load-more-btn {
    padding: 12px 40px;
    border-radius: 25px;
    background: transparent;
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: rgba(155, 89, 182, 0.1);
    border-color: var(--primary);
    color: var(--text-white);
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(155, 89, 182, 0.1) 25%, 
        rgba(233, 30, 140, 0.1) 50%, 
        rgba(155, 89, 182, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-card {
    height: 250px;
    border-radius: var(--border-radius);
}

.refresh-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: var(--text-muted);
}

.refresh-icon {
    font-size: 24px;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pull-down {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.category-tabs {
    display: flex;
    gap: 15px;
    padding: 0 20px 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(155, 89, 182, 0.2);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.quick-join {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(233, 30, 140, 0.2) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.quick-join-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-join-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-join-rooms {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.quick-join-rooms::-webkit-scrollbar {
    display: none;
}

.quick-room-item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    cursor: pointer;
}

.quick-room-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(155, 89, 182, 0.3);
    margin-bottom: 8px;
    transition: var(--transition);
}

.quick-room-item:hover .quick-room-avatar {
    border-color: var(--accent);
    transform: scale(1.05);
}

.quick-room-name {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
