:root {
    --bg-body: #1a1a2e;
    --bg-dot: #6d28d9;        
    --container-bg: #252525;
    --text-main: #ffffff;
    --text-inverse: #fff;
    --border-color: #000;
    --shadow-color: #000;
    --accent-color: #7c3aed;  
    --button-text: #ffffff;
    --scrollbar-track: #1a1a2e;
    --scrollbar-thumb: #7c3aed;
}

body.light-mode {
    --bg-body: #fdf2f8;       
    --bg-dot: #db2777;       
    --container-bg: #ffffff;  
    --text-main: #000;
    --text-inverse: #000;
    --border-color: #000;
    --shadow-color: #000;
    --accent-color: #ec4899;  
    --button-text: #000000;
    --scrollbar-track: #fdf2f8;
    --scrollbar-thumb: #ec4899;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Arial Black', Arial, sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease, color 0.5s ease;
    background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed; 
    min-height: 100vh;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); border-left: 2px solid var(--border-color); transition: background 0.5s ease; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 2px solid var(--border-color); border-radius: 10px; transition: background 0.5s ease; }
::-webkit-scrollbar-thumb:hover { background: #ef4444; }

.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-body);
    background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease, background 0.5s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-logo {
    width: 150px; height: 150px; border-radius: 50%;
    border: 8px solid var(--border-color);
    box-shadow: 8px 8px 0 var(--accent-color);
    margin-bottom: 30px; animation: scaleUp 1.5s ease-in-out infinite;
    object-fit: cover; background: #fff;
}
.loading-text {
    font-size: 36px; font-weight: 900; 
    color: #fff; -webkit-text-stroke: 1.5px #000; 
    text-transform: uppercase; letter-spacing: -1px;
    text-shadow: 4px 4px 0 var(--accent-color);
    margin-bottom: 20px; transition: color 0.5s ease;
}

.loading-spinner {
    width: 70px; 
    height: 70px; 
    border: none; 
    position: relative;
    margin-bottom: 30px;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid rgba(255, 255, 255, 0.2); 
    border-top-color: var(--accent-color); 
    border-radius: 50%;
    animation: spin-cw 1.4s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 15px; 
    left: 15px;
    width: 40px; 
    height: 40px;
    border: 6px solid transparent; 
    border-left-color: #fff; 
    border-radius: 50%;
    animation: spin-ccw 1.8s linear infinite reverse; 
}

@keyframes spin-cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loading-tagline {
    font-size: 16px; font-weight: 700; color: var(--text-inverse);
    text-align: center; line-height: 1.6; max-width: 500px; padding: 0 20px;
    opacity: 0; animation: fadeIn 1s ease-out 0.5s forwards; transition: color 0.5s ease;
}

.click-burst {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border-radius: 50%; background: transparent;
    border: 4px solid var(--accent-color);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none; z-index: 99999;
    animation: burstAnim 0.6s ease-out forwards;
}
@keyframes burstAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 10px; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; border-width: 0px; }
}

.ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    animation: rippleEffect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7); pointer-events: none;
}
@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fab-fly-in { from { transform: translateY(100px) scale(0.5); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.share-btn, .qr-btn { animation: fab-fly-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards; }
.share-btn { animation-delay: 1.5s; }
.qr-btn { animation-delay: 1.6s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes scaleUp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.lang-toggle, .theme-toggle {
    position: fixed; top: 30px; width: 70px; height: 36px;
    border: 4px solid var(--border-color); border-radius: 50px;
    cursor: pointer; transition: all 0.3s ease; z-index: 1000;
    box-shadow: 4px 4px 0 var(--shadow-color);
}
.lang-toggle { right: 115px; background: #3b82f6; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; }
.theme-toggle { right: 30px; background: var(--accent-color); }
.theme-toggle:hover, .lang-toggle:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--shadow-color); }
.theme-toggle:active, .lang-toggle:active { transform: translate(4px, 4px); box-shadow: none; }
.theme-toggle-circle {
    position: absolute; top: 4px; left: 4px; width: 24px; height: 24px;
    background: #000; border-radius: 50%; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.theme-toggle.active { background: #000; }
.theme-toggle.active .theme-toggle-circle { left: 38px; background: var(--accent-color); }

.container {
    max-width: 600px; width: 100%;
    background: var(--container-bg);
    border: 5px solid var(--border-color);
    box-shadow: 12px 12px 0 var(--shadow-color);
    padding: 40px 30px; position: relative;
    animation: fadeInUp 0.8s ease-out; transition: background 0.5s ease;
}

.marquee-container {
    background: var(--accent-color); color: #fff;
    border: 4px solid var(--border-color); padding: 12px 0;
    overflow: hidden; white-space: nowrap; margin-bottom: 30px; 
    box-shadow: 6px 6px 0 var(--shadow-color); transition: background 0.5s ease;
}
.marquee-text { font-weight: 900; text-transform: uppercase; animation: marquee 20s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }

.header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 5px solid var(--border-color); animation: fadeIn 1s ease-out 0.3s backwards; }
.profile-link { display: inline-block; margin-bottom: 20px; transition: transform 0.3s ease; }
.profile-link:hover { transform: scale(1.05); }
.profile-img {
    width: 120px; height: 120px; border-radius: 50%;
    border: 6px solid var(--border-color); box-shadow: 6px 6px 0 var(--accent-color);
    object-fit: cover; transition: all 0.3s ease;
}
.profile-link:hover .profile-img { box-shadow: 8px 8px 0 var(--accent-color); }
.profile-link:active .profile-img { transform: translate(6px, 6px) scale(0.95); box-shadow: none; }

.logo {
    font-size: 48px; font-weight: 900; 
    color: #fff; -webkit-text-stroke: 2px #000; 
    text-transform: uppercase; letter-spacing: -2px; margin-bottom: 5px;
    text-shadow: 5px 5px 0 var(--accent-color);
}
.tagline {
    font-size: 14px; font-weight: 700; color: var(--text-main);
    opacity: 0.7; line-height: 1.6; margin-top: 15px;
}

.search-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    margin-top: 25px;    
    margin-bottom: 10px;
    border: 4px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--shadow-color);
    background: #ffffff; 
    transition: all 0.2s ease;
}

.search-wrapper:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--shadow-color);
}

.search-wrapper:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #000; 
}

.search-input::placeholder {
    color: #888;
    font-weight: 500;
}

.search-btn {
    width: 60px;
    border: none;
    border-left: 4px solid var(--border-color); 
    background: var(--accent-color); 
    color: #fff; 
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    filter: brightness(1.1);
}

.search-btn:active {
    transform: scale(0.95);
}

.greeting-style {
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    -webkit-text-stroke: 0.5px #000;
    text-shadow: 1px 1px 0 #000;
    color: #ffffff; 
    
    transition: color 0.3s ease; 
}

body.light-mode .greeting-style {
    color: var(--accent-color); 
}

