@font-face {
    font-family: 'SegoeUISystem';
    src: local('Segoe UI'), local('SegoeUI'), local('Tahoma');
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    background: rgba(15, 18, 24, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(6px);
    position: relative;
    color: #e6eef8;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}
.theme-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
}

.theme-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e6eef8;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease, transform 0.15s ease;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

body.light-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    transition: background 0.4s ease, color 0.4s ease;
}

body.light-mode .container {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body.light-mode h1 {
    color: #2d3748;
}
body.light-mode h2 {
    color: #2d3748;
}   
body.light-mode .channel {
    background: rgba(255,255,255,0.8);
    border-left: 4px solid #FF0000;
}

body.light-mode .channel-name {
    color: #2d3748;
}

body.light-mode .channel-subs {
    color: #e53e3e;
}

body.light-mode .channel-videos {
    color: #4a5568;
}

body.light-mode .link {
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(0,0,0,0.1);
    color: #2d3748;
}

body.light-mode .link-stats {
    background: rgba(0,0,0,0.05);
    color: #718096;
}

body.light-mode .last-update {
    color: #718096;
}

body.light-mode .theme-btn {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: #2d3748;
}

body.light-mode .success {
    color: #38a169;
}

body.light-mode .error {
    color: #e53e3e;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #b22222, #7a0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    border: 4px solid rgba(255,255,255,0.06);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #FF0000, #CC0000);
    color: white;
    font-size: 40px;
    font-weight: bold;
}

h1 {
    color: #f3f7fb;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}
h2 {
    color: #f3f7fb;
    margin-bottom: 0px;
    font-size: 18px;
    font-weight: 550;

    transition: color 0.3s ease;
}
.channel-stats h2 {
    color: #f3f7fb;
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.channel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.channel {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FF0000;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    background: rgba(255,255,255,0.05);
}

.channel-name { color: #f3f7fb; }
.channel-subs { color: #ff9b9b; }
.channel-videos { color: #cfd8e3; }

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    text-decoration: none;
    color: #e6eef8;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    background: rgba(255,255,255,0.04);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-stats {
    background: rgba(255,255,255,0.02);
    color: #cfe4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    direction: ltr;
}

.youtube { border-color: #FF0000; }
.instagram { border-color: #E4405F; }
.discord { border-color: #5865F2; }
.telegram { border-color: #0088cc; }

.reymit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reymit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reymit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.last-update {
    margin-top: 20px;
    font-size: 12px;
    color: #9fb0d6;
}

.success {
    color: #6de08b;
    font-size: 12px;
    margin-top: 10px;
}

.error {
    color: #ff8b8b;
    font-size: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.instagram-icon { background: #E4405F; }
.discord-icon { background: #5865F2; }
.telegram-icon { background: #0088cc; }

@media (max-width: 480px) {
    .container {
        padding: 25px;
    }

    .channel-stats {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 15px ;
    }
}


img[loading="eager"] { display:block; max-width:100%; height:auto; }

/* When switching to light mode */
body.light-mode .social-icon { color: white; }

