* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding-bottom: 55px;
            background-color: #f8f9fa;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .header {
            background-color: #000;
            background-image: url('../Photo/eree.png');
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-position: center;
            padding: 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
            min-height: 200px;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20px;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            opacity: 0.3;
        }

        .logo {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .top-navbar {
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 10px 15px;
            position: relative;
            z-index: 10;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .language-selector {
            position: relative;
        }

        .language-button {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            color: #333;
            font-weight: bold;
            transition: all 0.3s ease;
            min-width: 40px;
        }

        .language-button:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-2px);
        }

        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            padding: 8px 0;
            min-width: 150px;
            display: none;
            z-index: 1000;
            margin-top: 5px;
        }

        .language-dropdown.show {
            display: block;
        }

        .language-option {
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.2s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 0.9rem;
        }

        .language-option:hover {
            background: #f8f9fa;
        }

        .language-option.active {
            background: #e3f2fd;
            color: #1976d2;
            font-weight: bold;
        }

        .welfare-container {
            padding: 20px;
            background: white;
            margin: 10px 5px;
            border-radius: 15px;
        }

        .time-settings-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid #eee;
        }

        .time-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
        }

        .time-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }

        .time-value {
            font-size: 14px;
            font-weight: bold;
            color: #e74c3c;
        }

        .time-value.closed {
            color: #e74c3c;
        }

        .round-label {
            background: #e74c3c;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            margin: 0 10px;
        }

        .vip-section {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            border: 1px solid #eee;
            position: relative;
        }

        .vip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .vip-label {
            font-size: 16px;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .vip-label.red {
            background: #ffebee;
            color: #e74c3c;
        }

        .vip-minimum {
            font-size: 14px;
            color: #333;
        }

        .vip-time {
            font-size: 12px;
            color: #666;
        }

        .vip-description {
            font-size: 14px;
            color: #333;
            line-height: 1.4;
            margin-bottom: 15px;
        }

        .pk-battle {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }

        .pk-left, .pk-right {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .pk-button {
            padding: 12px 20px;
            border-radius: 8px;
            color: white;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
            text-align: center;
        }

        .pk-button.red {
            background: linear-gradient(45deg, #ff6b6b, #ee5a52);
        }

        .pk-button.blue {
            background: linear-gradient(45deg, #4a90e2, #357abd);
        }

        .pk-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .pk-center {
            background: #e74c3c;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            border: 3px solid white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .support-icon {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 20px;
            opacity: 0.7;
        }

        .alert-banner {
            background: #fff9f2;
            color: rgb(179, 111, 110);
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .alert-banner .speaker-icon {
            width: 15px;
            height: 15px;
            background: #e74c3c !important;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white !important;
            font-weight: bold;
            font-size: 10px;
            transform: none !important;
            border: none !important;
            outline: none !important;
        }

        .material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-weight: normal;
            font-style: normal;
            font-size: 15px;
            line-height: 1;
            letter-spacing: normal;
            text-transform: none;
            display: inline-block;
            white-space: nowrap;
            word-wrap: normal;
            direction: ltr;
            -webkit-font-feature-settings: 'liga';
            -webkit-font-smoothing: antialiased;
            font-variation-settings:
                'FILL' 0,
                'wght' 400,
                'GRAD' 0,
                'opsz' 20;
        }

        .nav-tabs {
            background: white;
            display: flex;
            border-bottom: 1px solid #eee;
            width: 100%;
        }

        .nav-tab {
            flex: 1;
            padding: 8px 4px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            color: #666;
            font-size: 14px;
            text-align: center;
            line-height: 1.3;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
        }

        .nav-tab.active {
            color: #007bff;
            border-bottom-color: #007bff;
        }

        .content {
            background: #f1f6fe;
            margin: 10px 5px 0 5px;
            padding: 20px;
            border-radius: 15px;
        }

        .ranking-list {
            list-style: none;
        }

        .ranking-item {
            display: flex;
            align-items: center;
            padding: 8px 0;
        }

        .rank-number {
            font-size: 14px;
            font-weight: normal;
            color: #333;
            min-width: 40px;
            margin-right: 0px;
        }

        .rank-number.top-one {
            color: #FF6B6B;
            font-weight: normal;
        }

        .rank-number.top-two {
            color: #FF9933;
            font-weight: normal;
        }

        .rank-number.top-three {
            color: #FFC107;
            font-weight: normal;
        }

        .song-thumbnail {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            margin-right: 20px;
            margin-left: -20px;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .song-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .song-thumbnail.blue {
            background: linear-gradient(45deg, #4a90e2, #357abd);
        }

        .song-thumbnail.green {
            background: linear-gradient(45deg, #2ecc71, #27ae60);
        }

        .song-thumbnail.purple {
            background: linear-gradient(45deg, #9b59b6, #8e44ad);
        }

        .song-thumbnail.red {
            background: linear-gradient(45deg, #e74c3c, #c0392b);
        }

        .song-thumbnail.dark {
            background: linear-gradient(45deg, #2c3e50, #34495e);
        }

        .song-thumbnail.rainbow {
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
        }

        .thumbnail {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            margin-right: 15px;
            margin-left: -20px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8rem;
        }

        .content-info {
            flex: 1;
            margin-left: -12px;
        }

        .content-title {
            font-size: 15px;
            color: #333;
            margin-bottom: 5px;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .content-value {
            font-size: 14px;
            font-weight: normal;
            color: #333;
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .headphone-icon {
            width: 16px;
            height: 16px;
            background: #667eea;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.6rem;
        }

        /* Copy button styles */
        .copy-button {
            font-weight: normal !important;
            font-size: 14px !important;
            color: #333 !important;
            text-decoration: none !important;
        }
        
        .copy-button * {
            font-weight: normal !important;
        }
        
        button.copy-button {
            font-weight: normal !important;
        }
        
        button[onclick="copyInviteLink()"] {
            font-weight: normal !important;
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 2rem;
            }
            
            .nav-tab {
                padding: 6px 2px;
                font-size: 0.8rem;
                min-height: 45px;
            }
            
            .ranking-item {
                padding: 12px 0;
            }
            
            .thumbnail {
                width: 45px;
                height: 45px;
            }
        }

/* ---- ---- */

.footer-nav-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    flex-direction: column;
}

.footer-nav-loading.is-visible {
    display: flex;
}

.footer-nav-loading__box {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav-loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-right-color: #42a5f5;
    animation: footer-nav-spin 0.75s linear infinite;
    box-sizing: border-box;
}

.footer-nav-loading__logo {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
    background: transparent;
}

@keyframes footer-nav-spin {
    to { transform: rotate(360deg); }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    border-top: 1px solid #ccc;
    height: 50px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 8px;
    min-width: 60px;
    flex: 1;
}

.nav-item:hover {
    color: #333;
}

.nav-item.active {
    color: #e74c3c;
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
}