.waifu-widget {
    position: fixed;
    bottom: -300px; 
    left: 90px;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.waifu-widget.show {
    bottom: 0; 
}

.waifu-img {
    width: 160px; 
    height: auto;
    filter: drop-shadow(4px 4px 0 #000);
    cursor: pointer;
    transition: transform 0.3s;
}

.waifu-img:hover {
    transform: translateY(-10px) scale(1.1);
}

.waifu-bubble {
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    font-size: 12px;
    font-weight: 900;
    border: 3px solid #000;
    margin-bottom: 125px;
    margin-left: -20px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%; 
}

.stat-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    box-shadow: 4px 4px 0 var(--shadow-color);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    transition: transform 0.2s;
    white-space: nowrap; 
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-box.total {
    border-color: #3b82f6;
    color: #3b82f6;
}
.stat-box.total strong { color: #fff; }

.stat-box.live {
    border-color: #10b981;
    color: #10b981;
}
.stat-box.live strong { color: #fff; }

.stat-box.peak {
    border-color: #f59e0b; 
    color: #f59e0b;
}
.stat-box.peak strong { color: #fff; }

.stat-box.alltime {
    border-color: #8b5cf6; 
    color: #8b5cf6;
}
.stat-box.alltime strong { color: #fff; }

.stat-box.today {
    border-color: #FFBADE;
    color: #FFBADE;
}
.stat-box.today strong { 
    color: #fff; 
}

.live-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: blink-live 1.5s infinite;
}

@keyframes blink-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px; 
    background: var(--accent-color); 
    width: 0%; 
    z-index: 9999;
    border-bottom: 2px solid var(--border-color);
    transition: background 0.5s ease;
}

.tagline {
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-main);
    opacity: 0.7; 
    line-height: 1.6; 
    margin-top: 15px;
    margin-bottom: 5px; 
    min-height: 48px;  
    display: flex;         
    align-items: center;    
    justify-content: center;
    width: 100%;
}

.quote-card-wrapper {
    background: var(--container-bg);
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 4px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--shadow-color);
    text-align: center;
    opacity: 1 !important; 
    transform: translateY(0) !important; 
}

.anime-quote {
    font-size: 14px;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--accent-color);
}

.quote-source {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.context-menu {
    display: none;
    position: fixed;
    z-index: 10000;
    width: 200px;
    background: var(--container-bg);
    border: 3px solid var(--border-color);
    box-shadow: 5px 5px 0 var(--shadow-color);
    padding: 10px 0;
    border-radius: 8px;
}
.context-item {
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.context-item:hover {
    background: var(--accent-color);
    color: #fff;
}
.context-item.danger:hover { background: #ef4444; }

#typewriter-text {
    display: inline !important; 
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: normal; 
    word-wrap: break-word;
}

#typewriter-text::after {
    content: '|';
    display: inline-block;
    vertical-align: baseline; 
    margin-left: 2px;
    font-weight: 900;
    color: var(--accent-color);
    animation: blinkCursor 0.8s infinite;
}

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

:root .search-wrapper {
   background: #fff; 
}

.link-item {
    display: flex; align-items: center;
    background: var(--accent-color); 
    border: 4px solid var(--border-color);
    padding: 20px 25px; margin-bottom: 20px;
    text-decoration: none; 
    color: var(--button-text); 
    font-weight: 900; font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.6s ease;
    box-shadow: 6px 6px 0 var(--shadow-color);
    position: relative; overflow: hidden; opacity: 0; transform: translateY(30px);
}
.link-item.is-visible { opacity: 1; transform: translateY(0); }
.link-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow-color); }
.link-item:active { transform: translate(6px, 6px); box-shadow: none; transition: all 0.1s ease; }
.link-item:hover .icon { transform: scale(1.1) rotate(-8deg); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.link-item:active .icon { transform: scale(0.9); }
.link-item:active .link-title { transform: none; } 

.link-item.primary, .link-item.secondary, .link-item.tertiary, .link-item.social, 
.link-item.contact, .link-item.orange, .link-item.cyan, .link-item.dark, 
.link-item.whatsapp-green, .link-item.tiktok-black {
    background: var(--accent-color);
    color: var(--button-text);
}
.link-item.tiktok-black .icon { background-color: rgba(255, 255, 255, 0.2); }

.icon {
    flex-shrink: 0; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-right: 20px;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 12px; transition: transform 0.1s ease; color: inherit;
}

.link-content { flex: 1; display: flex; flex-direction: column; }
.link-title { display: block; margin-bottom: 5px; font-size: 20px; font-weight: 900; line-height: 1.2; transition: transform 0.1s ease; }
.link-url { display: block; font-size: 13px; opacity: 0.75; font-weight: 600; word-break: break-all; }

.copy-btn {
    flex-shrink: 0; width: 45px; height: 45px;
    background: transparent;           
    border: 3px solid #000000;          
    border-radius: 10px; 
    color: #ffffff;                    
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; transition: all 0.2s ease; margin-left: 15px;
}
.copy-btn:hover { 
    background: #000000; 
    color: #fff; 
    border-color: #000000; 
    transform: scale(1.1); 
}
.copy-btn:active { 
    transform: scale(0.95) translate(2px, 2px); 
}

.footer {
    text-align: center; margin-top: 30px; padding-top: 20px;
    border-top: 5px solid var(--border-color);
    font-weight: 700; font-size: 12px; color: var(--text-main);
    animation: fadeIn 1s ease-out 1.3s backwards;
}

.decorative-box {
    position: absolute; width: 30px; height: 30px;
    border: 4px solid var(--border-color); background: var(--accent-color);
    transition: transform 0.3s ease;
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.volume-container:hover {
    background: rgba(0, 0, 0, 0.3);
}

#volume-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    width: 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

#volume-icon:hover {
    transform: scale(1.1);
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden; 
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px; 
    height: 0px; 
    box-shadow: -400px 0 0 400px #ffffff; 
    cursor: pointer;
    transition: background 0.2s;
}

#volume-slider::-moz-range-thumb {
    width: 0px;
    height: 0px;
    box-shadow: -400px 0 0 400px #ffffff;
    border: none;
}

