.template-default-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

@keyframes profileCardEntrance {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes profileAvatarEntrance {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes profileFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-card {
    background: rgba(18, 20, 29, var(--profile-opacity, 0.85));
    backdrop-filter: blur(var(--profile-blur, 16px));
    -webkit-backdrop-filter: blur(var(--profile-blur, 16px));
    border-radius: var(--profile-radius, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    padding: clamp(1.4rem, 4vw, 1.85rem) clamp(1.1rem, 3.5vw, 1.65rem);
    text-align: var(--profile-align, center);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    animation: profileCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-card.has-banner {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.profile-banner {
    width: 100%;
    height: clamp(120px, 22vw, 160px);
    border-radius: var(--profile-radius, 16px) var(--profile-radius, 16px) 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-sizing: border-box;
}

.avatar-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 0.75rem;
    animation: profileAvatarEntrance 0.6s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.avatar-wrapper.avatar-offset {
    margin-top: -50px;
    z-index: 2;
}

.profile-avatar {
    width: clamp(84px, 18vw, 96px);
    height: clamp(84px, 18vw, 96px);
    object-fit: cover;
    border-radius: var(--profile-avatar-radius, 9999px);
    border: var(--profile-avatar-border, 2px solid rgba(255, 255, 255, 0.12));
    background: #111420;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: block;
}

.profile-title-area {
    margin-bottom: 0.25rem;
    width: 100%;
    animation: profileFadeUp 0.45s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-row {
    display: inline-flex;
    align-items: center;
    justify-content: var(--profile-justify, center);
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.profile-name {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.profile-username {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin: 0.35rem 0 0.55rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

.profile-bio {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.45rem auto 0.75rem;
    max-width: 420px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--profile-justify, center);
    gap: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0.35rem 0 0.75rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--profile-justify, center);
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.custom-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--profile-accent);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    font-weight: 500;
}

.profile-audio-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 0.65rem auto 0.85rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-audio-widget:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.audio-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--profile-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.audio-toggle-btn:hover {
    transform: scale(1.06);
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-title {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.audio-artist {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.social-icons-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--profile-justify, center);
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
    animation: profileFadeUp 0.45s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
}

.social-icon-btn:hover {
    background: var(--profile-accent);
    color: #fff;
    border-color: var(--profile-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
}

.custom-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.75rem;
    width: 100%;
}

.custom-link-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.15rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--profile-radius, 16px) * 0.75);
    color: var(--profile-text, #fff);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    animation: profileFadeUp 0.4s calc(0.18s + var(--link-index, 0) * 0.04s) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.custom-link-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--profile-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-accent);
    flex-shrink: 0;
}

.link-icon svg {
    width: 18px;
    height: 18px;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.link-title {
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.link-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.12rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.link-arrow {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.custom-link-btn:hover .link-arrow {
    transform: translateX(3px);
    color: var(--profile-accent);
}

.profile-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.branding-watermark {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.branding-watermark span {
    color: var(--profile-accent);
}

.report-link-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.report-link-btn:hover {
    color: #ef4444;
}

@media (max-width: 480px) {
    .profile-card {
        padding: 1.25rem 0.95rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    .profile-banner {
        height: 120px;
    }
    .avatar-wrapper.avatar-offset {
        margin-top: -45px;
    }
    .custom-link-btn {
        padding: 0.75rem 0.95rem;
        gap: 0.75rem;
    }
}

@media (max-width: 360px) {
    .profile-card {
        padding: 1.15rem 0.75rem;
    }
    .profile-name {
        font-size: 1.3rem;
    }
    .profile-badges-row {
        gap: 3px;
    }
    .profile-badge {
        width: 22px;
        height: 22px;
        padding: 0;
    }
    .profile-badge .badge-icon svg {
        width: 12px;
        height: 12px;
    }
    .custom-link-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}
