:root {
    --bg-dark-blue: #0f1123;
    --bg-orange: #f57c00;
    --bg-purple: #6a1b9a;
    --bg-green: #2e7d32;
    --bg-dark: #121212;
    
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-color: var(--bg-dark-blue);
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Avatar */
.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    background: #222;
}

.rainbow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        45deg, 
        #f06, #9f6, #06f, #f06, #9f6, #06f
    );
    background-size: 400% 400%;
    animation: rainbow 8s linear infinite;
    z-index: 1;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* Links List */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.link-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.link-card:hover {
    transform: translateY(-3px);
    background: var(--card-hover-bg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.icon-wrapper img.custom-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.icon-wrapper img.favicon-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.icon-custom {
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 0;
}

.link-content {
    flex-grow: 1;
    overflow: hidden;
}

.link-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.link-sublabel {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-icon {
    margin-left: 12px;
    opacity: 0.3;
}

/* Footer */
.footer {
    margin-top: 48px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Icon Colors */
.type-youtube { background-color: #FF0000; }
.type-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.type-discord { background-color: #5865F2; }
.type-tiktok { background-color: #000000; border: 1px solid rgba(255, 255, 255, 0.1); }
.type-twitter, .type-x { background-color: #000000; border: 1px solid rgba(255, 255, 255, 0.1); }
.type-twitch { background-color: #9146FF; }
.type-github { background-color: #24292e; }
.type-spotify { background-color: #1DB954; }
.type-website { background-color: #4a4a4a; }
.type-store { background-color: #ff9800; }
.type-blog { background-color: #009688; }
.type-app { background-color: #607d8b; }
.type-unknown { background-color: rgba(255,255,255,0.1); border-radius: 12px; }

/* Video Section */
.video-section {
    width: 100%;
    margin-bottom: 28px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.video-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 600;
}