.volume-container:hover #volume-slider {
    height: 8px; 
}
.container:active .decorative-box { transform: rotate(90deg); }
.box-1 { top: -15px; left: -15px; }
.box-2 { bottom: -15px; right: -15px; background: #ef4444; }

.toast {
    position: fixed; bottom: 30px; right: 30px;
    background: #10b981; color: #fff; padding: 15px 25px; border: 4px solid #000;
    box-shadow: 6px 6px 0 #000; font-weight: 900; font-size: 14px; z-index: 10000;
    opacity: 0; transform: translateY(100px); transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.music-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: #1DB954; color: #fff;
    padding: 8px 15px; border-radius: 30px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: none !important; 
    z-index: 10000; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: bold; font-size: 13px; border: 2px solid #000;
    pointer-events: none; 
}
.music-toast.show { transform: translateX(-50%) translateY(0); }
.music-toast img { width: 25px; height: 25px; border-radius: 50%; border: 2px solid #fff; }
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background: var(--accent-color);
    border: 4px solid var(--border-color); border-radius: 50%;
    box-shadow: 5px 5px 0 var(--shadow-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 5px 8px 0 var(--shadow-color); }
.back-to-top:active { transform: translate(5px, 5px); box-shadow: none; }

.share-btn {
    position: fixed; bottom: 100px; right: 30px; 
    width: 60px; height: 60px; background: #ec4899;
    border: 4px solid var(--border-color); border-radius: 50%;
    box-shadow: 5px 5px 0 var(--shadow-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; z-index: 999; transition: all 0.3s ease;
}
.share-btn:hover { transform: scale(1.1) rotate(15deg); box-shadow: 6px 6px 0 var(--shadow-color); }
.share-btn:active { transform: translate(5px, 5px) scale(0.95); box-shadow: none; }
 
.qr-btn {
    position: fixed; bottom: 170px; right: 30px; 
    width: 60px; height: 60px; 
    background: #fbbf24;
    color: #000;        
    border: 4px solid var(--border-color); border-radius: 50%;
    box-shadow: 5px 5px 0 var(--shadow-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; z-index: 999; transition: all 0.3s ease;
}
.qr-btn:hover { 
    background: #fff; 
    transform: translateY(-5px); 
    box-shadow: 5px 8px 0 var(--shadow-color); 
}
.qr-btn:active { 
    transform: translate(5px, 5px); 
    box-shadow: none; 
}

.share-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 10001; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.share-modal.show { opacity: 1; visibility: visible; }

.share-content {
    background: #fff; border: 5px solid var(--border-color);
    box-shadow: 12px 12px 0 var(--shadow-color);
    padding: 35px 30px; max-width: 400px; width: 90%;
    position: relative; animation: fadeInUp 0.4s ease-out; text-align: center; 
}

.share-header { font-size: 28px; font-weight: 900; color: #000; margin-bottom: 10px; text-transform: uppercase; text-align: center; }
.share-subtitle { font-size: 14px; color: #666; margin-bottom: 25px; font-weight: 700; text-align: center; }
.share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }

.share-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; background: var(--accent-color);
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0 var(--shadow-color);
    cursor: pointer; transition: all 0.2s ease; text-decoration: none; color: #fff;
}
.share-item:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-color); }
.share-item:active { transform: translate(4px, 4px); box-shadow: none; }

.share-item.whatsapp { background: #10b981; color: #fff; }
.share-item.facebook { background: #3b82f6; color: #fff; }
.share-item.twitter { background: #000; color: #fff; }
.share-item.telegram { background: #0ea5e9; color: #fff; }

.share-icon { font-size: 32px; margin-bottom: 8px; }
.share-label { font-size: 13px; font-weight: 900; }

.close-modal {
    width: 100%; padding: 15px; background: #ef4444;
    border: 4px solid var(--border-color); box-shadow: 4px 4px 0 var(--shadow-color);
    color: #fff; font-weight: 900; font-size: 16px;
    cursor: pointer; transition: all 0.2s ease; margin-top: 10px; 
}
.close-modal:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-color); }
.close-modal:active { transform: translate(4px, 4px); box-shadow: none; }

.download-btn { display: block; background: #3b82f6; text-decoration: none; margin-bottom: 5px; }
.qr-image { width: 100%; max-width: 250px; height: auto; border: 5px solid var(--border-color); box-shadow: 6px 6px 0 var(--shadow-color); margin: 10px auto; display: block; }

.link-item:focus-visible, .copy-btn:focus-visible, .theme-toggle:focus-visible, .lang-toggle:focus-visible, .back-to-top:focus-visible, .share-btn:focus-visible, .qr-btn:focus-visible, .share-item:focus-visible, .close-modal:focus-visible, .profile-link:focus-visible {
    outline: none; box-shadow: 0 0 0 4px #fff, 0 0 0 8px #3b82f6;
}
.link-item:focus-visible .copy-btn:focus-visible { box-shadow: none; }

.badge {
    position: absolute; top: -10px; right: -15px;
    background: #ef4444; color: #fff;
    font-size: 12px; font-weight: 900; padding: 5px 8px;
    border: 3px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--shadow-color);
    transform: rotate(10deg); z-index: 2;
}
.link-item.dark .badge, .link-item.social .badge { background: var(--accent-color); color: #000; }
@keyframes spin-vinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinning {
    animation: spin-vinyl 4s linear infinite;
    border-radius: 50% !important; 
}
#spotify-album-art {
    transition: border-radius 0.5s ease;
}
.warp-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 999999;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.warp-lines {
    width: 100%; height: 100%;
    background: repeating-conic-gradient(#000 0% 2.5%, #10b981 2.5% 5%);
    opacity: 0.5;
    animation: warp-speed 0.2s linear infinite;
    border-radius: 50%;
    transform: scale(0); 
    transition: transform 0.8s ease-in;
}
.warp-active { opacity: 1; pointer-events: all; }
.warp-active .warp-lines { transform: scale(3); } 
@keyframes warp-speed {
    0% { background-position: 0 0; }
    100% { background-position: 10px 10px; }
}
@media (max-width: 768px) {
    .container { padding: 30px 20px; box-shadow: 8px 8px 0 var(--shadow-color); }
    .logo { font-size: 36px; text-shadow: 3px 3px 0 var(--accent-color); }
    .profile-img { width: 100px; height: 100px; border: 5px solid var(--border-color); box-shadow: 4px 4px 0 var(--accent-color); }
    .profile-link:hover .profile-img { box-shadow: 5px 5px 0 var(--accent-color); }
    .tagline { font-size: 12px; }
    .link-item { padding: 15px 18px; font-size: 14px; box-shadow: 4px 4px 0 var(--shadow-color); }
    .icon { width: 45px; height: 45px; font-size: 24px; margin-right: 15px; }
    .link-title { font-size: 17px; }
    .link-url { font-size: 12px; }
    .copy-btn { width: 40px; height: 40px; font-size: 18px; margin-left: 10px; }
    .decorative-box { width: 20px; height: 20px; }
    .box-1 { top: -10px; left: -10px; }
    .box-2 { bottom: -10px; right: -10px; }
    .lang-toggle { top: 20px; right: 90px; width: 60px; height: 32px; font-size: 12px; }
    .theme-toggle { top: 20px; right: 20px; width: 60px; height: 32px; }
    .theme-toggle-circle { width: 22px; height: 22px; font-size: 12px; }
    .theme-toggle.active .theme-toggle-circle { left: 32px; }
    .toast { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 13px; }
    .loading-logo { width: 120px; height: 120px; border: 6px solid var(--border-color); box-shadow: 6px 6px 0 var(--accent-color); }
    .loading-text { font-size: 28px; }
    .loading-spinner { width: 50px; height: 50px; border-width: 5px; margin-bottom: 20px; }
    .loading-tagline { font-size: 14px; padding: 0 15px; }
    .back-to-top, .share-btn, .qr-btn { width: 55px; height: 55px; font-size: 24px; left: auto; bottom: 20px; }
    .back-to-top { right: 20px; }
    .share-btn { right: 85px; }
    .qr-btn { right: 150px; }
    .share-content { padding: 25px 20px; }
    .share-header { font-size: 24px; }
    .share-buttons { gap: 12px; }
    .share-item { padding: 15px; }
    .share-icon { font-size: 28px; }
    .share-label { font-size: 12px; }
    .waifu-widget {
        left: 5px; 
        bottom: -150px; 
    }
    .waifu-widget.show {
        bottom: 0;
    }
    .waifu-img {
        width: 80px;
    }
    .waifu-bubble {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 55px; 
        margin-left: -10px; 
        max-width: 150px; 
        line-height: 1.2;
    }

   .loading-spinner::before {
     border-width: 5px; 
    }

  .loading-spinner::after {
    width: 30px; 
    height: 30px;
    top: 10px;
    left: 10px;
    border-width: 5px;
  }
}
@media (max-width: 480px) {
    body { padding: 15px; }
    .container { padding: 25px 15px; }
    .logo { font-size: 32px; }
    .profile-img { width: 90px; height: 90px; border: 4px solid var(--border-color); box-shadow: 3px 3px 0 var(--accent-color); }
    .profile-link:hover .profile-img { box-shadow: 4px 4px 0 var(--accent-color); }
    .link-item { padding: 12px 15px; }
    .icon { width: 40px; height: 40px; font-size: 22px; margin-right: 12px; }
    .link-title { font-size: 15px; }
    .link-url { font-size: 11px; }
    .spotify-header { font-size: 11px; margin-bottom: 10px; gap: 5px; }
    .spotify-header > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
    .spotify-header i { font-size: 14px; margin-right: 4px; }
    .genre-btn { padding: 4px 8px; font-size: 9px; border-radius: 12px; white-space: nowrap; height: 24px; flex-shrink: 0; }
    .stats-container {
        gap: 6px; 
        flex-wrap: nowrap; 
        padding: 0 5px; 
    }
    .stat-box {
        flex: 1;
        padding: 6px 8px; 
        font-size: 10px;
        gap: 5px;
        height: 36px;
    }
    .stat-box i {
        font-size: 11px; 
    }
    .live-dot {
        width: 6px; height: 6px; 
    }
    .tagline {
        font-size: 12px;
        min-height: 50px; 
        align-items: flex-start; 
    }
    .back-to-top, .share-btn, .qr-btn {
        width: 40px !important;     
        height: 40px !important;
        font-size: 16px !important;  
        bottom: 15px !important;   
        border-width: 2px !important;
        box-shadow: 2px 2px 0 var(--shadow-color) !important; 
    }
    .back-to-top {
        right: 15px !important;
    }
    .share-btn {
        right: 65px !important;
    }
    .qr-btn {
        right: 115px !important; 
    }
}

.section-title {
    font-size: 20px; font-weight: 900; text-align: center;
    color: #000; background: var(--accent-color); 
    border: 4px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--shadow-color);
    padding: 10px 15px; margin-bottom: 20px; 
    max-width: 450px; margin-left: auto; margin-right: auto;
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotify-card {
    color: #fff; padding: 20px; margin-bottom: 20px;
    border: 4px solid var(--border-color);
    box-shadow: 6px 6px 0 var(--shadow-color);
    transition: background-color 0.3s ease;
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}
.section-title.is-visible, .spotify-card.is-visible { opacity: 1; transform: translateY(0); }

.spotify-header {
   display: flex; align-items: center; justify-content: space-between; 
   font-size: 14px; font-weight: 700; opacity: 0.8; margin-bottom: 15px; gap: 10px;
}
.genre-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff; padding: 4px 12px;
    border-radius: 20px; font-size: 11px; font-weight: bold; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 5px; outline: none; white-space: nowrap;
}
.genre-btn:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.05); }
.genre-btn:active { transform: scale(0.95); }
.genre-btn i { font-size: 11px !important; margin-right: 0 !important; }
.spotify-card.video-mode .genre-btn { display: none !important; }
.spotify-header i { font-size: 20px; margin-right: 10px; }

.spotify-content { display: flex; align-items: center; margin-bottom: 15px; }
#spotify-album-art { width: 80px; height: 80px; border: 4px solid #000; box-shadow: 4px 4px 0 #000; margin-right: 15px; flex-shrink: 0; }
.spotify-info { min-width: 0; }
#spotify-song-title { display: block; font-size: 20px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#spotify-artist-name { font-size: 14px; font-weight: 700; opacity: 0.8; }

.spotify-progress { width: 100%; }
#progress-bar-track { width: 100%; height: 8px; background: rgba(0, 0, 0, 0.2); border: 2px solid #000; cursor: pointer; }
#progress-bar { width: 0%; height: 100%; background: #000; }
.spotify-time { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: 5px; }

.spotify-controls { display: flex; justify-content: center; align-items: center; margin-top: 15px; gap: 15px; }
.spotify-control { background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; transition: all 0.2s ease; opacity: 0.8; }
.spotify-control:hover { opacity: 1; transform: scale(1.1); }
.spotify-control.main { font-size: 30px; width: 60px; height: 60px; border-radius: 50%; background-color: #fff; border: 4px solid #000; box-shadow: 4px 4px 0 #000; display: flex; align-items: center; justify-content: center; }
.spotify-control.main:active { box-shadow: none; transform: translate(4px, 4px); }

.spotify-theme { background-color: #1DB954; }
.spotify-theme .spotify-control.main { color: #1DB954; }
.youtube-theme { background-color: #CD201F; }
.youtube-theme .spotify-control.main { color: #CD201F; }
.tiktok-theme { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); border-color: #fe2c55; }
.tiktok-theme .spotify-control.main { color: #000; background-color: #25f4ee; border-color: #fe2c55; }
.spotify-card.video-mode { display: flex; flex-direction: column; }
.spotify-card.video-mode .spotify-header { justify-content: center; margin-bottom: 10px; }
.spotify-card.video-mode #audio-content-wrapper, .spotify-card.video-mode #audio-progress-container { display: none !important; }
.spotify-card.video-mode #video-player { display: block !important; max-height: 400px; object-fit: contain; }

.spotify-card.video-mode { position: relative; overflow: hidden; }
.spotify-card.video-mode::before { content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%); z-index: 5; pointer-events: none; }
.spotify-card.video-mode::after { content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03)); z-index: 6; background-size: 100% 2px, 3px 100%; pointer-events: none; }

.anime-quote, .quote-source {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.anime-quote.fade-out, .quote-source.fade-out {
    opacity: 0;
    transform: translateY(-10px); 
}
